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 |
Deletes a resiliency policy. This is a destructive action that can't be undone.
Synopsis
- data DeleteResiliencyPolicy = DeleteResiliencyPolicy' {
- clientToken :: Maybe Text
- policyArn :: Text
- newDeleteResiliencyPolicy :: Text -> DeleteResiliencyPolicy
- deleteResiliencyPolicy_clientToken :: Lens' DeleteResiliencyPolicy (Maybe Text)
- deleteResiliencyPolicy_policyArn :: Lens' DeleteResiliencyPolicy Text
- data DeleteResiliencyPolicyResponse = DeleteResiliencyPolicyResponse' {
- httpStatus :: Int
- policyArn :: Text
- newDeleteResiliencyPolicyResponse :: Int -> Text -> DeleteResiliencyPolicyResponse
- deleteResiliencyPolicyResponse_httpStatus :: Lens' DeleteResiliencyPolicyResponse Int
- deleteResiliencyPolicyResponse_policyArn :: Lens' DeleteResiliencyPolicyResponse Text
Creating a Request
data DeleteResiliencyPolicy Source #
See: newDeleteResiliencyPolicy
smart constructor.
DeleteResiliencyPolicy' | |
|
Instances
newDeleteResiliencyPolicy Source #
Create a value of DeleteResiliencyPolicy
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:clientToken:DeleteResiliencyPolicy'
, deleteResiliencyPolicy_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.
DeleteResiliencyPolicy
, deleteResiliencyPolicy_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
deleteResiliencyPolicy_clientToken :: Lens' DeleteResiliencyPolicy (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.
deleteResiliencyPolicy_policyArn :: Lens' DeleteResiliencyPolicy 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 DeleteResiliencyPolicyResponse Source #
See: newDeleteResiliencyPolicyResponse
smart constructor.
DeleteResiliencyPolicyResponse' | |
|
Instances
Generic DeleteResiliencyPolicyResponse Source # | |
Read DeleteResiliencyPolicyResponse Source # | |
Show DeleteResiliencyPolicyResponse Source # | |
NFData DeleteResiliencyPolicyResponse Source # | |
Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy rnf :: DeleteResiliencyPolicyResponse -> () # | |
Eq DeleteResiliencyPolicyResponse Source # | |
type Rep DeleteResiliencyPolicyResponse Source # | |
Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy type Rep DeleteResiliencyPolicyResponse = D1 ('MetaData "DeleteResiliencyPolicyResponse" "Amazonka.ResilienceHub.DeleteResiliencyPolicy" "amazonka-resiliencehub-2.0-EsKgNhAb0B96cCxrYtrBzG" 'False) (C1 ('MetaCons "DeleteResiliencyPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newDeleteResiliencyPolicyResponse Source #
Create a value of DeleteResiliencyPolicyResponse
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:DeleteResiliencyPolicyResponse'
, deleteResiliencyPolicyResponse_httpStatus
- The response's http status code.
DeleteResiliencyPolicy
, deleteResiliencyPolicyResponse_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.
Response Lenses
deleteResiliencyPolicyResponse_httpStatus :: Lens' DeleteResiliencyPolicyResponse Int Source #
The response's http status code.
deleteResiliencyPolicyResponse_policyArn :: Lens' DeleteResiliencyPolicyResponse 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.