libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 ensuring that the action is called only once with the specified details.

  • arn :: Text

    The Amazon Resource Name (ARN) of the replication set you're updating.

  • deletionProtected :: Bool

    Details if deletion protection is enabled or disabled in your account.

Instances

Instances details
Eq UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Read UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Show 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 #

NFData UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Hashable UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

ToJSON UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

AWSRequest 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

type Rep UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

type Rep UpdateDeletionProtection = D1 ('MetaData "UpdateDeletionProtection" "Amazonka.SSMIncidents.UpdateDeletionProtection" "libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents" '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))))
type AWSResponse UpdateDeletionProtection Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

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 ensuring that the action is called only once with the specified details.

$sel:arn:UpdateDeletionProtection', updateDeletionProtection_arn - The Amazon Resource Name (ARN) of the replication set you're updating.

$sel:deletionProtected:UpdateDeletionProtection', updateDeletionProtection_deletionProtected - Details if deletion protection is enabled or disabled in your account.

Request Lenses

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

A token ensuring that the action is called only once with the specified details.

updateDeletionProtection_arn :: Lens' UpdateDeletionProtection Text Source #

The Amazon Resource Name (ARN) of the replication set you're updating.

updateDeletionProtection_deletionProtected :: Lens' UpdateDeletionProtection Bool Source #

Details if deletion protection is enabled or disabled in your account.

Destructuring the Response

data UpdateDeletionProtectionResponse Source #

See: newUpdateDeletionProtectionResponse smart constructor.

Constructors

UpdateDeletionProtectionResponse' 

Fields

Instances

Instances details
Eq UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Read UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Show UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Generic UpdateDeletionProtectionResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateDeletionProtection

Associated Types

type Rep UpdateDeletionProtectionResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents" '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