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 |
Describes a specified resiliency policy for an AWS Resilience Hub application. The returned policy object includes creation time, data location constraints, the Amazon Resource Name (ARN) for the policy, tags, tier, and more.
Synopsis
- data DescribeResiliencyPolicy = DescribeResiliencyPolicy' {}
- newDescribeResiliencyPolicy :: Text -> DescribeResiliencyPolicy
- describeResiliencyPolicy_policyArn :: Lens' DescribeResiliencyPolicy Text
- data DescribeResiliencyPolicyResponse = DescribeResiliencyPolicyResponse' {}
- newDescribeResiliencyPolicyResponse :: Int -> ResiliencyPolicy -> DescribeResiliencyPolicyResponse
- describeResiliencyPolicyResponse_httpStatus :: Lens' DescribeResiliencyPolicyResponse Int
- describeResiliencyPolicyResponse_policy :: Lens' DescribeResiliencyPolicyResponse ResiliencyPolicy
Creating a Request
data DescribeResiliencyPolicy Source #
See: newDescribeResiliencyPolicy
smart constructor.
DescribeResiliencyPolicy' | |
|
Instances
newDescribeResiliencyPolicy Source #
Create a value of DescribeResiliencyPolicy
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:
DescribeResiliencyPolicy
, describeResiliencyPolicy_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
describeResiliencyPolicy_policyArn :: Lens' DescribeResiliencyPolicy 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 DescribeResiliencyPolicyResponse Source #
See: newDescribeResiliencyPolicyResponse
smart constructor.
DescribeResiliencyPolicyResponse' | |
|
Instances
Generic DescribeResiliencyPolicyResponse Source # | |
Show DescribeResiliencyPolicyResponse Source # | |
NFData DescribeResiliencyPolicyResponse Source # | |
Defined in Amazonka.ResilienceHub.DescribeResiliencyPolicy rnf :: DescribeResiliencyPolicyResponse -> () # | |
Eq DescribeResiliencyPolicyResponse Source # | |
type Rep DescribeResiliencyPolicyResponse Source # | |
Defined in Amazonka.ResilienceHub.DescribeResiliencyPolicy type Rep DescribeResiliencyPolicyResponse = D1 ('MetaData "DescribeResiliencyPolicyResponse" "Amazonka.ResilienceHub.DescribeResiliencyPolicy" "amazonka-resiliencehub-2.0-EsKgNhAb0B96cCxrYtrBzG" 'False) (C1 ('MetaCons "DescribeResiliencyPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResiliencyPolicy))) |
newDescribeResiliencyPolicyResponse Source #
Create a value of DescribeResiliencyPolicyResponse
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:DescribeResiliencyPolicyResponse'
, describeResiliencyPolicyResponse_httpStatus
- The response's http status code.
DescribeResiliencyPolicyResponse
, describeResiliencyPolicyResponse_policy
- Information about the specific resiliency policy, returned as an object.
This object includes creation time, data location constraints, its name,
description, tags, the recovery time objective (RTO) and recovery point
objective (RPO) in seconds, and more.
Response Lenses
describeResiliencyPolicyResponse_httpStatus :: Lens' DescribeResiliencyPolicyResponse Int Source #
The response's http status code.
describeResiliencyPolicyResponse_policy :: Lens' DescribeResiliencyPolicyResponse ResiliencyPolicy Source #
Information about the specific resiliency policy, returned as an object. This object includes creation time, data location constraints, its name, description, tags, the recovery time objective (RTO) and recovery point objective (RPO) in seconds, and more.