Skip to content

Commit 294fef4

Browse files
author
awstools
committed
feat(client-database-migration-service): Added new features for AWS DMS version 3.4.7 that includes new endpoint settings for S3, OpenSearch, Postgres, SQLServer and Oracle.
1 parent 6a6f4b9 commit 294fef4

File tree

3 files changed

+151
-14
lines changed

3 files changed

+151
-14
lines changed

clients/client-database-migration-service/src/models/models_0.ts

Lines changed: 95 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,12 @@ export interface ElasticsearchSettings {
708708
* OpenSearch cluster.</p>
709709
*/
710710
ErrorRetryDuration?: number;
711+
712+
/**
713+
* <p>Set this option to <code>true</code> for DMS to migrate documentation using the documentation type <code>_doc</code>. OpenSearch and
714+
* an Elasticsearch cluster only support the _doc documentation type in versions 7. x and later. The default value is <code>false</code>.</p>
715+
*/
716+
UseNewMappingType?: boolean;
711717
}
712718

713719
export namespace ElasticsearchSettings {
@@ -1309,6 +1315,12 @@ export interface MicrosoftSQLServerSettings {
13091315
* <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the SQL Server endpoint connection details.</p>
13101316
*/
13111317
SecretsManagerSecretId?: string;
1318+
1319+
/**
1320+
* <p>Use the <code>TrimSpaceInChar</code> source endpoint setting to trim data
1321+
* on CHAR and NCHAR data types during migration. The default value is <code>true</code>.</p>
1322+
*/
1323+
TrimSpaceInChar?: boolean;
13121324
}
13131325

13141326
export namespace MicrosoftSQLServerSettings {
@@ -2030,6 +2042,12 @@ export interface OracleSettings {
20302042
* that contains the Oracle ASM connection details for the Oracle endpoint.</p>
20312043
*/
20322044
SecretsManagerOracleAsmSecretId?: string;
2045+
2046+
/**
2047+
* <p>Use the <code>TrimSpaceInChar</code> source endpoint setting to trim data
2048+
* on CHAR and NCHAR data types during migration. The default value is <code>true</code>.</p>
2049+
*/
2050+
TrimSpaceInChar?: boolean;
20332051
}
20342052

20352053
export namespace OracleSettings {
@@ -2197,6 +2215,12 @@ export interface PostgreSQLSettings {
21972215
* <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the PostgreSQL endpoint connection details.</p>
21982216
*/
21992217
SecretsManagerSecretId?: string;
2218+
2219+
/**
2220+
* <p>Use the <code>TrimSpaceInChar</code> source endpoint setting to trim data
2221+
* on CHAR and NCHAR data types during migration. The default value is <code>true</code>.</p>
2222+
*/
2223+
TrimSpaceInChar?: boolean;
22002224
}
22012225

22022226
export namespace PostgreSQLSettings {
@@ -3144,6 +3168,22 @@ export interface S3Settings {
31443168
* </p>
31453169
*/
31463170
DatePartitionTimezone?: string;
3171+
3172+
/**
3173+
* <p>Use the S3 target endpoint setting <code>AddTrailingPaddingCharacter</code> to add
3174+
* padding on string data. The default value is <code>false</code>.</p>
3175+
*/
3176+
AddTrailingPaddingCharacter?: boolean;
3177+
3178+
/**
3179+
* <p>To specify a bucket owner and prevent sniping, you can use the
3180+
* <code>ExpectedBucketOwner</code> endpoint setting. </p>
3181+
* <p>Example: <code>--s3-settings='{"ExpectedBucketOwner": "<i>AWS_Account_ID</i>"}'</code>
3182+
* </p>
3183+
* <p>When you make a request to test a connection or perform a migration, S3 checks the account
3184+
* ID of the bucket owner against the specified parameter.</p>
3185+
*/
3186+
ExpectedBucketOwner?: string;
31473187
}
31483188

31493189
export namespace S3Settings {
@@ -5348,24 +5388,68 @@ export interface ReplicationTask {
53485388
* <ul>
53495389
* <li>
53505390
* <p>
5351-
* <code>"STOP_REASON_FULL_LOAD_COMPLETED"</code> – Full-load migration
5352-
* completed.</p>
5391+
* <code>"Stop Reason NORMAL"</code>
5392+
* </p>
53535393
* </li>
53545394
* <li>
53555395
* <p>
5356-
* <code>"STOP_REASON_CACHED_CHANGES_APPLIED"</code> – Change data capture (CDC)
5357-
* load completed.</p>
5396+
* <code>"Stop Reason RECOVERABLE_ERROR"</code>
5397+
* </p>
53585398
* </li>
53595399
* <li>
53605400
* <p>
5361-
* <code>"STOP_REASON_CACHED_CHANGES_NOT_APPLIED"</code> – In a
5362-
* full-load and CDC migration, the full load stopped as specified before starting the
5363-
* CDC migration.</p>
5401+
* <code>"Stop Reason FATAL_ERROR"</code>
5402+
* </p>
53645403
* </li>
53655404
* <li>
53665405
* <p>
5367-
* <code>"STOP_REASON_SERVER_TIME"</code> – The migration stopped at the
5368-
* specified server time.</p>
5406+
* <code>"Stop Reason FULL_LOAD_ONLY_FINISHED"</code>
5407+
* </p>
5408+
* </li>
5409+
* <li>
5410+
* <p>
5411+
* <code>"Stop Reason STOPPED_AFTER_FULL_LOAD"</code> – Full load completed, with cached changes not applied</p>
5412+
* </li>
5413+
* <li>
5414+
* <p>
5415+
* <code>"Stop Reason STOPPED_AFTER_CACHED_EVENTS"</code> – Full load completed, with cached changes applied</p>
5416+
* </li>
5417+
* <li>
5418+
* <p>
5419+
* <code>"Stop Reason EXPRESS_LICENSE_LIMITS_REACHED"</code>
5420+
* </p>
5421+
* </li>
5422+
* <li>
5423+
* <p>
5424+
* <code>"Stop Reason STOPPED_AFTER_DDL_APPLY"</code> – User-defined stop task after DDL applied</p>
5425+
* </li>
5426+
* <li>
5427+
* <p>
5428+
* <code>"Stop Reason STOPPED_DUE_TO_LOW_MEMORY"</code>
5429+
* </p>
5430+
* </li>
5431+
* <li>
5432+
* <p>
5433+
* <code>"Stop Reason STOPPED_DUE_TO_LOW_DISK"</code>
5434+
* </p>
5435+
* </li>
5436+
* <li>
5437+
* <p>
5438+
* <code>"Stop Reason STOPPED_AT_SERVER_TIME"</code> – User-defined server time for stopping task</p>
5439+
* </li>
5440+
* <li>
5441+
* <p>
5442+
* <code>"Stop Reason STOPPED_AT_COMMIT_TIME"</code> – User-defined commit time for stopping task</p>
5443+
* </li>
5444+
* <li>
5445+
* <p>
5446+
* <code>"Stop Reason RECONFIGURATION_RESTART"</code>
5447+
* </p>
5448+
* </li>
5449+
* <li>
5450+
* <p>
5451+
* <code>"Stop Reason RECYCLE_TASK"</code>
5452+
* </p>
53695453
* </li>
53705454
* </ul>
53715455
*/
@@ -7074,8 +7158,7 @@ export interface DescribeFleetAdvisorDatabasesRequest {
70747158
* <ul>
70757159
* <li>
70767160
* <p>
7077-
* <code>database-id</code> – The ID of the database, for example
7078-
* <code>d4610ac5-e323-4ad9-bc50-eaf7249dfe9d</code>.</p>
7161+
* <code>database-id</code> – The ID of the database.</p>
70797162
* </li>
70807163
* <li>
70817164
* <p>
@@ -7100,7 +7183,7 @@ export interface DescribeFleetAdvisorDatabasesRequest {
71007183
* </ul>
71017184
*
71027185
* <p>An example is: <code>describe-fleet-advisor-databases --filter
7103-
* Name="database-id",Values="d4610ac5-e323-4ad9-bc50-eaf7249dfe9d"</code>
7186+
* Name="database-id",Values="45"</code>
71047187
* </p>
71057188
*/
71067189
Filters?: Filter[];

clients/client-database-migration-service/src/protocols/Aws_json1_1.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5481,6 +5481,8 @@ const serializeAws_json1_1ElasticsearchSettings = (input: ElasticsearchSettings,
54815481
input.FullLoadErrorPercentage !== null && { FullLoadErrorPercentage: input.FullLoadErrorPercentage }),
54825482
...(input.ServiceAccessRoleArn !== undefined &&
54835483
input.ServiceAccessRoleArn !== null && { ServiceAccessRoleArn: input.ServiceAccessRoleArn }),
5484+
...(input.UseNewMappingType !== undefined &&
5485+
input.UseNewMappingType !== null && { UseNewMappingType: input.UseNewMappingType }),
54845486
};
54855487
};
54865488

@@ -5723,6 +5725,8 @@ const serializeAws_json1_1MicrosoftSQLServerSettings = (
57235725
...(input.SecretsManagerSecretId !== undefined &&
57245726
input.SecretsManagerSecretId !== null && { SecretsManagerSecretId: input.SecretsManagerSecretId }),
57255727
...(input.ServerName !== undefined && input.ServerName !== null && { ServerName: input.ServerName }),
5728+
...(input.TrimSpaceInChar !== undefined &&
5729+
input.TrimSpaceInChar !== null && { TrimSpaceInChar: input.TrimSpaceInChar }),
57265730
...(input.UseBcpFullLoad !== undefined &&
57275731
input.UseBcpFullLoad !== null && { UseBcpFullLoad: input.UseBcpFullLoad }),
57285732
...(input.UseThirdPartyBackupDevice !== undefined &&
@@ -6069,6 +6073,8 @@ const serializeAws_json1_1OracleSettings = (input: OracleSettings, context: __Se
60696073
}),
60706074
...(input.StandbyDelayTime !== undefined &&
60716075
input.StandbyDelayTime !== null && { StandbyDelayTime: input.StandbyDelayTime }),
6076+
...(input.TrimSpaceInChar !== undefined &&
6077+
input.TrimSpaceInChar !== null && { TrimSpaceInChar: input.TrimSpaceInChar }),
60726078
...(input.UseAlternateFolderForOnline !== undefined &&
60736079
input.UseAlternateFolderForOnline !== null && { UseAlternateFolderForOnline: input.UseAlternateFolderForOnline }),
60746080
...(input.UseBFile !== undefined && input.UseBFile !== null && { UseBFile: input.UseBFile }),
@@ -6109,6 +6115,8 @@ const serializeAws_json1_1PostgreSQLSettings = (input: PostgreSQLSettings, conte
61096115
input.SecretsManagerSecretId !== null && { SecretsManagerSecretId: input.SecretsManagerSecretId }),
61106116
...(input.ServerName !== undefined && input.ServerName !== null && { ServerName: input.ServerName }),
61116117
...(input.SlotName !== undefined && input.SlotName !== null && { SlotName: input.SlotName }),
6118+
...(input.TrimSpaceInChar !== undefined &&
6119+
input.TrimSpaceInChar !== null && { TrimSpaceInChar: input.TrimSpaceInChar }),
61126120
...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
61136121
};
61146122
};
@@ -6223,6 +6231,8 @@ const serializeAws_json1_1RemoveTagsFromResourceMessage = (
62236231
const serializeAws_json1_1S3Settings = (input: S3Settings, context: __SerdeContext): any => {
62246232
return {
62256233
...(input.AddColumnName !== undefined && input.AddColumnName !== null && { AddColumnName: input.AddColumnName }),
6234+
...(input.AddTrailingPaddingCharacter !== undefined &&
6235+
input.AddTrailingPaddingCharacter !== null && { AddTrailingPaddingCharacter: input.AddTrailingPaddingCharacter }),
62266236
...(input.BucketFolder !== undefined && input.BucketFolder !== null && { BucketFolder: input.BucketFolder }),
62276237
...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
62286238
...(input.CannedAclForObjects !== undefined &&
@@ -6260,6 +6270,8 @@ const serializeAws_json1_1S3Settings = (input: S3Settings, context: __SerdeConte
62606270
...(input.EncodingType !== undefined && input.EncodingType !== null && { EncodingType: input.EncodingType }),
62616271
...(input.EncryptionMode !== undefined &&
62626272
input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode }),
6273+
...(input.ExpectedBucketOwner !== undefined &&
6274+
input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
62636275
...(input.ExternalTableDefinition !== undefined &&
62646276
input.ExternalTableDefinition !== null && { ExternalTableDefinition: input.ExternalTableDefinition }),
62656277
...(input.IgnoreHeaderRows !== undefined &&
@@ -7289,6 +7301,7 @@ const deserializeAws_json1_1ElasticsearchSettings = (output: any, context: __Ser
72897301
ErrorRetryDuration: __expectInt32(output.ErrorRetryDuration),
72907302
FullLoadErrorPercentage: __expectInt32(output.FullLoadErrorPercentage),
72917303
ServiceAccessRoleArn: __expectString(output.ServiceAccessRoleArn),
7304+
UseNewMappingType: __expectBoolean(output.UseNewMappingType),
72927305
} as any;
72937306
};
72947307

@@ -7825,6 +7838,7 @@ const deserializeAws_json1_1MicrosoftSQLServerSettings = (
78257838
SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn),
78267839
SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId),
78277840
ServerName: __expectString(output.ServerName),
7841+
TrimSpaceInChar: __expectBoolean(output.TrimSpaceInChar),
78287842
UseBcpFullLoad: __expectBoolean(output.UseBcpFullLoad),
78297843
UseThirdPartyBackupDevice: __expectBoolean(output.UseThirdPartyBackupDevice),
78307844
Username: __expectString(output.Username),
@@ -7989,6 +8003,7 @@ const deserializeAws_json1_1OracleSettings = (output: any, context: __SerdeConte
79898003
ServerName: __expectString(output.ServerName),
79908004
SpatialDataOptionToGeoJsonFunctionName: __expectString(output.SpatialDataOptionToGeoJsonFunctionName),
79918005
StandbyDelayTime: __expectInt32(output.StandbyDelayTime),
8006+
TrimSpaceInChar: __expectBoolean(output.TrimSpaceInChar),
79928007
UseAlternateFolderForOnline: __expectBoolean(output.UseAlternateFolderForOnline),
79938008
UseBFile: __expectBoolean(output.UseBFile),
79948009
UseDirectPathFullLoad: __expectBoolean(output.UseDirectPathFullLoad),
@@ -8105,6 +8120,7 @@ const deserializeAws_json1_1PostgreSQLSettings = (output: any, context: __SerdeC
81058120
SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId),
81068121
ServerName: __expectString(output.ServerName),
81078122
SlotName: __expectString(output.SlotName),
8123+
TrimSpaceInChar: __expectBoolean(output.TrimSpaceInChar),
81088124
Username: __expectString(output.Username),
81098125
} as any;
81108126
};
@@ -8635,6 +8651,7 @@ const deserializeAws_json1_1S3ResourceNotFoundFault = (
86358651
const deserializeAws_json1_1S3Settings = (output: any, context: __SerdeContext): S3Settings => {
86368652
return {
86378653
AddColumnName: __expectBoolean(output.AddColumnName),
8654+
AddTrailingPaddingCharacter: __expectBoolean(output.AddTrailingPaddingCharacter),
86388655
BucketFolder: __expectString(output.BucketFolder),
86398656
BucketName: __expectString(output.BucketName),
86408657
CannedAclForObjects: __expectString(output.CannedAclForObjects),
@@ -8658,6 +8675,7 @@ const deserializeAws_json1_1S3Settings = (output: any, context: __SerdeContext):
86588675
EnableStatistics: __expectBoolean(output.EnableStatistics),
86598676
EncodingType: __expectString(output.EncodingType),
86608677
EncryptionMode: __expectString(output.EncryptionMode),
8678+
ExpectedBucketOwner: __expectString(output.ExpectedBucketOwner),
86618679
ExternalTableDefinition: __expectString(output.ExternalTableDefinition),
86628680
IgnoreHeaderRows: __expectInt32(output.IgnoreHeaderRows),
86638681
IncludeOpForFullLoad: __expectBoolean(output.IncludeOpForFullLoad),

0 commit comments

Comments
 (0)