public static final class SetDeletionProtectionRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SetDeletionProtectionRequest |
build() |
SetDeletionProtectionRequest.Builder |
deletionProtectionDescription(String deletionProtectionDescription)
The description of deletion protection.
|
SetDeletionProtectionRequest.Builder |
enableDeletionProtection(Boolean enableDeletionProtection)
Specifies whether to enable deletion protection.
|
SetDeletionProtectionRequest.Builder |
protectedResourceArn(String protectedResourceArn)
The ARN of the CMK for which you want to set deletion protection.
|
public SetDeletionProtectionRequest.Builder deletionProtectionDescription(String deletionProtectionDescription)
> This parameter takes effect only when you set the EnableDeletionProtection parameter to true.
public SetDeletionProtectionRequest.Builder enableDeletionProtection(Boolean enableDeletionProtection)
* true: enables deletion protection. * false: disables deletion protection.
public SetDeletionProtectionRequest.Builder protectedResourceArn(String protectedResourceArn)
You can call the [DescribeKey](~~28952~~) operation to query the CMK ARN.
public SetDeletionProtectionRequest build()
Copyright © 2023. All rights reserved.