diff --git a/clients/client-neptune/src/commands/CreateDBInstanceCommand.ts b/clients/client-neptune/src/commands/CreateDBInstanceCommand.ts index 3ad834dd8585..c5e2c985b200 100644 --- a/clients/client-neptune/src/commands/CreateDBInstanceCommand.ts +++ b/clients/client-neptune/src/commands/CreateDBInstanceCommand.ts @@ -14,7 +14,11 @@ import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { CreateDBInstanceMessage, CreateDBInstanceResult } from "../models/models_0"; +import { + CreateDBInstanceMessage, + CreateDBInstanceMessageFilterSensitiveLog, + CreateDBInstanceResult, +} from "../models/models_0"; import { NeptuneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptuneClient"; import { de_CreateDBInstanceCommand, se_CreateDBInstanceCommand } from "../protocols/Aws_query"; @@ -368,7 +372,7 @@ export class CreateDBInstanceCommand extends $Command< logger, clientName, commandName, - inputFilterSensitiveLog: (_: any) => _, + inputFilterSensitiveLog: CreateDBInstanceMessageFilterSensitiveLog, outputFilterSensitiveLog: (_: any) => _, [SMITHY_CONTEXT_KEY]: { service: "AmazonRDSv19", diff --git a/clients/client-neptune/src/commands/ModifyDBInstanceCommand.ts b/clients/client-neptune/src/commands/ModifyDBInstanceCommand.ts index cd73648c5ee2..9e0e5f15bf68 100644 --- a/clients/client-neptune/src/commands/ModifyDBInstanceCommand.ts +++ b/clients/client-neptune/src/commands/ModifyDBInstanceCommand.ts @@ -14,7 +14,11 @@ import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { ModifyDBInstanceMessage, ModifyDBInstanceResult } from "../models/models_0"; +import { + ModifyDBInstanceMessage, + ModifyDBInstanceMessageFilterSensitiveLog, + ModifyDBInstanceResult, +} from "../models/models_0"; import { NeptuneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptuneClient"; import { de_ModifyDBInstanceCommand, se_ModifyDBInstanceCommand } from "../protocols/Aws_query"; @@ -355,7 +359,7 @@ export class ModifyDBInstanceCommand extends $Command< logger, clientName, commandName, - inputFilterSensitiveLog: (_: any) => _, + inputFilterSensitiveLog: ModifyDBInstanceMessageFilterSensitiveLog, outputFilterSensitiveLog: (_: any) => _, [SMITHY_CONTEXT_KEY]: { service: "AmazonRDSv19", diff --git a/clients/client-neptune/src/models/models_0.ts b/clients/client-neptune/src/models/models_0.ts index 3f6f803da020..5cdce2f1fe5e 100644 --- a/clients/client-neptune/src/models/models_0.ts +++ b/clients/client-neptune/src/models/models_0.ts @@ -1,5 +1,5 @@ // smithy-typescript generated code -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { NeptuneServiceException as __BaseException } from "./NeptuneServiceException"; @@ -23,7 +23,7 @@ export interface AddRoleToDBClusterMessage { /** * @public *
The name of the feature for the Neptune DB cluster that the IAM role is to be associated with. - * For the list of supported feature names, see DBEngineVersion.
+ * For the list of supported feature names, see DBEngineVersion. */ FeatureName?: string; } @@ -1280,7 +1280,7 @@ export interface CreateDBClusterMessage { *The daily time range during which automated backups are created if automated backups are
* enabled using the BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each - * Amazon Region. To see the time blocks available, see Adjusting the Preferred + * Amazon Region. To see the time blocks available, see Neptune * Maintenance Window in the Amazon Neptune User Guide. *
*Constraints:
@@ -1308,8 +1308,7 @@ export interface CreateDBClusterMessage { *Format: ddd:hh24:mi-ddd:hh24:mi
*
The default is a 30-minute window selected at random from an 8-hour block of time for each - * Amazon Region, occurring on a random day of the week. To see the time blocks available, see - * Adjusting the Preferred + * Amazon Region, occurring on a random day of the week. To see the time blocks available, see Neptune * Maintenance Window in the Amazon Neptune User Guide. *
*Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
@@ -1450,7 +1449,7 @@ export interface DBClusterRole { /** * @public *The name of the feature associated with the Amazon Identity and Access Management (IAM) role. - * For the list of supported feature names, see DescribeDBEngineVersions. + * For the list of supported feature names, see DescribeDBEngineVersions. *
*/ FeatureName?: string; @@ -1624,7 +1623,7 @@ export interface VpcSecurityGroupMembership { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ export interface DBCluster { /** @@ -1926,7 +1925,7 @@ export interface CreateDBClusterResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -4435,7 +4434,7 @@ export interface DeleteDBClusterResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -6990,7 +6989,7 @@ export interface FailoverDBClusterResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -7271,7 +7270,7 @@ export interface ModifyDBClusterMessage { * parameter results in an outage. The change is applied during the next maintenance window * unless theApplyImmediately
parameter is set to true.
* For a list of valid engine versions, see Engine Releases for Amazon - * Neptune, or call DescribeDBEngineVersions.
+ * Neptune, or call DescribeDBEngineVersions. */ EngineVersion?: string; @@ -7340,7 +7339,7 @@ export interface ModifyDBClusterResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -8275,7 +8274,7 @@ export interface PromoteReadReplicaDBClusterResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -8394,7 +8393,7 @@ export interface RemoveRoleFromDBClusterMessage { /** * @public *The name of the feature for the DB cluster that the IAM role is to be disassociated from. - * For the list of supported feature names, see DescribeDBEngineVersions.
+ * For the list of supported feature names, see DescribeDBEngineVersions. */ FeatureName?: string; } @@ -8762,7 +8761,7 @@ export interface RestoreDBClusterFromSnapshotResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -8977,7 +8976,7 @@ export interface RestoreDBClusterToPointInTimeResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -9001,7 +9000,7 @@ export interface StartDBClusterResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } @@ -9025,7 +9024,23 @@ export interface StopDBClusterResult { /** * @public *Contains the details of an Amazon Neptune DB cluster.
- *This data type is used as a response element in the DescribeDBClusters action.
+ *This data type is used as a response element in the DescribeDBClusters.
*/ DBCluster?: DBCluster; } + +/** + * @internal + */ +export const CreateDBInstanceMessageFilterSensitiveLog = (obj: CreateDBInstanceMessage): any => ({ + ...obj, + ...(obj.TdeCredentialPassword && { TdeCredentialPassword: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ModifyDBInstanceMessageFilterSensitiveLog = (obj: ModifyDBInstanceMessage): any => ({ + ...obj, + ...(obj.TdeCredentialPassword && { TdeCredentialPassword: SENSITIVE_STRING }), +}); diff --git a/codegen/sdk-codegen/aws-models/neptune.json b/codegen/sdk-codegen/aws-models/neptune.json index 6ca16619f3ae..a6a831d94ee3 100644 --- a/codegen/sdk-codegen/aws-models/neptune.json +++ b/codegen/sdk-codegen/aws-models/neptune.json @@ -77,7 +77,7 @@ "FeatureName": { "target": "com.amazonaws.neptune#String", "traits": { - "smithy.api#documentation": "The name of the feature for the Neptune DB cluster that the IAM role is to be associated with.\n For the list of supported feature names, see DBEngineVersion.
" + "smithy.api#documentation": "The name of the feature for the Neptune DB cluster that the IAM role is to be associated with.\n For the list of supported feature names, see DBEngineVersion.
" } } }, @@ -2253,13 +2253,13 @@ "PreferredBackupWindow": { "target": "com.amazonaws.neptune#String", "traits": { - "smithy.api#documentation": "The daily time range during which automated backups are created if automated backups are\n enabled using the BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each\n Amazon Region. To see the time blocks available, see Adjusting the Preferred\n Maintenance Window in the Amazon Neptune User Guide.\n
\nConstraints:
\nMust be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
\nMust not conflict with the preferred maintenance window.
\nMust be at least 30 minutes.
\nThe daily time range during which automated backups are created if automated backups are\n enabled using the BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each\n Amazon Region. To see the time blocks available, see Neptune\n Maintenance Window in the Amazon Neptune User Guide.\n
\nConstraints:
\nMust be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
\nMust not conflict with the preferred maintenance window.
\nMust be at least 30 minutes.
\nThe weekly time range during which system maintenance can occur, in Universal Coordinated\n Time (UTC).
\nFormat: ddd:hh24:mi-ddd:hh24:mi
\n
The default is a 30-minute window selected at random from an 8-hour block of time for each\n Amazon Region, occurring on a random day of the week. To see the time blocks available, see\n Adjusting the Preferred\n Maintenance Window in the Amazon Neptune User Guide.\n
\nValid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
\nConstraints: Minimum 30-minute window.
" + "smithy.api#documentation": "The weekly time range during which system maintenance can occur, in Universal Coordinated\n Time (UTC).
\nFormat: ddd:hh24:mi-ddd:hh24:mi
\n
The default is a 30-minute window selected at random from an 8-hour block of time for each\n Amazon Region, occurring on a random day of the week. To see the time blocks available, see Neptune\n Maintenance Window in the Amazon Neptune User Guide.\n
\nValid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
\nConstraints: Minimum 30-minute window.
" } }, "ReplicationSourceIdentifier": { @@ -2311,7 +2311,10 @@ } }, "ServerlessV2ScalingConfiguration": { - "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration" + "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration", + "traits": { + "smithy.api#documentation": "Contains the scaling configuration of a Neptune Serverless DB cluster.
\nFor more information, see Using Amazon Neptune Serverless in the\n Amazon Neptune User Guide.
" + } }, "GlobalClusterIdentifier": { "target": "com.amazonaws.neptune#GlobalClusterIdentifier", @@ -2723,7 +2726,7 @@ } }, "TdeCredentialPassword": { - "target": "com.amazonaws.neptune#String", + "target": "com.amazonaws.neptune#SensitiveString", "traits": { "smithy.api#documentation": "The password for the given ARN from the key store in order to access the device.
" } @@ -3408,7 +3411,10 @@ } }, "ServerlessV2ScalingConfiguration": { - "target": "com.amazonaws.neptune#ServerlessV2ScalingConfigurationInfo" + "target": "com.amazonaws.neptune#ServerlessV2ScalingConfigurationInfo", + "traits": { + "smithy.api#documentation": "Shows the scaling configuration for a Neptune Serverless DB cluster.
\nFor more information, see Using Amazon Neptune Serverless in the\n Amazon Neptune User Guide.
" + } }, "GlobalClusterIdentifier": { "target": "com.amazonaws.neptune#GlobalClusterIdentifier", @@ -3418,7 +3424,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains the details of an Amazon Neptune DB cluster.
\nThis data type is used as a response element in the DescribeDBClusters action.
" + "smithy.api#documentation": "Contains the details of an Amazon Neptune DB cluster.
\nThis data type is used as a response element in the DescribeDBClusters.
" } }, "com.amazonaws.neptune#DBClusterAlreadyExistsFault": { @@ -3864,7 +3870,7 @@ "FeatureName": { "target": "com.amazonaws.neptune#String", "traits": { - "smithy.api#documentation": "The name of the feature associated with the Amazon Identity and Access Management (IAM) role.\n For the list of supported feature names, see DescribeDBEngineVersions.\n
" + "smithy.api#documentation": "The name of the feature associated with the Amazon Identity and Access Management (IAM) role.\n For the list of supported feature names, see DescribeDBEngineVersions.\n
" } } }, @@ -8466,7 +8472,7 @@ "EngineVersion": { "target": "com.amazonaws.neptune#String", "traits": { - "smithy.api#documentation": "The version number of the database engine to which you want to upgrade. Changing this\n parameter results in an outage. The change is applied during the next maintenance window\n unless the ApplyImmediately
parameter is set to true.
For a list of valid engine versions, see Engine Releases for Amazon\n Neptune, or call DescribeDBEngineVersions.
" + "smithy.api#documentation": "The version number of the database engine to which you want to upgrade. Changing this\n parameter results in an outage. The change is applied during the next maintenance window\n unless the ApplyImmediately
parameter is set to true.
For a list of valid engine versions, see Engine Releases for Amazon\n Neptune, or call DescribeDBEngineVersions.
" } }, "AllowMajorVersionUpgrade": { @@ -8494,7 +8500,10 @@ } }, "ServerlessV2ScalingConfiguration": { - "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration" + "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration", + "traits": { + "smithy.api#documentation": "Contains the scaling configuration of a Neptune Serverless DB cluster.
\nFor more information, see Using Amazon Neptune Serverless in the\n Amazon Neptune User Guide.
" + } } }, "traits": { @@ -8826,7 +8835,7 @@ } }, "TdeCredentialPassword": { - "target": "com.amazonaws.neptune#String", + "target": "com.amazonaws.neptune#SensitiveString", "traits": { "smithy.api#documentation": "The password for the given ARN from the key store in order to access the device.
" } @@ -9974,7 +9983,7 @@ "FeatureName": { "target": "com.amazonaws.neptune#String", "traits": { - "smithy.api#documentation": "The name of the feature for the DB cluster that the IAM role is to be disassociated from.\n For the list of supported feature names, see DescribeDBEngineVersions.
" + "smithy.api#documentation": "The name of the feature for the DB cluster that the IAM role is to be disassociated from.\n For the list of supported feature names, see DescribeDBEngineVersions.
" } } }, @@ -10394,7 +10403,10 @@ } }, "ServerlessV2ScalingConfiguration": { - "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration" + "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration", + "traits": { + "smithy.api#documentation": "Contains the scaling configuration of a Neptune Serverless DB cluster.
\nFor more information, see Using Amazon Neptune Serverless in the\n Amazon Neptune User Guide.
" + } } }, "traits": { @@ -10575,7 +10587,10 @@ } }, "ServerlessV2ScalingConfiguration": { - "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration" + "target": "com.amazonaws.neptune#ServerlessV2ScalingConfiguration", + "traits": { + "smithy.api#documentation": "Contains the scaling configuration of a Neptune Serverless DB cluster.
\nFor more information, see Using Amazon Neptune Serverless in the\n Amazon Neptune User Guide.
" + } } }, "traits": { @@ -10653,6 +10668,12 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.neptune#SensitiveString": { + "type": "string", + "traits": { + "smithy.api#sensitive": {} + } + }, "com.amazonaws.neptune#ServerlessV2ScalingConfiguration": { "type": "structure", "members": {