Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Update deletion protection to either allow or deny deletion of the final Region in a replication set.
Synopsis
- data UpdateDeletionProtection = UpdateDeletionProtection' {
- clientToken :: Maybe Text
- arn :: Text
- deletionProtected :: Bool
- newUpdateDeletionProtection :: Text -> Bool -> UpdateDeletionProtection
- updateDeletionProtection_clientToken :: Lens' UpdateDeletionProtection (Maybe Text)
- updateDeletionProtection_arn :: Lens' UpdateDeletionProtection Text
- updateDeletionProtection_deletionProtected :: Lens' UpdateDeletionProtection Bool
- data UpdateDeletionProtectionResponse = UpdateDeletionProtectionResponse' {
- httpStatus :: Int
- newUpdateDeletionProtectionResponse :: Int -> UpdateDeletionProtectionResponse
- updateDeletionProtectionResponse_httpStatus :: Lens' UpdateDeletionProtectionResponse Int
Creating a Request
data UpdateDeletionProtection Source #
See: newUpdateDeletionProtection
smart constructor.
UpdateDeletionProtection' | |
|
Instances
newUpdateDeletionProtection Source #
:: Text | |
-> Bool | |
-> UpdateDeletionProtection |
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.
UpdateDeletionProtectionResponse' | |
|
Instances
Eq UpdateDeletionProtectionResponse Source # | |
Read UpdateDeletionProtectionResponse Source # | |
Show UpdateDeletionProtectionResponse Source # | |
Generic UpdateDeletionProtectionResponse Source # | |
NFData UpdateDeletionProtectionResponse Source # | |
Defined in Amazonka.SSMIncidents.UpdateDeletionProtection rnf :: UpdateDeletionProtectionResponse -> () # | |
type Rep UpdateDeletionProtectionResponse Source # | |
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
updateDeletionProtectionResponse_httpStatus :: Lens' UpdateDeletionProtectionResponse Int Source #
The response's http status code.