Skip to content

Commit e7cee7e

Browse files
author
awstools
committed
feat(client-neptune): Update TdeCredentialPassword type to SensitiveString
1 parent 2e086ef commit e7cee7e

File tree

4 files changed

+80
-36
lines changed

4 files changed

+80
-36
lines changed

clients/client-neptune/src/commands/CreateDBInstanceCommand.ts

Lines changed: 6 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 { CreateDBInstanceMessage, CreateDBInstanceResult } from "../models/models_0";
17+
import {
18+
CreateDBInstanceMessage,
19+
CreateDBInstanceMessageFilterSensitiveLog,
20+
CreateDBInstanceResult,
21+
} from "../models/models_0";
1822
import { NeptuneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptuneClient";
1923
import { de_CreateDBInstanceCommand, se_CreateDBInstanceCommand } from "../protocols/Aws_query";
2024

@@ -368,7 +372,7 @@ export class CreateDBInstanceCommand extends $Command<
368372
logger,
369373
clientName,
370374
commandName,
371-
inputFilterSensitiveLog: (_: any) => _,
375+
inputFilterSensitiveLog: CreateDBInstanceMessageFilterSensitiveLog,
372376
outputFilterSensitiveLog: (_: any) => _,
373377
[SMITHY_CONTEXT_KEY]: {
374378
service: "AmazonRDSv19",

clients/client-neptune/src/commands/ModifyDBInstanceCommand.ts

Lines changed: 6 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 { ModifyDBInstanceMessage, ModifyDBInstanceResult } from "../models/models_0";
17+
import {
18+
ModifyDBInstanceMessage,
19+
ModifyDBInstanceMessageFilterSensitiveLog,
20+
ModifyDBInstanceResult,
21+
} from "../models/models_0";
1822
import { NeptuneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptuneClient";
1923
import { de_ModifyDBInstanceCommand, se_ModifyDBInstanceCommand } from "../protocols/Aws_query";
2024

@@ -355,7 +359,7 @@ export class ModifyDBInstanceCommand extends $Command<
355359
logger,
356360
clientName,
357361
commandName,
358-
inputFilterSensitiveLog: (_: any) => _,
362+
inputFilterSensitiveLog: ModifyDBInstanceMessageFilterSensitiveLog,
359363
outputFilterSensitiveLog: (_: any) => _,
360364
[SMITHY_CONTEXT_KEY]: {
361365
service: "AmazonRDSv19",

clients/client-neptune/src/models/models_0.ts

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// smithy-typescript generated code
2-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2+
import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client";
33

44
import { NeptuneServiceException as __BaseException } from "./NeptuneServiceException";
55

@@ -23,7 +23,7 @@ export interface AddRoleToDBClusterMessage {
2323
/**
2424
* @public
2525
* <p>The name of the feature for the Neptune DB cluster that the IAM role is to be associated with.
26-
* For the list of supported feature names, see <a href="neptune/latest/userguide/api-other-apis.html#DBEngineVersion">DBEngineVersion</a>.</p>
26+
* For the list of supported feature names, see <a>DBEngineVersion</a>.</p>
2727
*/
2828
FeatureName?: string;
2929
}
@@ -1280,7 +1280,7 @@ export interface CreateDBClusterMessage {
12801280
* <p>The daily time range during which automated backups are created if automated backups are
12811281
* enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
12821282
* <p>The default is a 30-minute window selected at random from an 8-hour block of time for each
1283-
* Amazon Region. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html"> Adjusting the Preferred
1283+
* Amazon Region. To see the time blocks available, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/manage-console-maintaining.html#manage-console-maintaining-window">Neptune
12841284
* Maintenance Window</a> in the <i>Amazon Neptune User Guide.</i>
12851285
* </p>
12861286
* <p>Constraints:</p>
@@ -1308,8 +1308,7 @@ export interface CreateDBClusterMessage {
13081308
* <p>Format: <code>ddd:hh24:mi-ddd:hh24:mi</code>
13091309
* </p>
13101310
* <p>The default is a 30-minute window selected at random from an 8-hour block of time for each
1311-
* Amazon Region, occurring on a random day of the week. To see the time blocks available, see
1312-
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html"> Adjusting the Preferred
1311+
* Amazon Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/manage-console-maintaining.html#manage-console-maintaining-window">Neptune
13131312
* Maintenance Window</a> in the <i>Amazon Neptune User Guide.</i>
13141313
* </p>
13151314
* <p>Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.</p>
@@ -1450,7 +1449,7 @@ export interface DBClusterRole {
14501449
/**
14511450
* @public
14521451
* <p>The name of the feature associated with the Amazon Identity and Access Management (IAM) role.
1453-
* For the list of supported feature names, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/api-other-apis.html#DescribeDBEngineVersions">DescribeDBEngineVersions</a>.
1452+
* For the list of supported feature names, see <a>DescribeDBEngineVersions</a>.
14541453
* </p>
14551454
*/
14561455
FeatureName?: string;
@@ -1624,7 +1623,7 @@ export interface VpcSecurityGroupMembership {
16241623
/**
16251624
* @public
16261625
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
1627-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
1626+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
16281627
*/
16291628
export interface DBCluster {
16301629
/**
@@ -1926,7 +1925,7 @@ export interface CreateDBClusterResult {
19261925
/**
19271926
* @public
19281927
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
1929-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
1928+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
19301929
*/
19311930
DBCluster?: DBCluster;
19321931
}
@@ -4435,7 +4434,7 @@ export interface DeleteDBClusterResult {
44354434
/**
44364435
* @public
44374436
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
4438-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
4437+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
44394438
*/
44404439
DBCluster?: DBCluster;
44414440
}
@@ -6990,7 +6989,7 @@ export interface FailoverDBClusterResult {
69906989
/**
69916990
* @public
69926991
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
6993-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
6992+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
69946993
*/
69956994
DBCluster?: DBCluster;
69966995
}
@@ -7271,7 +7270,7 @@ export interface ModifyDBClusterMessage {
72717270
* parameter results in an outage. The change is applied during the next maintenance window
72727271
* unless the <code>ApplyImmediately</code> parameter is set to true.</p>
72737272
* <p>For a list of valid engine versions, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/engine-releases.html">Engine Releases for Amazon
7274-
* Neptune</a>, or call <a href="https://docs.aws.amazon.com/neptune/latest/userguide/api-other-apis.html#DescribeDBEngineVersions">DescribeDBEngineVersions</a>.</p>
7273+
* Neptune</a>, or call <a>DescribeDBEngineVersions</a>.</p>
72757274
*/
72767275
EngineVersion?: string;
72777276

@@ -7340,7 +7339,7 @@ export interface ModifyDBClusterResult {
73407339
/**
73417340
* @public
73427341
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
7343-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
7342+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
73447343
*/
73457344
DBCluster?: DBCluster;
73467345
}
@@ -8275,7 +8274,7 @@ export interface PromoteReadReplicaDBClusterResult {
82758274
/**
82768275
* @public
82778276
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
8278-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
8277+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
82798278
*/
82808279
DBCluster?: DBCluster;
82818280
}
@@ -8394,7 +8393,7 @@ export interface RemoveRoleFromDBClusterMessage {
83948393
/**
83958394
* @public
83968395
* <p>The name of the feature for the DB cluster that the IAM role is to be disassociated from.
8397-
* For the list of supported feature names, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/api-other-apis.html#DescribeDBEngineVersions">DescribeDBEngineVersions</a>.</p>
8396+
* For the list of supported feature names, see <a>DescribeDBEngineVersions</a>.</p>
83988397
*/
83998398
FeatureName?: string;
84008399
}
@@ -8762,7 +8761,7 @@ export interface RestoreDBClusterFromSnapshotResult {
87628761
/**
87638762
* @public
87648763
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
8765-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
8764+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
87668765
*/
87678766
DBCluster?: DBCluster;
87688767
}
@@ -8977,7 +8976,7 @@ export interface RestoreDBClusterToPointInTimeResult {
89778976
/**
89788977
* @public
89798978
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
8980-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
8979+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
89818980
*/
89828981
DBCluster?: DBCluster;
89838982
}
@@ -9001,7 +9000,7 @@ export interface StartDBClusterResult {
90019000
/**
90029001
* @public
90039002
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
9004-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
9003+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
90059004
*/
90069005
DBCluster?: DBCluster;
90079006
}
@@ -9025,7 +9024,23 @@ export interface StopDBClusterResult {
90259024
/**
90269025
* @public
90279026
* <p>Contains the details of an Amazon Neptune DB cluster.</p>
9028-
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a> action.</p>
9027+
* <p>This data type is used as a response element in the <a>DescribeDBClusters</a>.</p>
90299028
*/
90309029
DBCluster?: DBCluster;
90319030
}
9031+
9032+
/**
9033+
* @internal
9034+
*/
9035+
export const CreateDBInstanceMessageFilterSensitiveLog = (obj: CreateDBInstanceMessage): any => ({
9036+
...obj,
9037+
...(obj.TdeCredentialPassword && { TdeCredentialPassword: SENSITIVE_STRING }),
9038+
});
9039+
9040+
/**
9041+
* @internal
9042+
*/
9043+
export const ModifyDBInstanceMessageFilterSensitiveLog = (obj: ModifyDBInstanceMessage): any => ({
9044+
...obj,
9045+
...(obj.TdeCredentialPassword && { TdeCredentialPassword: SENSITIVE_STRING }),
9046+
});

0 commit comments

Comments
 (0)