Skip to content

Commit 81f66cb

Browse files
author
awstools
committed
feat(client-redshift): Added support for managing credentials of provisioned cluster admin using AWS Secrets Manager.
1 parent 95a8827 commit 81f66cb

28 files changed

+470
-49
lines changed

clients/client-redshift/src/commands/AuthorizeSnapshotAccessCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ export interface AuthorizeSnapshotAccessCommandOutput extends AuthorizeSnapshotA
105105
* // ManualSnapshotRetentionPeriod: Number("int"),
106106
* // ManualSnapshotRemainingDays: Number("int"),
107107
* // SnapshotRetentionStartTime: new Date("TIMESTAMP"),
108+
* // MasterPasswordSecretArn: "STRING_VALUE",
109+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
108110
* // },
109111
* // };
110112
*

clients/client-redshift/src/commands/CopyClusterSnapshotCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export interface CopyClusterSnapshotCommandOutput extends CopyClusterSnapshotRes
111111
* // ManualSnapshotRetentionPeriod: Number("int"),
112112
* // ManualSnapshotRemainingDays: Number("int"),
113113
* // SnapshotRetentionStartTime: new Date("TIMESTAMP"),
114+
* // MasterPasswordSecretArn: "STRING_VALUE",
115+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
114116
* // },
115117
* // };
116118
*

clients/client-redshift/src/commands/CreateClusterCommand.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { CreateClusterMessage, CreateClusterResult } from "../models/models_0";
17+
import {
18+
CreateClusterMessage,
19+
CreateClusterMessageFilterSensitiveLog,
20+
CreateClusterResult,
21+
CreateClusterResultFilterSensitiveLog,
22+
} from "../models/models_0";
1823
import { de_CreateClusterCommand, se_CreateClusterCommand } from "../protocols/Aws_query";
1924
import { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient";
2025

@@ -56,7 +61,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
5661
* ClusterType: "STRING_VALUE",
5762
* NodeType: "STRING_VALUE", // required
5863
* MasterUsername: "STRING_VALUE", // required
59-
* MasterUserPassword: "STRING_VALUE", // required
64+
* MasterUserPassword: "STRING_VALUE",
6065
* ClusterSecurityGroups: [ // ClusterSecurityGroupNameList
6166
* "STRING_VALUE",
6267
* ],
@@ -96,6 +101,8 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
96101
* AquaConfigurationStatus: "enabled" || "disabled" || "auto",
97102
* DefaultIamRoleArn: "STRING_VALUE",
98103
* LoadSampleData: "STRING_VALUE",
104+
* ManageMasterPassword: true || false,
105+
* MasterPasswordSecretKmsKeyId: "STRING_VALUE",
99106
* };
100107
* const command = new CreateClusterCommand(input);
101108
* const response = await client.send(command);
@@ -273,6 +280,8 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
273280
* // CustomDomainName: "STRING_VALUE",
274281
* // CustomDomainCertificateArn: "STRING_VALUE",
275282
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
283+
* // MasterPasswordSecretArn: "STRING_VALUE",
284+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
276285
* // },
277286
* // };
278287
*
@@ -415,8 +424,8 @@ export class CreateClusterCommand extends $Command<
415424
logger,
416425
clientName,
417426
commandName,
418-
inputFilterSensitiveLog: (_: any) => _,
419-
outputFilterSensitiveLog: (_: any) => _,
427+
inputFilterSensitiveLog: CreateClusterMessageFilterSensitiveLog,
428+
outputFilterSensitiveLog: CreateClusterResultFilterSensitiveLog,
420429
[SMITHY_CONTEXT_KEY]: {
421430
service: "RedshiftServiceVersion20121201",
422431
operation: "CreateCluster",

clients/client-redshift/src/commands/CreateClusterSnapshotCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ export interface CreateClusterSnapshotCommandOutput extends CreateClusterSnapsho
110110
* // ManualSnapshotRetentionPeriod: Number("int"),
111111
* // ManualSnapshotRemainingDays: Number("int"),
112112
* // SnapshotRetentionStartTime: new Date("TIMESTAMP"),
113+
* // MasterPasswordSecretArn: "STRING_VALUE",
114+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
113115
* // },
114116
* // };
115117
*

clients/client-redshift/src/commands/DeleteClusterCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { DeleteClusterMessage, DeleteClusterResult } from "../models/models_0";
17+
import { DeleteClusterMessage, DeleteClusterResult, DeleteClusterResultFilterSensitiveLog } from "../models/models_0";
1818
import { de_DeleteClusterCommand, se_DeleteClusterCommand } from "../protocols/Aws_query";
1919
import { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient";
2020

@@ -241,6 +241,8 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResult, __Metad
241241
* // CustomDomainName: "STRING_VALUE",
242242
* // CustomDomainCertificateArn: "STRING_VALUE",
243243
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
244+
* // MasterPasswordSecretArn: "STRING_VALUE",
245+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
244246
* // },
245247
* // };
246248
*
@@ -322,7 +324,7 @@ export class DeleteClusterCommand extends $Command<
322324
clientName,
323325
commandName,
324326
inputFilterSensitiveLog: (_: any) => _,
325-
outputFilterSensitiveLog: (_: any) => _,
327+
outputFilterSensitiveLog: DeleteClusterResultFilterSensitiveLog,
326328
[SMITHY_CONTEXT_KEY]: {
327329
service: "RedshiftServiceVersion20121201",
328330
operation: "DeleteCluster",

clients/client-redshift/src/commands/DeleteClusterSnapshotCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ export interface DeleteClusterSnapshotCommandOutput extends DeleteClusterSnapsho
104104
* // ManualSnapshotRetentionPeriod: Number("int"),
105105
* // ManualSnapshotRemainingDays: Number("int"),
106106
* // SnapshotRetentionStartTime: new Date("TIMESTAMP"),
107+
* // MasterPasswordSecretArn: "STRING_VALUE",
108+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
107109
* // },
108110
* // };
109111
*

clients/client-redshift/src/commands/DescribeClusterSnapshotsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ export interface DescribeClusterSnapshotsCommandOutput extends SnapshotMessage,
132132
* // ManualSnapshotRetentionPeriod: Number("int"),
133133
* // ManualSnapshotRemainingDays: Number("int"),
134134
* // SnapshotRetentionStartTime: new Date("TIMESTAMP"),
135+
* // MasterPasswordSecretArn: "STRING_VALUE",
136+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
135137
* // },
136138
* // ],
137139
* // };

clients/client-redshift/src/commands/DescribeClustersCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { ClustersMessage, DescribeClustersMessage } from "../models/models_0";
17+
import { ClustersMessage, ClustersMessageFilterSensitiveLog, DescribeClustersMessage } from "../models/models_0";
1818
import { de_DescribeClustersCommand, se_DescribeClustersCommand } from "../protocols/Aws_query";
1919
import { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient";
2020

@@ -245,6 +245,8 @@ export interface DescribeClustersCommandOutput extends ClustersMessage, __Metada
245245
* // CustomDomainName: "STRING_VALUE",
246246
* // CustomDomainCertificateArn: "STRING_VALUE",
247247
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
248+
* // MasterPasswordSecretArn: "STRING_VALUE",
249+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
248250
* // },
249251
* // ],
250252
* // };
@@ -317,7 +319,7 @@ export class DescribeClustersCommand extends $Command<
317319
clientName,
318320
commandName,
319321
inputFilterSensitiveLog: (_: any) => _,
320-
outputFilterSensitiveLog: (_: any) => _,
322+
outputFilterSensitiveLog: ClustersMessageFilterSensitiveLog,
321323
[SMITHY_CONTEXT_KEY]: {
322324
service: "RedshiftServiceVersion20121201",
323325
operation: "DescribeClusters",

clients/client-redshift/src/commands/DescribeCustomDomainAssociationsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface DescribeCustomDomainAssociationsCommandOutput
4242

4343
/**
4444
* @public
45-
* <p>Contains information for custom domain associations for a cluster.</p>
45+
* <p>Contains information about custom domain associations for a cluster.</p>
4646
* @example
4747
* Use a bare-bones client and the command you need to make an API call.
4848
* ```javascript

clients/client-redshift/src/commands/DisableSnapshotCopyCommand.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { DisableSnapshotCopyMessage, DisableSnapshotCopyResult } from "../models/models_1";
17+
import {
18+
DisableSnapshotCopyMessage,
19+
DisableSnapshotCopyResult,
20+
DisableSnapshotCopyResultFilterSensitiveLog,
21+
} from "../models/models_1";
1822
import { de_DisableSnapshotCopyCommand, se_DisableSnapshotCopyCommand } from "../protocols/Aws_query";
1923
import { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient";
2024

@@ -227,6 +231,8 @@ export interface DisableSnapshotCopyCommandOutput extends DisableSnapshotCopyRes
227231
* // CustomDomainName: "STRING_VALUE",
228232
* // CustomDomainCertificateArn: "STRING_VALUE",
229233
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
234+
* // MasterPasswordSecretArn: "STRING_VALUE",
235+
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
230236
* // },
231237
* // };
232238
*
@@ -304,7 +310,7 @@ export class DisableSnapshotCopyCommand extends $Command<
304310
clientName,
305311
commandName,
306312
inputFilterSensitiveLog: (_: any) => _,
307-
outputFilterSensitiveLog: (_: any) => _,
313+
outputFilterSensitiveLog: DisableSnapshotCopyResultFilterSensitiveLog,
308314
[SMITHY_CONTEXT_KEY]: {
309315
service: "RedshiftServiceVersion20121201",
310316
operation: "DisableSnapshotCopy",

0 commit comments

Comments
 (0)