Class CfnSnapshotCopyGrantProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnSnapshotCopyGrantProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotCopyGrantProps>
- Enclosing interface:
CfnSnapshotCopyGrantProps
@Stability(Stable)
public static final class CfnSnapshotCopyGrantProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotCopyGrantProps>
A builder for
CfnSnapshotCopyGrantProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSnapshotCopyGrantProps.getKmsKeyId()snapshotCopyGrantName(String snapshotCopyGrantName) Sets the value ofCfnSnapshotCopyGrantProps.getSnapshotCopyGrantName()Sets the value ofCfnSnapshotCopyGrantProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
snapshotCopyGrantName
@Stability(Stable) public CfnSnapshotCopyGrantProps.Builder snapshotCopyGrantName(String snapshotCopyGrantName) Sets the value ofCfnSnapshotCopyGrantProps.getSnapshotCopyGrantName()- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant. This parameter is required. This name must be unique in the region for the AWS account.- Returns:
this
-
kmsKeyId
Sets the value ofCfnSnapshotCopyGrantProps.getKmsKeyId()- Parameters:
kmsKeyId- The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used. Marked writeOnly because Create accepts aliases/key-ids but Describe returns the resolved key ARN, which would fail drift detection.- Returns:
this
-
tags
Sets the value ofCfnSnapshotCopyGrantProps.getTags()- Parameters:
tags- A list of tag instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotCopyGrantProps>- Returns:
- a new instance of
CfnSnapshotCopyGrantProps - Throws:
NullPointerException- if any required attribute was not provided
-