Class CfnSnapshot
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.redshift.CfnSnapshot
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ISnapshotRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:59.722Z")
@Stability(Stable)
public class CfnSnapshot
extends CfnResource
implements IInspectable, ISnapshotRef, ITaggableV2
Resource Type definition for AWS::Redshift::Snapshot.
Creates a manual snapshot of the specified cluster. The cluster must be in the available state.
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.*;
CfnSnapshot cfnSnapshot = CfnSnapshot.Builder.create(this, "MyCfnSnapshot")
.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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.redshift.ISnapshotRef
ISnapshotRef.Jsii$Default, ISnapshotRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSnapshot(software.amazon.jsii.JsiiObjectRef objRef) CfnSnapshot(software.constructs.Construct scope, String id, CfnSnapshotProps props) Create a newAWS::Redshift::Snapshot. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSnapshot(ISnapshotRef resource) The Availability Zone in which the cluster was created.The time (UTC) when the cluster was originally created.The version ID of the Amazon Redshift engine that is running on the cluster.The name of the database that was created when the cluster was created.If true, the data in the snapshot is encrypted at rest.A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster.The engine full version of the cluster at the time the snapshot was taken.An option that specifies whether to create the cluster with enhanced VPC routing enabled.The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.The name of the maintenance track for the snapshot.The admin user name for the cluster.The node type that the cluster is provisioned with.The number of nodes in the cluster.The Amazon Web Services account that owns the snapshot.The port that the cluster is listening on.The Amazon Resource Name (ARN) of the snapshot.The time (in UTC format) when Amazon Redshift began the snapshot.The snapshot type.The snapshot status.The VPC identifier of the cluster if the snapshot is from a cluster in a VPC.Tag Manager which manages the tags for this resource.The cluster identifier for which you want a snapshot.The number of days that a manual snapshot is retained.A unique identifier for the snapshot that you are requesting.A reference to a Snapshot resource.getTags()A list of tag instances.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSnapshot.renderProperties(Map<String, Object> props) voidsetClusterIdentifier(String value) The cluster identifier for which you want a snapshot.voidThe number of days that a manual snapshot is retained.voidsetSnapshotIdentifier(String value) A unique identifier for the snapshot that you are requesting.voidA list of tag instances.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSnapshot
protected CfnSnapshot(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSnapshot
protected CfnSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSnapshot
@Stability(Stable) public CfnSnapshot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSnapshotProps props) Create a newAWS::Redshift::Snapshot.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForSnapshot
- Parameters:
resource- This parameter is required.
-
isCfnSnapshot
Checks whether the given object is a CfnSnapshot.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAvailabilityZone
The Availability Zone in which the cluster was created. -
getAttrClusterCreateTime
The time (UTC) when the cluster was originally created. -
getAttrClusterVersion
The version ID of the Amazon Redshift engine that is running on the cluster. -
getAttrDbName
The name of the database that was created when the cluster was created. -
getAttrEncrypted
If true, the data in the snapshot is encrypted at rest. -
getAttrEncryptedWithHsm
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. -
getAttrEngineFullVersion
The engine full version of the cluster at the time the snapshot was taken. -
getAttrEnhancedVpcRouting
An option that specifies whether to create the cluster with enhanced VPC routing enabled. -
getAttrKmsKeyId
The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken. -
getAttrMaintenanceTrackName
The name of the maintenance track for the snapshot. -
getAttrMasterUsername
The admin user name for the cluster. -
getAttrNodeType
The node type that the cluster is provisioned with. -
getAttrNumberOfNodes
The number of nodes in the cluster. -
getAttrOwnerAccount
The Amazon Web Services account that owns the snapshot. -
getAttrPort
The port that the cluster is listening on. -
getAttrSnapshotArn
The Amazon Resource Name (ARN) of the snapshot. -
getAttrSnapshotCreateTime
The time (in UTC format) when Amazon Redshift began the snapshot. -
getAttrSnapshotType
The snapshot type.Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot are of type manual.
-
getAttrStatus
The snapshot status.The value of the status depends on the API operation used: CreateClusterSnapshot and CopyClusterSnapshot returns status as creating. DescribeClusterSnapshots returns status as creating, available, final snapshot, or failed. DeleteClusterSnapshot returns status as deleted.
-
getAttrVpcId
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getSnapshotRef
A reference to a Snapshot resource.- Specified by:
getSnapshotRefin interfaceISnapshotRef
-
getClusterIdentifier
The cluster identifier for which you want a snapshot. -
setClusterIdentifier
The cluster identifier for which you want a snapshot. -
getSnapshotIdentifier
A unique identifier for the snapshot that you are requesting. -
setSnapshotIdentifier
A unique identifier for the snapshot that you are requesting. -
getManualSnapshotRetentionPeriod
The number of days that a manual snapshot is retained. -
setManualSnapshotRetentionPeriod
The number of days that a manual snapshot is retained. -
getTags
A list of tag instances. -
setTags
A list of tag instances.
-