CfnSnapshotProps

class aws_cdk.aws_redshift.CfnSnapshotProps(*, cluster_identifier, snapshot_identifier, manual_snapshot_retention_period=None, tags=None)

Bases: object

Properties for defining a CfnSnapshot.

Parameters:
  • cluster_identifier (str) – The cluster identifier for which you want a snapshot.

  • snapshot_identifier (str) – A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.

  • manual_snapshot_retention_period (Union[int, float, None]) – 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.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of tag instances.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshot.html

ExampleMetadata:

fixture=_generated

Example:

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"
    )]
)

Attributes

cluster_identifier

The cluster identifier for which you want a snapshot.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshot.html#cfn-redshift-snapshot-clusteridentifier

manual_snapshot_retention_period

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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshot.html#cfn-redshift-snapshot-manualsnapshotretentionperiod

snapshot_identifier

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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshot.html#cfn-redshift-snapshot-snapshotidentifier

tags

A list of tag instances.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshot.html#cfn-redshift-snapshot-tags