Interface CfnSnapshotProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSnapshotProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:59.724Z")
@Stability(Stable)
public interface CfnSnapshotProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnSnapshot.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.redshift.*;
CfnSnapshotProps cfnSnapshotProps = CfnSnapshotProps.builder()
.clusterIdentifier("clusterIdentifier")
.snapshotIdentifier("snapshotIdentifier")
// the properties below are optional
.manualSnapshotRetentionPeriod(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSnapshotPropsstatic final classAn implementation forCfnSnapshotProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnSnapshotProps.Builderbuilder()The cluster identifier for which you want a snapshot.default NumberThe number of days that a manual snapshot is retained.A unique identifier for the snapshot that you are requesting.getTags()A list of tag instances.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterIdentifier
The cluster identifier for which you want a snapshot.- See Also:
-
getSnapshotIdentifier
A unique identifier for the snapshot that you are requesting.This identifier must be unique for all snapshots within the Amazon Web Services account.
- See Also:
-
getManualSnapshotRetentionPeriod
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.
- See Also:
-
getTags
A list of tag instances.- See Also:
-
builder
- Returns:
- a
CfnSnapshotProps.BuilderofCfnSnapshotProps
-