From d7ebbc3dee0a938d88fc792d721025335795a17e Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 12 Apr 2024 18:15:24 +0000 Subject: [PATCH] feat(client-redshift): Adds support for Amazon Redshift DescribeClusterSnapshots API to include Snapshot ARN response field. --- .../src/commands/AuthorizeSnapshotAccessCommand.ts | 1 + .../src/commands/CopyClusterSnapshotCommand.ts | 1 + .../src/commands/CreateClusterSnapshotCommand.ts | 1 + .../src/commands/DeleteClusterSnapshotCommand.ts | 1 + .../src/commands/DescribeClusterSnapshotsCommand.ts | 1 + .../src/commands/ModifyClusterSnapshotCommand.ts | 1 + .../src/commands/RevokeSnapshotAccessCommand.ts | 1 + clients/client-redshift/src/models/models_0.ts | 6 ++++++ clients/client-redshift/src/protocols/Aws_query.ts | 3 +++ codegen/sdk-codegen/aws-models/redshift.json | 6 ++++++ 10 files changed, 22 insertions(+) diff --git a/clients/client-redshift/src/commands/AuthorizeSnapshotAccessCommand.ts b/clients/client-redshift/src/commands/AuthorizeSnapshotAccessCommand.ts index 5938bc34aec1..eb6e9e2b33a9 100644 --- a/clients/client-redshift/src/commands/AuthorizeSnapshotAccessCommand.ts +++ b/clients/client-redshift/src/commands/AuthorizeSnapshotAccessCommand.ts @@ -97,6 +97,7 @@ export interface AuthorizeSnapshotAccessCommandOutput extends AuthorizeSnapshotA * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", + * // SnapshotArn: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-redshift/src/commands/CopyClusterSnapshotCommand.ts b/clients/client-redshift/src/commands/CopyClusterSnapshotCommand.ts index 98d0501afdb7..142c88ae6c06 100644 --- a/clients/client-redshift/src/commands/CopyClusterSnapshotCommand.ts +++ b/clients/client-redshift/src/commands/CopyClusterSnapshotCommand.ts @@ -103,6 +103,7 @@ export interface CopyClusterSnapshotCommandOutput extends CopyClusterSnapshotRes * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", + * // SnapshotArn: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-redshift/src/commands/CreateClusterSnapshotCommand.ts b/clients/client-redshift/src/commands/CreateClusterSnapshotCommand.ts index 02c0f8799a11..5dbc50fbeccb 100644 --- a/clients/client-redshift/src/commands/CreateClusterSnapshotCommand.ts +++ b/clients/client-redshift/src/commands/CreateClusterSnapshotCommand.ts @@ -102,6 +102,7 @@ export interface CreateClusterSnapshotCommandOutput extends CreateClusterSnapsho * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", + * // SnapshotArn: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-redshift/src/commands/DeleteClusterSnapshotCommand.ts b/clients/client-redshift/src/commands/DeleteClusterSnapshotCommand.ts index b627af13ca63..bc6aed7f7013 100644 --- a/clients/client-redshift/src/commands/DeleteClusterSnapshotCommand.ts +++ b/clients/client-redshift/src/commands/DeleteClusterSnapshotCommand.ts @@ -96,6 +96,7 @@ export interface DeleteClusterSnapshotCommandOutput extends DeleteClusterSnapsho * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", + * // SnapshotArn: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-redshift/src/commands/DescribeClusterSnapshotsCommand.ts b/clients/client-redshift/src/commands/DescribeClusterSnapshotsCommand.ts index 39de1cbe3ee9..04ccdc6edca5 100644 --- a/clients/client-redshift/src/commands/DescribeClusterSnapshotsCommand.ts +++ b/clients/client-redshift/src/commands/DescribeClusterSnapshotsCommand.ts @@ -124,6 +124,7 @@ export interface DescribeClusterSnapshotsCommandOutput extends SnapshotMessage, * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", + * // SnapshotArn: "STRING_VALUE", * // }, * // ], * // }; diff --git a/clients/client-redshift/src/commands/ModifyClusterSnapshotCommand.ts b/clients/client-redshift/src/commands/ModifyClusterSnapshotCommand.ts index 7c8ed07f18a8..6835f2049260 100644 --- a/clients/client-redshift/src/commands/ModifyClusterSnapshotCommand.ts +++ b/clients/client-redshift/src/commands/ModifyClusterSnapshotCommand.ts @@ -92,6 +92,7 @@ export interface ModifyClusterSnapshotCommandOutput extends ModifyClusterSnapsho * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", + * // SnapshotArn: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-redshift/src/commands/RevokeSnapshotAccessCommand.ts b/clients/client-redshift/src/commands/RevokeSnapshotAccessCommand.ts index 68d6356f5f4a..35594a69f060 100644 --- a/clients/client-redshift/src/commands/RevokeSnapshotAccessCommand.ts +++ b/clients/client-redshift/src/commands/RevokeSnapshotAccessCommand.ts @@ -98,6 +98,7 @@ export interface RevokeSnapshotAccessCommandOutput extends RevokeSnapshotAccessR * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", + * // SnapshotArn: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-redshift/src/models/models_0.ts b/clients/client-redshift/src/models/models_0.ts index 7d3ad181219f..b18ef692151e 100644 --- a/clients/client-redshift/src/models/models_0.ts +++ b/clients/client-redshift/src/models/models_0.ts @@ -1707,6 +1707,12 @@ export interface Snapshot { * @public */ MasterPasswordSecretKmsKeyId?: string; + + /** + *

The Amazon Resource Name (ARN) of the snapshot.

+ * @public + */ + SnapshotArn?: string; } /** diff --git a/clients/client-redshift/src/protocols/Aws_query.ts b/clients/client-redshift/src/protocols/Aws_query.ts index bce68494007b..260d230760e3 100644 --- a/clients/client-redshift/src/protocols/Aws_query.ts +++ b/clients/client-redshift/src/protocols/Aws_query.ts @@ -17719,6 +17719,9 @@ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { if (output[_MPSKKI] != null) { contents[_MPSKKI] = __expectString(output[_MPSKKI]); } + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); + } return contents; }; diff --git a/codegen/sdk-codegen/aws-models/redshift.json b/codegen/sdk-codegen/aws-models/redshift.json index 71851ca82e63..6da4c045fdf1 100644 --- a/codegen/sdk-codegen/aws-models/redshift.json +++ b/codegen/sdk-codegen/aws-models/redshift.json @@ -17584,6 +17584,12 @@ "traits": { "smithy.api#documentation": "

The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.

" } + }, + "SnapshotArn": { + "target": "com.amazonaws.redshift#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the snapshot.

" + } } }, "traits": {