amazonka-resiliencehub-2.0: Amazon Resilience Hub SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ResilienceHub.DeleteResiliencyPolicy

Description

Deletes a resiliency policy. This is a destructive action that can't be undone.

Synopsis

Creating a Request

data DeleteResiliencyPolicy Source #

See: newDeleteResiliencyPolicy smart constructor.

Constructors

DeleteResiliencyPolicy' 

Fields

  • clientToken :: Maybe Text

    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.

  • policyArn :: Text

    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.

Instances

Instances details
ToJSON DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

ToHeaders DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

ToPath DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

ToQuery DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

AWSRequest DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Associated Types

type AWSResponse DeleteResiliencyPolicy #

Generic DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Associated Types

type Rep DeleteResiliencyPolicy :: Type -> Type #

Read DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Show DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

NFData DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Methods

rnf :: DeleteResiliencyPolicy -> () #

Eq DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Hashable DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

type AWSResponse DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

type Rep DeleteResiliencyPolicy Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

type Rep DeleteResiliencyPolicy = D1 ('MetaData "DeleteResiliencyPolicy" "Amazonka.ResilienceHub.DeleteResiliencyPolicy" "amazonka-resiliencehub-2.0-EsKgNhAb0B96cCxrYtrBzG" 'False) (C1 ('MetaCons "DeleteResiliencyPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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.

Constructors

DeleteResiliencyPolicyResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • policyArn :: Text

    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.

Instances

Instances details
Generic DeleteResiliencyPolicyResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Associated Types

type Rep DeleteResiliencyPolicyResponse :: Type -> Type #

Read DeleteResiliencyPolicyResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Show DeleteResiliencyPolicyResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

NFData DeleteResiliencyPolicyResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

Eq DeleteResiliencyPolicyResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.DeleteResiliencyPolicy

type Rep DeleteResiliencyPolicyResponse Source # 
Instance details

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_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.