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 |
Creates a Resilience Hub application. A Resilience Hub application is a collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application, you provide an application name, resources from one or more–up to five–CloudFormation stacks, and an appropriate resiliency policy.
After you create a Resilience Hub application, you publish it so that you can run a resiliency assessment on it. You can then use recommendations from the assessment to improve resiliency by running another assessment, comparing results, and then iterating the process until you achieve your goals for recovery time objective (RTO) and recovery point objective (RPO).
Synopsis
- data CreateApp = CreateApp' {}
- newCreateApp :: Text -> CreateApp
- createApp_assessmentSchedule :: Lens' CreateApp (Maybe AppAssessmentScheduleType)
- createApp_clientToken :: Lens' CreateApp (Maybe Text)
- createApp_description :: Lens' CreateApp (Maybe Text)
- createApp_policyArn :: Lens' CreateApp (Maybe Text)
- createApp_tags :: Lens' CreateApp (Maybe (HashMap Text Text))
- createApp_name :: Lens' CreateApp Text
- data CreateAppResponse = CreateAppResponse' {
- httpStatus :: Int
- app :: App
- newCreateAppResponse :: Int -> App -> CreateAppResponse
- createAppResponse_httpStatus :: Lens' CreateAppResponse Int
- createAppResponse_app :: Lens' CreateAppResponse App
Creating a Request
See: newCreateApp
smart constructor.
CreateApp' | |
|
Instances
Create a value of CreateApp
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:
CreateApp
, createApp_assessmentSchedule
- Assessment execution schedule with 'Daily' or 'Disabled' values.
$sel:clientToken:CreateApp'
, createApp_clientToken
- Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse
the same client token for other API requests.
CreateApp
, createApp_description
- The optional description for an app.
CreateApp
, createApp_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.
CreateApp
, createApp_tags
- The tags assigned to the resource. A tag is a label that you assign to
an Amazon Web Services resource. Each tag consists of a key/value pair.
CreateApp
, createApp_name
- The name for the application.
Request Lenses
createApp_assessmentSchedule :: Lens' CreateApp (Maybe AppAssessmentScheduleType) Source #
Assessment execution schedule with 'Daily' or 'Disabled' values.
createApp_clientToken :: Lens' CreateApp (Maybe Text) Source #
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
createApp_policyArn :: Lens' CreateApp (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.
createApp_tags :: Lens' CreateApp (Maybe (HashMap Text Text)) Source #
The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
Destructuring the Response
data CreateAppResponse Source #
See: newCreateAppResponse
smart constructor.
CreateAppResponse' | |
|
Instances
Create a value of CreateAppResponse
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:CreateAppResponse'
, createAppResponse_httpStatus
- The response's http status code.
$sel:app:CreateAppResponse'
, createAppResponse_app
- The created application returned as an object with details including
compliance status, creation time, description, resiliency score, and
more.
Response Lenses
createAppResponse_httpStatus :: Lens' CreateAppResponse Int Source #
The response's http status code.
createAppResponse_app :: Lens' CreateAppResponse App Source #
The created application returned as an object with details including compliance status, creation time, description, resiliency score, and more.