amazonka-ssm-incidents-2.0: Amazon Systems Manager Incident Manager 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.SSMIncidents.UpdateDeletionProtection

Description

Update deletion protection to either allow or deny deletion of the final Region in a replication set.

Synopsis

Creating a Request

data UpdateDeletionProtection Source #

See: newUpdateDeletionProtection smart constructor.

Constructors

UpdateDeletionProtection' 

Fields

  • clientToken :: Maybe Text

    A token that ensures that the operation is called only once with the specified details.

  • arn :: Text

    The Amazon Resource Name (ARN) of the replication set to update.

  • deletionProtected :: Bool

    Specifies if deletion protection is turned on or off in your account.

Instances

Instances details
ToJSON UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

ToHeaders UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

ToPath UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

ToQuery UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

AWSRequest UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Generic UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Associated Types

type Rep UpdateDeletionProtection :: Type -> Type #

Read UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Show UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

NFData UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Eq UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Hashable UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

type AWSResponse UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

type Rep UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

type Rep UpdateDeletionProtection = D1 ('MetaData "UpdateDeletionProtection" "Amazonka.SSMIncidents.UpdateDeletionProtection" "amazonka-ssm-incidents-2.0-JEcCJ5TIs2l5vrFa2RYlgd" 'False) (C1 ('MetaCons "UpdateDeletionProtection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "deletionProtected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

newUpdateDeletionProtection Source #

Create a value of UpdateDeletionProtection 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:UpdateDeletionProtection', updateDeletionProtection_clientToken - A token that ensures that the operation is called only once with the specified details.

UpdateDeletionProtection, updateDeletionProtection_arn - The Amazon Resource Name (ARN) of the replication set to update.

UpdateDeletionProtection, updateDeletionProtection_deletionProtected - Specifies if deletion protection is turned on or off in your account.

Request Lenses

updateDeletionProtection_clientToken :: Lens' UpdateDeletionProtection (Maybe Text) Source #

A token that ensures that the operation is called only once with the specified details.

updateDeletionProtection_arn :: Lens' UpdateDeletionProtection Text Source #

The Amazon Resource Name (ARN) of the replication set to update.

updateDeletionProtection_deletionProtected :: Lens' UpdateDeletionProtection Bool Source #

Specifies if deletion protection is turned on or off in your account.

Destructuring the Response

data UpdateDeletionProtectionResponse Source #

See: newUpdateDeletionProtectionResponse smart constructor.

Constructors

UpdateDeletionProtectionResponse' 

Fields

Instances

Instances details
Generic UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Associated Types

type Rep UpdateDeletionProtectionResponse :: Type -> Type #

Read UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Show UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

NFData UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Eq UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

type Rep UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

type Rep UpdateDeletionProtectionResponse = D1 ('MetaData "UpdateDeletionProtectionResponse" "Amazonka.SSMIncidents.UpdateDeletionProtection" "amazonka-ssm-incidents-2.0-JEcCJ5TIs2l5vrFa2RYlgd" 'False) (C1 ('MetaCons "UpdateDeletionProtectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateDeletionProtectionResponse Source #

Create a value of UpdateDeletionProtectionResponse 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:UpdateDeletionProtectionResponse', updateDeletionProtectionResponse_httpStatus - The response's http status code.

Response Lenses