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.DeleteResiliencyPolicy
Description
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.
Constructors
DeleteResiliencyPolicy' | |
Fields
|
Instances
newDeleteResiliencyPolicy Source #
Arguments
:: Text | |
-> DeleteResiliencyPolicy |
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.
Constructors
DeleteResiliencyPolicyResponse' | |
Fields
|
Instances
newDeleteResiliencyPolicyResponse Source #
Arguments
:: Int | |
-> Text | |
-> DeleteResiliencyPolicyResponse |
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.