Skip to content

Commit

Permalink
feat(client-database-migration-service): Enhanced PostgreSQL target e…
Browse files Browse the repository at this point in the history
…ndpoint settings for providing Babelfish support.
  • Loading branch information
awstools committed Jul 13, 2023
1 parent c2a2e69 commit 082547a
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __M
* MapBooleanAsBoolean: true || false,
* MapJsonbAsClob: true || false,
* MapLongVarcharAs: "wstring" || "clob" || "nclob",
* DatabaseMode: "default" || "babelfish",
* BabelfishDatabaseName: "STRING_VALUE",
* },
* MySQLSettings: { // MySQLSettings
* AfterConnectScript: "STRING_VALUE",
Expand Down Expand Up @@ -603,6 +605,8 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __M
* // MapBooleanAsBoolean: true || false,
* // MapJsonbAsClob: true || false,
* // MapLongVarcharAs: "wstring" || "clob" || "nclob",
* // DatabaseMode: "default" || "babelfish",
* // BabelfishDatabaseName: "STRING_VALUE",
* // },
* // MySQLSettings: { // MySQLSettings
* // AfterConnectScript: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ export interface DeleteEndpointCommandOutput extends DeleteEndpointResponse, __M
* // MapBooleanAsBoolean: true || false,
* // MapJsonbAsClob: true || false,
* // MapLongVarcharAs: "wstring" || "clob" || "nclob",
* // DatabaseMode: "default" || "babelfish",
* // BabelfishDatabaseName: "STRING_VALUE",
* // },
* // MySQLSettings: { // MySQLSettings
* // AfterConnectScript: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ export interface DescribeEndpointsCommandOutput extends DescribeEndpointsRespons
* // MapBooleanAsBoolean: true || false,
* // MapJsonbAsClob: true || false,
* // MapLongVarcharAs: "wstring" || "clob" || "nclob",
* // DatabaseMode: "default" || "babelfish",
* // BabelfishDatabaseName: "STRING_VALUE",
* // },
* // MySQLSettings: { // MySQLSettings
* // AfterConnectScript: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ export interface ModifyEndpointCommandOutput extends ModifyEndpointResponse, __M
* MapBooleanAsBoolean: true || false,
* MapJsonbAsClob: true || false,
* MapLongVarcharAs: "wstring" || "clob" || "nclob",
* DatabaseMode: "default" || "babelfish",
* BabelfishDatabaseName: "STRING_VALUE",
* },
* MySQLSettings: { // MySQLSettings
* AfterConnectScript: "STRING_VALUE",
Expand Down Expand Up @@ -596,6 +598,8 @@ export interface ModifyEndpointCommandOutput extends ModifyEndpointResponse, __M
* // MapBooleanAsBoolean: true || false,
* // MapJsonbAsClob: true || false,
* // MapLongVarcharAs: "wstring" || "clob" || "nclob",
* // DatabaseMode: "default" || "babelfish",
* // BabelfishDatabaseName: "STRING_VALUE",
* // },
* // MySQLSettings: { // MySQLSettings
* // AfterConnectScript: "STRING_VALUE",
Expand Down
26 changes: 26 additions & 0 deletions clients/client-database-migration-service/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2157,6 +2157,20 @@ export interface OracleSettings {
OpenTransactionWindow?: number;
}

/**
* @public
* @enum
*/
export const DatabaseMode = {
BABELFISH: "babelfish",
DEFAULT: "default",
} as const;

/**
* @public
*/
export type DatabaseMode = (typeof DatabaseMode)[keyof typeof DatabaseMode];

/**
* @public
* @enum
Expand Down Expand Up @@ -2364,6 +2378,18 @@ export interface PostgreSQLSettings {
* <p>When true, DMS migrates LONG values as VARCHAR.</p>
*/
MapLongVarcharAs?: LongVarcharMappingType | string;

/**
* <p>Specifies whether to use default or custom replication behavior for
* PostgreSQL-compatible endpoints. You can use this setting to specify replication
* behavior for endpoints that require additional configuration, such as Babelfish endpoints.</p>
*/
DatabaseMode?: DatabaseMode | string;

/**
* <p>The Babelfish for Aurora PostgreSQL database name for the endpoint.</p>
*/
BabelfishDatabaseName?: string;
}

/**
Expand Down
29 changes: 29 additions & 0 deletions codegen/sdk-codegen/aws-models/database-migration-service.json
Original file line number Diff line number Diff line change
Expand Up @@ -3300,6 +3300,23 @@
"target": "com.amazonaws.databasemigrationservice#DatabaseResponse"
}
},
"com.amazonaws.databasemigrationservice#DatabaseMode": {
"type": "enum",
"members": {
"DEFAULT": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "default"
}
},
"BABELFISH": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "babelfish"
}
}
}
},
"com.amazonaws.databasemigrationservice#DatabaseResponse": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -10204,6 +10221,18 @@
"traits": {
"smithy.api#documentation": "<p>When true, DMS migrates LONG values as VARCHAR.</p>"
}
},
"DatabaseMode": {
"target": "com.amazonaws.databasemigrationservice#DatabaseMode",
"traits": {
"smithy.api#documentation": "<p>Specifies whether to use default or custom replication behavior for \n PostgreSQL-compatible endpoints. You can use this setting to specify replication \n behavior for endpoints that require additional configuration, such as Babelfish endpoints.</p>"
}
},
"BabelfishDatabaseName": {
"target": "com.amazonaws.databasemigrationservice#String",
"traits": {
"smithy.api#documentation": "<p>The Babelfish for Aurora PostgreSQL database name for the endpoint.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 082547a

Please sign in to comment.