Class CfnSnapshotCopyGrant.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnSnapshotCopyGrant.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotCopyGrant>
- Enclosing class:
CfnSnapshotCopyGrant
@Stability(Stable)
public static final class CfnSnapshotCopyGrant.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotCopyGrant>
A fluent builder for
CfnSnapshotCopyGrant.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnSnapshotCopyGrant.BuilderThe unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission.snapshotCopyGrantName(String snapshotCopyGrantName) The name of the snapshot copy grant.A list of tag instances.
-
Method Details
-
create
@Stability(Stable) public static CfnSnapshotCopyGrant.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnSnapshotCopyGrant.Builder.
-
snapshotCopyGrantName
@Stability(Stable) public CfnSnapshotCopyGrant.Builder snapshotCopyGrantName(String snapshotCopyGrantName) The name of the snapshot copy grant.This name must be unique in the region for the AWS account.
- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
kmsKeyId- The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tag instances.- Parameters:
tags- A list of tag instances. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotCopyGrant>- Returns:
- a newly built instance of
CfnSnapshotCopyGrant.
-