Class CfnSnapshot.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnSnapshot.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshot>
- Enclosing class:
CfnSnapshot
@Stability(Stable)
public static final class CfnSnapshot.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshot>
A fluent builder for
CfnSnapshot.-
Method Summary
Modifier and TypeMethodDescriptionbuild()clusterIdentifier(String clusterIdentifier) The cluster identifier for which you want a snapshot.static CfnSnapshot.BuildermanualSnapshotRetentionPeriod(Number manualSnapshotRetentionPeriod) The number of days that a manual snapshot is retained.snapshotIdentifier(String snapshotIdentifier) A unique identifier for the snapshot that you are requesting.A list of tag instances.
-
Method Details
-
create
@Stability(Stable) public static CfnSnapshot.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
CfnSnapshot.Builder.
-
clusterIdentifier
The cluster identifier for which you want a snapshot.- Parameters:
clusterIdentifier- The cluster identifier for which you want a snapshot. This parameter is required.- Returns:
this- See Also:
-
snapshotIdentifier
A unique identifier for the snapshot that you are requesting.This identifier must be unique for all snapshots within the Amazon Web Services account.
- Parameters:
snapshotIdentifier- A unique identifier for the snapshot that you are requesting. This parameter is required.- Returns:
this- See Also:
-
manualSnapshotRetentionPeriod
@Stability(Stable) public CfnSnapshot.Builder manualSnapshotRetentionPeriod(Number manualSnapshotRetentionPeriod) The number of days that a manual snapshot is retained.If the value is -1, the manual snapshot is retained indefinitely. The value must be either -1 or an integer between 1 and 3653.
- Parameters:
manualSnapshotRetentionPeriod- The number of days that a manual snapshot is retained. 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<CfnSnapshot>- Returns:
- a newly built instance of
CfnSnapshot.
-