| 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 |
Amazonka.ResilienceHub.UpdateApp
Description
Updates an application.
Synopsis
- data UpdateApp = UpdateApp' {}
- newUpdateApp :: Text -> UpdateApp
- updateApp_assessmentSchedule :: Lens' UpdateApp (Maybe AppAssessmentScheduleType)
- updateApp_clearResiliencyPolicyArn :: Lens' UpdateApp (Maybe Bool)
- updateApp_description :: Lens' UpdateApp (Maybe Text)
- updateApp_policyArn :: Lens' UpdateApp (Maybe Text)
- updateApp_appArn :: Lens' UpdateApp Text
- data UpdateAppResponse = UpdateAppResponse' {
- httpStatus :: Int
- app :: App
- newUpdateAppResponse :: Int -> App -> UpdateAppResponse
- updateAppResponse_httpStatus :: Lens' UpdateAppResponse Int
- updateAppResponse_app :: Lens' UpdateAppResponse App
Creating a Request
See: newUpdateApp smart constructor.
Constructors
| UpdateApp' | |
Fields
| |
Instances
Create a value of UpdateApp 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:
UpdateApp, updateApp_assessmentSchedule - Assessment execution schedule with 'Daily' or 'Disabled' values.
$sel:clearResiliencyPolicyArn:UpdateApp', updateApp_clearResiliencyPolicyArn - Specifies if the resiliency policy ARN should be cleared.
UpdateApp, updateApp_description - The optional description for an app.
UpdateApp, updateApp_policyArn - The Amazon Resource Name (ARN) of the resiliency policy. The format for
this ARN is:
arn:partition:resiliencehub:region:account:resiliency-policy/policy-id.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
UpdateApp, updateApp_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.
Request Lenses
updateApp_assessmentSchedule :: Lens' UpdateApp (Maybe AppAssessmentScheduleType) Source #
Assessment execution schedule with 'Daily' or 'Disabled' values.
updateApp_clearResiliencyPolicyArn :: Lens' UpdateApp (Maybe Bool) Source #
Specifies if the resiliency policy ARN should be cleared.
updateApp_policyArn :: Lens' UpdateApp (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resiliency policy. The format for
this ARN is:
arn:partition:resiliencehub:region:account:resiliency-policy/policy-id.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
updateApp_appArn :: Lens' UpdateApp 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.
Destructuring the Response
data UpdateAppResponse Source #
See: newUpdateAppResponse smart constructor.
Constructors
| UpdateAppResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> App | |
| -> UpdateAppResponse |
Create a value of UpdateAppResponse 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:
$sel:httpStatus:UpdateAppResponse', updateAppResponse_httpStatus - The response's http status code.
$sel:app:UpdateAppResponse', updateAppResponse_app - The specified application, returned as an object with details including
compliance status, creation time, description, resiliency score, and
more.
Response Lenses
updateAppResponse_httpStatus :: Lens' UpdateAppResponse Int Source #
The response's http status code.
updateAppResponse_app :: Lens' UpdateAppResponse App Source #
The specified application, returned as an object with details including compliance status, creation time, description, resiliency score, and more.