Skip to content

Commit

Permalink
feat(client-database-migration-service): Added new Db2 LUW Target end…
Browse files Browse the repository at this point in the history
…point with related endpoint settings. New executeTimeout endpoint setting for mysql endpoint. New ReplicationDeprovisionTime field for serverless describe-replications.
  • Loading branch information
awstools committed Nov 13, 2023
1 parent de1396a commit 0f12860
Show file tree
Hide file tree
Showing 11 changed files with 125 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __M
* Username: "STRING_VALUE",
* SecretsManagerAccessRoleArn: "STRING_VALUE",
* SecretsManagerSecretId: "STRING_VALUE",
* ExecuteTimeout: Number("int"),
* },
* OracleSettings: { // OracleSettings
* AddSupplementalLogging: true || false,
Expand Down Expand Up @@ -361,6 +362,10 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __M
* Username: "STRING_VALUE",
* SecretsManagerAccessRoleArn: "STRING_VALUE",
* SecretsManagerSecretId: "STRING_VALUE",
* LoadTimeout: Number("int"),
* WriteBufferSize: Number("int"),
* MaxFileSize: Number("int"),
* KeepCsvFiles: true || false,
* },
* ResourceIdentifier: "STRING_VALUE",
* DocDbSettings: { // DocDbSettings
Expand Down Expand Up @@ -624,6 +629,7 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __M
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // ExecuteTimeout: Number("int"),
* // },
* // OracleSettings: { // OracleSettings
* // AddSupplementalLogging: true || false,
Expand Down Expand Up @@ -711,6 +717,10 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __M
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // LoadTimeout: Number("int"),
* // WriteBufferSize: Number("int"),
* // MaxFileSize: Number("int"),
* // KeepCsvFiles: true || false,
* // },
* // DocDbSettings: { // DocDbSettings
* // Username: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export interface DeleteEndpointCommandOutput extends DeleteEndpointResponse, __M
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // ExecuteTimeout: Number("int"),
* // },
* // OracleSettings: { // OracleSettings
* // AddSupplementalLogging: true || false,
Expand Down Expand Up @@ -360,6 +361,10 @@ export interface DeleteEndpointCommandOutput extends DeleteEndpointResponse, __M
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // LoadTimeout: Number("int"),
* // WriteBufferSize: Number("int"),
* // MaxFileSize: Number("int"),
* // KeepCsvFiles: true || false,
* // },
* // DocDbSettings: { // DocDbSettings
* // Username: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export interface DescribeEndpointsCommandOutput extends DescribeEndpointsRespons
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // ExecuteTimeout: Number("int"),
* // },
* // OracleSettings: { // OracleSettings
* // AddSupplementalLogging: true || false,
Expand Down Expand Up @@ -366,6 +367,10 @@ export interface DescribeEndpointsCommandOutput extends DescribeEndpointsRespons
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // LoadTimeout: Number("int"),
* // WriteBufferSize: Number("int"),
* // MaxFileSize: Number("int"),
* // KeepCsvFiles: true || false,
* // },
* // DocDbSettings: { // DocDbSettings
* // Username: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export interface DescribeReplicationsCommandOutput extends DescribeReplicationsR
* // ReplicationCreateTime: new Date("TIMESTAMP"),
* // ReplicationUpdateTime: new Date("TIMESTAMP"),
* // ReplicationLastStopTime: new Date("TIMESTAMP"),
* // ReplicationDeprovisionTime: new Date("TIMESTAMP"),
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export interface ModifyEndpointCommandOutput extends ModifyEndpointResponse, __M
* Username: "STRING_VALUE",
* SecretsManagerAccessRoleArn: "STRING_VALUE",
* SecretsManagerSecretId: "STRING_VALUE",
* ExecuteTimeout: Number("int"),
* },
* OracleSettings: { // OracleSettings
* AddSupplementalLogging: true || false,
Expand Down Expand Up @@ -354,6 +355,10 @@ export interface ModifyEndpointCommandOutput extends ModifyEndpointResponse, __M
* Username: "STRING_VALUE",
* SecretsManagerAccessRoleArn: "STRING_VALUE",
* SecretsManagerSecretId: "STRING_VALUE",
* LoadTimeout: Number("int"),
* WriteBufferSize: Number("int"),
* MaxFileSize: Number("int"),
* KeepCsvFiles: true || false,
* },
* DocDbSettings: { // DocDbSettings
* Username: "STRING_VALUE",
Expand Down Expand Up @@ -617,6 +622,7 @@ export interface ModifyEndpointCommandOutput extends ModifyEndpointResponse, __M
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // ExecuteTimeout: Number("int"),
* // },
* // OracleSettings: { // OracleSettings
* // AddSupplementalLogging: true || false,
Expand Down Expand Up @@ -704,6 +710,10 @@ export interface ModifyEndpointCommandOutput extends ModifyEndpointResponse, __M
* // Username: "STRING_VALUE",
* // SecretsManagerAccessRoleArn: "STRING_VALUE",
* // SecretsManagerSecretId: "STRING_VALUE",
* // LoadTimeout: Number("int"),
* // WriteBufferSize: Number("int"),
* // MaxFileSize: Number("int"),
* // KeepCsvFiles: true || false,
* // },
* // DocDbSettings: { // DocDbSettings
* // Username: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export interface StartReplicationCommandOutput extends StartReplicationResponse,
* // ReplicationCreateTime: new Date("TIMESTAMP"),
* // ReplicationUpdateTime: new Date("TIMESTAMP"),
* // ReplicationLastStopTime: new Date("TIMESTAMP"),
* // ReplicationDeprovisionTime: new Date("TIMESTAMP"),
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export interface StopReplicationCommandOutput extends StopReplicationResponse, _
* // ReplicationCreateTime: new Date("TIMESTAMP"),
* // ReplicationUpdateTime: new Date("TIMESTAMP"),
* // ReplicationLastStopTime: new Date("TIMESTAMP"),
* // ReplicationDeprovisionTime: new Date("TIMESTAMP"),
* // },
* // };
*
Expand Down
53 changes: 47 additions & 6 deletions clients/client-database-migration-service/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,8 @@ export interface CreateDataProviderMessage {
/**
* @public
* <p>The type of database engine for the data provider. Valid values include <code>"aurora"</code>,
* <code>"aurora_postgresql"</code>, <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>,
* and <code>"sqlserver"</code>. A value of <code>"aurora"</code> represents Amazon Aurora MySQL-Compatible Edition.</p>
* <code>"aurora-postgresql"</code>, <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>,
* <code>"sqlserver"</code>, <code>redshift</code>, <code>mariadb</code>, <code>mongodb</code>, and <code>docdb</code>. A value of <code>"aurora"</code> represents Amazon Aurora MySQL-Compatible Edition.</p>
*/
Engine: string | undefined;

Expand Down Expand Up @@ -1198,8 +1198,8 @@ export interface DataProvider {
/**
* @public
* <p>The type of database engine for the data provider. Valid values include <code>"aurora"</code>,
* <code>"aurora_postgresql"</code>, <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>,
* and <code>"sqlserver"</code>. A value of <code>"aurora"</code> represents Amazon Aurora MySQL-Compatible Edition.</p>
* <code>"aurora-postgresql"</code>, <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>,
* <code>"sqlserver"</code>, <code>redshift</code>, <code>mariadb</code>, <code>mongodb</code>, and <code>docdb</code>. A value of <code>"aurora"</code> represents Amazon Aurora MySQL-Compatible Edition.</p>
*/
Engine?: string;

Expand Down Expand Up @@ -1722,6 +1722,34 @@ export interface IBMDb2Settings {
* <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the Db2 LUW endpoint connection details.</p>
*/
SecretsManagerSecretId?: string;

/**
* @public
* <p>The amount of time (in milliseconds) before DMS times out operations performed by DMS on the Db2 target.
* The default value is 1200 (20 minutes).</p>
*/
LoadTimeout?: number;

/**
* @public
* <p>The size (in KB) of the in-memory file write buffer used when generating .csv files on the local disk
* on the DMS replication instance. The default value is 1024 (1 MB).</p>
*/
WriteBufferSize?: number;

/**
* @public
* <p>Specifies the maximum size (in KB) of .csv files used to transfer data to Db2 LUW.</p>
*/
MaxFileSize?: number;

/**
* @public
* <p>If true, DMS saves any .csv files to the Db2 LUW target that were used to replicate data. DMS uses these
* files for analysis and troubleshooting.</p>
* <p>The default value is false. </p>
*/
KeepCsvFiles?: boolean;
}

/**
Expand Down Expand Up @@ -2521,6 +2549,12 @@ export interface MySQLSettings {
* <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the MySQL endpoint connection details.</p>
*/
SecretsManagerSecretId?: string;

/**
* @public
* <p>Sets the client statement timeout (in seconds) for a MySQL source endpoint.</p>
*/
ExecuteTimeout?: number;
}

/**
Expand Down Expand Up @@ -4892,7 +4926,7 @@ export interface Endpoint {
* <p>The database engine name. Valid values, depending on the EndpointType, include
* <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>,
* <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>,
* <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"db2-zos"</code>,
* <code>"redshift"</code>, <code>"redshift-serverless"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"db2-zos"</code>,
* <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>,
* <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>,
* <code>"elasticsearch"</code>, <code>"documentdb"</code>, <code>"sqlserver"</code>,
Expand Down Expand Up @@ -6929,7 +6963,7 @@ export interface CreateReplicationSubnetGroupMessage {

/**
* @public
* <p>One or more subnet IDs to be assigned to the subnet group.</p>
* <p>Two or more subnet IDs to be assigned to the subnet group.</p>
*/
SubnetIds: string[] | undefined;

Expand Down Expand Up @@ -8263,6 +8297,7 @@ export interface DescribeDataProvidersMessage {
/**
* @public
* <p>Filters applied to the data providers described in the form of key-value pairs.</p>
* <p>Valid filter names: data-provider-identifier</p>
*/
Filters?: Filter[];

Expand Down Expand Up @@ -11479,6 +11514,12 @@ export interface Replication {
* <p>The timestamp when replication was last stopped.</p>
*/
ReplicationLastStopTime?: Date;

/**
* @public
* <p>The timestamp when DMS will deprovision the replication.</p>
*/
ReplicationDeprovisionTime?: Date;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export interface ModifyDataProviderMessage {
/**
* @public
* <p>The type of database engine for the data provider. Valid values include <code>"aurora"</code>,
* <code>"aurora_postgresql"</code>, <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>,
* and <code>"sqlserver"</code>. A value of <code>"aurora"</code> represents Amazon Aurora MySQL-Compatible Edition.</p>
* <code>"aurora-postgresql"</code>, <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>,
* <code>"sqlserver"</code>, <code>redshift</code>, <code>mariadb</code>, <code>mongodb</code>, and <code>docdb</code>. A value of <code>"aurora"</code> represents Amazon Aurora MySQL-Compatible Edition.</p>
*/
Engine?: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9354,6 +9354,7 @@ const de_Replication = (output: any, context: __SerdeContext): Replication => {
ReplicationConfigArn: __expectString,
ReplicationConfigIdentifier: __expectString,
ReplicationCreateTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
ReplicationDeprovisionTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
ReplicationLastStopTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
ReplicationStats: (_: any) => de_ReplicationStats(_, context),
ReplicationType: __expectString,
Expand Down
Loading

0 comments on commit 0f12860

Please sign in to comment.