| 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.UpdateResiliencyPolicy
Description
Updates a resiliency policy.
Synopsis
- data UpdateResiliencyPolicy = UpdateResiliencyPolicy' {}
- newUpdateResiliencyPolicy :: Text -> UpdateResiliencyPolicy
- updateResiliencyPolicy_dataLocationConstraint :: Lens' UpdateResiliencyPolicy (Maybe DataLocationConstraint)
- updateResiliencyPolicy_policy :: Lens' UpdateResiliencyPolicy (Maybe (HashMap DisruptionType FailurePolicy))
- updateResiliencyPolicy_policyDescription :: Lens' UpdateResiliencyPolicy (Maybe Text)
- updateResiliencyPolicy_policyName :: Lens' UpdateResiliencyPolicy (Maybe Text)
- updateResiliencyPolicy_tier :: Lens' UpdateResiliencyPolicy (Maybe ResiliencyPolicyTier)
- updateResiliencyPolicy_policyArn :: Lens' UpdateResiliencyPolicy Text
- data UpdateResiliencyPolicyResponse = UpdateResiliencyPolicyResponse' {}
- newUpdateResiliencyPolicyResponse :: Int -> ResiliencyPolicy -> UpdateResiliencyPolicyResponse
- updateResiliencyPolicyResponse_httpStatus :: Lens' UpdateResiliencyPolicyResponse Int
- updateResiliencyPolicyResponse_policy :: Lens' UpdateResiliencyPolicyResponse ResiliencyPolicy
Creating a Request
data UpdateResiliencyPolicy Source #
See: newUpdateResiliencyPolicy smart constructor.
Constructors
| UpdateResiliencyPolicy' | |
Fields
| |
Instances
newUpdateResiliencyPolicy Source #
Arguments
| :: Text | |
| -> UpdateResiliencyPolicy |
Create a value of UpdateResiliencyPolicy 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:
UpdateResiliencyPolicy, updateResiliencyPolicy_dataLocationConstraint - Specifies a high-level geographical location constraint for where your
resilience policy data can be stored.
UpdateResiliencyPolicy, updateResiliencyPolicy_policy - The type of resiliency policy to be created, including the recovery time
objective (RTO) and recovery point objective (RPO) in seconds.
UpdateResiliencyPolicy, updateResiliencyPolicy_policyDescription - The description for the policy.
UpdateResiliencyPolicy, updateResiliencyPolicy_policyName - The name of the policy
UpdateResiliencyPolicy, updateResiliencyPolicy_tier - The tier for this resiliency policy, ranging from the highest severity
(MissionCritical) to lowest (NonCritical).
UpdateResiliencyPolicy, updateResiliencyPolicy_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.
Request Lenses
updateResiliencyPolicy_dataLocationConstraint :: Lens' UpdateResiliencyPolicy (Maybe DataLocationConstraint) Source #
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
updateResiliencyPolicy_policy :: Lens' UpdateResiliencyPolicy (Maybe (HashMap DisruptionType FailurePolicy)) Source #
The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
updateResiliencyPolicy_policyDescription :: Lens' UpdateResiliencyPolicy (Maybe Text) Source #
The description for the policy.
updateResiliencyPolicy_policyName :: Lens' UpdateResiliencyPolicy (Maybe Text) Source #
The name of the policy
updateResiliencyPolicy_tier :: Lens' UpdateResiliencyPolicy (Maybe ResiliencyPolicyTier) Source #
The tier for this resiliency policy, ranging from the highest severity
(MissionCritical) to lowest (NonCritical).
updateResiliencyPolicy_policyArn :: Lens' UpdateResiliencyPolicy 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.
Destructuring the Response
data UpdateResiliencyPolicyResponse Source #
See: newUpdateResiliencyPolicyResponse smart constructor.
Constructors
| UpdateResiliencyPolicyResponse' | |
Fields
| |
Instances
newUpdateResiliencyPolicyResponse Source #
Arguments
| :: Int | |
| -> ResiliencyPolicy | |
| -> UpdateResiliencyPolicyResponse |
Create a value of UpdateResiliencyPolicyResponse 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:UpdateResiliencyPolicyResponse', updateResiliencyPolicyResponse_httpStatus - The response's http status code.
UpdateResiliencyPolicy, updateResiliencyPolicyResponse_policy - The type of resiliency policy that was updated, including the recovery
time objective (RTO) and recovery point objective (RPO) in seconds.
Response Lenses
updateResiliencyPolicyResponse_httpStatus :: Lens' UpdateResiliencyPolicyResponse Int Source #
The response's http status code.
updateResiliencyPolicyResponse_policy :: Lens' UpdateResiliencyPolicyResponse ResiliencyPolicy Source #
The type of resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.