Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Adds or updates the app template for a draft version of a Resilience Hub app.
Synopsis
- data PutDraftAppVersionTemplate = PutDraftAppVersionTemplate' {
- appArn :: Text
- appTemplateBody :: Text
- newPutDraftAppVersionTemplate :: Text -> Text -> PutDraftAppVersionTemplate
- putDraftAppVersionTemplate_appArn :: Lens' PutDraftAppVersionTemplate Text
- putDraftAppVersionTemplate_appTemplateBody :: Lens' PutDraftAppVersionTemplate Text
- data PutDraftAppVersionTemplateResponse = PutDraftAppVersionTemplateResponse' {
- appArn :: Maybe Text
- appVersion :: Maybe Text
- httpStatus :: Int
- newPutDraftAppVersionTemplateResponse :: Int -> PutDraftAppVersionTemplateResponse
- putDraftAppVersionTemplateResponse_appArn :: Lens' PutDraftAppVersionTemplateResponse (Maybe Text)
- putDraftAppVersionTemplateResponse_appVersion :: Lens' PutDraftAppVersionTemplateResponse (Maybe Text)
- putDraftAppVersionTemplateResponse_httpStatus :: Lens' PutDraftAppVersionTemplateResponse Int
Creating a Request
data PutDraftAppVersionTemplate Source #
See: newPutDraftAppVersionTemplate
smart constructor.
PutDraftAppVersionTemplate' | |
|
Instances
newPutDraftAppVersionTemplate Source #
:: Text | |
-> Text | |
-> PutDraftAppVersionTemplate |
Create a value of PutDraftAppVersionTemplate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutDraftAppVersionTemplate
, putDraftAppVersionTemplate_appArn
- The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
$sel:appTemplateBody:PutDraftAppVersionTemplate'
, putDraftAppVersionTemplate_appTemplateBody
- A JSON string that contains the body of the app template.
Request Lenses
putDraftAppVersionTemplate_appArn :: Lens' PutDraftAppVersionTemplate Text Source #
The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
putDraftAppVersionTemplate_appTemplateBody :: Lens' PutDraftAppVersionTemplate Text Source #
A JSON string that contains the body of the app template.
Destructuring the Response
data PutDraftAppVersionTemplateResponse Source #
See: newPutDraftAppVersionTemplateResponse
smart constructor.
PutDraftAppVersionTemplateResponse' | |
|
Instances
newPutDraftAppVersionTemplateResponse Source #
Create a value of PutDraftAppVersionTemplateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutDraftAppVersionTemplate
, putDraftAppVersionTemplateResponse_appArn
- The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
PutDraftAppVersionTemplateResponse
, putDraftAppVersionTemplateResponse_appVersion
- The version of the application.
$sel:httpStatus:PutDraftAppVersionTemplateResponse'
, putDraftAppVersionTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
putDraftAppVersionTemplateResponse_appArn :: Lens' PutDraftAppVersionTemplateResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
putDraftAppVersionTemplateResponse_appVersion :: Lens' PutDraftAppVersionTemplateResponse (Maybe Text) Source #
The version of the application.
putDraftAppVersionTemplateResponse_httpStatus :: Lens' PutDraftAppVersionTemplateResponse Int Source #
The response's http status code.