CmdID

CmdID / aws / aws redshift

aws redshift modify-cluster-snapshot

Modifies the settings for a snapshot. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To modify cluster snapshot

The following modify-cluster-snapshot example sets the manual retention period setting for the specified cluster snapshot to value of 10 days.

aws redshift modify-cluster-snapshot --snapshot-identifier mycluster-2019-11-06-16-32 --manual-snapshot-retention-period 10Identify
--snapshot-identifierThe identifier of the snapshot whose setting you want to modify.
--manual-snapshot-retention-periodThe number of days that a manual snapshot is retained.
Its output, shortened
{
    "Snapshot": {
        "SnapshotIdentifier": "mycluster-2019-11-06-16-32",
        "ClusterIdentifier": "mycluster",
        "SnapshotCreateTime": "2019-12-07T00:34:05.633Z",
        "Status": "available",
        "Port": 5439,
        "AvailabilityZone": "us-west-2f",
        "ClusterCreateTime": "2019-12-05T18:44:36.991Z",
        "MasterUsername": "adminuser",
        "ClusterVersion": "1.0",
        "SnapshotType": "manual",
        "NodeType": "dc2.large",
        "NumberOfNodes": 2,
        "DBName": "dev",
        "VpcId": "vpc-b1cel7t9",
        "Encrypted": false,
        "EncryptedWithHSM": false,
        "OwnerAccount": "123456789012",
        "TotalBackupSizeInMegaBytes": 64384.0,
        "ActualIncrementalBackupSizeInMegaBytes": 24.0,
        "BackupProgressInMegaBytes": 24.0,
        "CurrentBackupRateInMegaBytesPerSecond": 13.0011,
        "EstimatedSecondsToCompletion": 0,
        "ElapsedTimeInSeconds": 1,
        "Tags": [
            {
                "Key": "mytagkey",
                "Value": "mytagvalue"
            }
… 8 more lines

For more information, see Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.

Options

3 in the AWS CLI reference
--forceA Boolean option to override an exception if the retention period has already passed.
--manual-snapshot-retention-periodThe number of days that a manual snapshot is retained.
--snapshot-identifierThe identifier of the snapshot whose setting you want to modify.