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_redshiftserverless as redshiftserverless } from 'aws-cdk-lib';
const cfnSnapshotProps: redshiftserverless.CfnSnapshotProps = {
snapshotName: 'snapshotName',
// the properties below are optional
namespaceName: 'namespaceName',
retentionPeriod: 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_redshiftserverless as redshiftserverless
cfn_snapshot_props = redshiftserverless.CfnSnapshotProps(
snapshot_name="snapshotName",
# the properties below are optional
namespace_name="namespaceName",
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.redshiftserverless.*;
CfnSnapshotProps cfnSnapshotProps = CfnSnapshotProps.builder()
.snapshotName("snapshotName")
// the properties below are optional
.namespaceName("namespaceName")
.retentionPeriod(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.RedshiftServerless;
var cfnSnapshotProps = new CfnSnapshotProps {
SnapshotName = "snapshotName",
// the properties below are optional
NamespaceName = "namespaceName",
RetentionPeriod = 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{
SnapshotName: jsii.String("snapshotName"),
// the properties below are optional
NamespaceName: jsii.String("namespaceName"),
RetentionPeriod: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
namespaceNameoptionalstringnamespace_nameoptionalstrnamespaceNameoptionalStringNamespaceNameoptionalstringNamespaceNameoptional*string #The name of the namepsace.
retentionPeriodoptionalnumberretention_periodoptionalint | floatretentionPeriodoptionalNumberRetentionPeriodoptionaldoubleRetentionPeriodoptional*float64 #The retention period of the snapshot created by the scheduled action.
snapshotNamestringsnapshot_namestrsnapshotNameStringSnapshotNamestringSnapshotName*string required #The name of the snapshot.