Class CfnSnapshotCopyGrantMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshift.CfnSnapshotCopyGrantMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotCopyGrantMixinProps>
- Enclosing interface:
CfnSnapshotCopyGrantMixinProps
@Stability(Stable)
public static final class CfnSnapshotCopyGrantMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotCopyGrantMixinProps>
A builder for
CfnSnapshotCopyGrantMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSnapshotCopyGrantMixinProps.getKmsKeyId()snapshotCopyGrantName(String snapshotCopyGrantName) Sets the value ofCfnSnapshotCopyGrantMixinProps.getSnapshotCopyGrantName()Sets the value ofCfnSnapshotCopyGrantMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyId
Sets the value ofCfnSnapshotCopyGrantMixinProps.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
-
snapshotCopyGrantName
@Stability(Stable) public CfnSnapshotCopyGrantMixinProps.Builder snapshotCopyGrantName(String snapshotCopyGrantName) Sets the value ofCfnSnapshotCopyGrantMixinProps.getSnapshotCopyGrantName()- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant. This name must be unique in the region for the AWS account.- Returns:
this
-
tags
Sets the value ofCfnSnapshotCopyGrantMixinProps.getTags()- Parameters:
tags- A list of tag instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotCopyGrantMixinProps>- Returns:
- a new instance of
CfnSnapshotCopyGrantMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-