CfnSnapshotProps Struct
Properties for defining a CfnSnapshot.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const cfnSnapshotProps: redshift.CfnSnapshotProps = {
clusterIdentifier: 'clusterIdentifier',
snapshotIdentifier: 'snapshotIdentifier',
// the properties below are optional
manualSnapshotRetentionPeriod: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_redshift as redshift
cfn_snapshot_props = redshift.CfnSnapshotProps(
cluster_identifier="clusterIdentifier",
snapshot_identifier="snapshotIdentifier",
# the properties below are optional
manual_snapshot_retention_period=123,
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Redshift;
var cfnSnapshotProps = new CfnSnapshotProps {
ClusterIdentifier = "clusterIdentifier",
SnapshotIdentifier = "snapshotIdentifier",
// the properties below are optional
ManualSnapshotRetentionPeriod = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSnapshotProps := &CfnSnapshotProps{
ClusterIdentifier: jsii.String("clusterIdentifier"),
SnapshotIdentifier: jsii.String("snapshotIdentifier"),
// the properties below are optional
ManualSnapshotRetentionPeriod: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
clusterIdentifierstringcluster_identifierstrclusterIdentifierStringClusterIdentifierstringClusterIdentifier*string required #The cluster identifier for which you want a snapshot.
manualSnapshotRetentionPeriodoptionalnumbermanual_snapshot_retention_periodoptionalint | floatmanualSnapshotRetentionPeriodoptionalNumberManualSnapshotRetentionPeriodoptionaldoubleManualSnapshotRetentionPeriodoptional*float64 #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.
snapshotIdentifierstringsnapshot_identifierstrsnapshotIdentifierStringSnapshotIdentifierstringSnapshotIdentifier*string required #A unique identifier for the snapshot that you are requesting.
This identifier must be unique for all snapshots within the Amazon Web Services account.