Skip to content

Commit

Permalink
feat(client-database-migration-service): Added new features for AWS D…
Browse files Browse the repository at this point in the history
…MS version 3.4.7 that includes new endpoint settings for S3, OpenSearch, Postgres, SQLServer and Oracle.
  • Loading branch information
awstools committed Jul 1, 2022
1 parent 6a6f4b9 commit 294fef4
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 14 deletions.
107 changes: 95 additions & 12 deletions clients/client-database-migration-service/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,12 @@ export interface ElasticsearchSettings {
* OpenSearch cluster.</p>
*/
ErrorRetryDuration?: number;

/**
* <p>Set this option to <code>true</code> for DMS to migrate documentation using the documentation type <code>_doc</code>. OpenSearch and
* an Elasticsearch cluster only support the _doc documentation type in versions 7. x and later. The default value is <code>false</code>.</p>
*/
UseNewMappingType?: boolean;
}

export namespace ElasticsearchSettings {
Expand Down Expand Up @@ -1309,6 +1315,12 @@ export interface MicrosoftSQLServerSettings {
* <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the SQL Server endpoint connection details.</p>
*/
SecretsManagerSecretId?: string;

/**
* <p>Use the <code>TrimSpaceInChar</code> source endpoint setting to trim data
* on CHAR and NCHAR data types during migration. The default value is <code>true</code>.</p>
*/
TrimSpaceInChar?: boolean;
}

export namespace MicrosoftSQLServerSettings {
Expand Down Expand Up @@ -2030,6 +2042,12 @@ export interface OracleSettings {
* that contains the Oracle ASM connection details for the Oracle endpoint.</p>
*/
SecretsManagerOracleAsmSecretId?: string;

/**
* <p>Use the <code>TrimSpaceInChar</code> source endpoint setting to trim data
* on CHAR and NCHAR data types during migration. The default value is <code>true</code>.</p>
*/
TrimSpaceInChar?: boolean;
}

export namespace OracleSettings {
Expand Down Expand Up @@ -2197,6 +2215,12 @@ export interface PostgreSQLSettings {
* <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the PostgreSQL endpoint connection details.</p>
*/
SecretsManagerSecretId?: string;

/**
* <p>Use the <code>TrimSpaceInChar</code> source endpoint setting to trim data
* on CHAR and NCHAR data types during migration. The default value is <code>true</code>.</p>
*/
TrimSpaceInChar?: boolean;
}

export namespace PostgreSQLSettings {
Expand Down Expand Up @@ -3144,6 +3168,22 @@ export interface S3Settings {
* </p>
*/
DatePartitionTimezone?: string;

/**
* <p>Use the S3 target endpoint setting <code>AddTrailingPaddingCharacter</code> to add
* padding on string data. The default value is <code>false</code>.</p>
*/
AddTrailingPaddingCharacter?: boolean;

/**
* <p>To specify a bucket owner and prevent sniping, you can use the
* <code>ExpectedBucketOwner</code> endpoint setting. </p>
* <p>Example: <code>--s3-settings='{"ExpectedBucketOwner": "<i>AWS_Account_ID</i>"}'</code>
* </p>
* <p>When you make a request to test a connection or perform a migration, S3 checks the account
* ID of the bucket owner against the specified parameter.</p>
*/
ExpectedBucketOwner?: string;
}

export namespace S3Settings {
Expand Down Expand Up @@ -5348,24 +5388,68 @@ export interface ReplicationTask {
* <ul>
* <li>
* <p>
* <code>"STOP_REASON_FULL_LOAD_COMPLETED"</code> – Full-load migration
* completed.</p>
* <code>"Stop Reason NORMAL"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"STOP_REASON_CACHED_CHANGES_APPLIED"</code> – Change data capture (CDC)
* load completed.</p>
* <code>"Stop Reason RECOVERABLE_ERROR"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"STOP_REASON_CACHED_CHANGES_NOT_APPLIED"</code> – In a
* full-load and CDC migration, the full load stopped as specified before starting the
* CDC migration.</p>
* <code>"Stop Reason FATAL_ERROR"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"STOP_REASON_SERVER_TIME"</code> – The migration stopped at the
* specified server time.</p>
* <code>"Stop Reason FULL_LOAD_ONLY_FINISHED"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"Stop Reason STOPPED_AFTER_FULL_LOAD"</code> – Full load completed, with cached changes not applied</p>
* </li>
* <li>
* <p>
* <code>"Stop Reason STOPPED_AFTER_CACHED_EVENTS"</code> – Full load completed, with cached changes applied</p>
* </li>
* <li>
* <p>
* <code>"Stop Reason EXPRESS_LICENSE_LIMITS_REACHED"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"Stop Reason STOPPED_AFTER_DDL_APPLY"</code> – User-defined stop task after DDL applied</p>
* </li>
* <li>
* <p>
* <code>"Stop Reason STOPPED_DUE_TO_LOW_MEMORY"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"Stop Reason STOPPED_DUE_TO_LOW_DISK"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"Stop Reason STOPPED_AT_SERVER_TIME"</code> – User-defined server time for stopping task</p>
* </li>
* <li>
* <p>
* <code>"Stop Reason STOPPED_AT_COMMIT_TIME"</code> – User-defined commit time for stopping task</p>
* </li>
* <li>
* <p>
* <code>"Stop Reason RECONFIGURATION_RESTART"</code>
* </p>
* </li>
* <li>
* <p>
* <code>"Stop Reason RECYCLE_TASK"</code>
* </p>
* </li>
* </ul>
*/
Expand Down Expand Up @@ -7074,8 +7158,7 @@ export interface DescribeFleetAdvisorDatabasesRequest {
* <ul>
* <li>
* <p>
* <code>database-id</code> – The ID of the database, for example
* <code>d4610ac5-e323-4ad9-bc50-eaf7249dfe9d</code>.</p>
* <code>database-id</code> – The ID of the database.</p>
* </li>
* <li>
* <p>
Expand All @@ -7100,7 +7183,7 @@ export interface DescribeFleetAdvisorDatabasesRequest {
* </ul>
*
* <p>An example is: <code>describe-fleet-advisor-databases --filter
* Name="database-id",Values="d4610ac5-e323-4ad9-bc50-eaf7249dfe9d"</code>
* Name="database-id",Values="45"</code>
* </p>
*/
Filters?: Filter[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5481,6 +5481,8 @@ const serializeAws_json1_1ElasticsearchSettings = (input: ElasticsearchSettings,
input.FullLoadErrorPercentage !== null && { FullLoadErrorPercentage: input.FullLoadErrorPercentage }),
...(input.ServiceAccessRoleArn !== undefined &&
input.ServiceAccessRoleArn !== null && { ServiceAccessRoleArn: input.ServiceAccessRoleArn }),
...(input.UseNewMappingType !== undefined &&
input.UseNewMappingType !== null && { UseNewMappingType: input.UseNewMappingType }),
};
};

Expand Down Expand Up @@ -5723,6 +5725,8 @@ const serializeAws_json1_1MicrosoftSQLServerSettings = (
...(input.SecretsManagerSecretId !== undefined &&
input.SecretsManagerSecretId !== null && { SecretsManagerSecretId: input.SecretsManagerSecretId }),
...(input.ServerName !== undefined && input.ServerName !== null && { ServerName: input.ServerName }),
...(input.TrimSpaceInChar !== undefined &&
input.TrimSpaceInChar !== null && { TrimSpaceInChar: input.TrimSpaceInChar }),
...(input.UseBcpFullLoad !== undefined &&
input.UseBcpFullLoad !== null && { UseBcpFullLoad: input.UseBcpFullLoad }),
...(input.UseThirdPartyBackupDevice !== undefined &&
Expand Down Expand Up @@ -6069,6 +6073,8 @@ const serializeAws_json1_1OracleSettings = (input: OracleSettings, context: __Se
}),
...(input.StandbyDelayTime !== undefined &&
input.StandbyDelayTime !== null && { StandbyDelayTime: input.StandbyDelayTime }),
...(input.TrimSpaceInChar !== undefined &&
input.TrimSpaceInChar !== null && { TrimSpaceInChar: input.TrimSpaceInChar }),
...(input.UseAlternateFolderForOnline !== undefined &&
input.UseAlternateFolderForOnline !== null && { UseAlternateFolderForOnline: input.UseAlternateFolderForOnline }),
...(input.UseBFile !== undefined && input.UseBFile !== null && { UseBFile: input.UseBFile }),
Expand Down Expand Up @@ -6109,6 +6115,8 @@ const serializeAws_json1_1PostgreSQLSettings = (input: PostgreSQLSettings, conte
input.SecretsManagerSecretId !== null && { SecretsManagerSecretId: input.SecretsManagerSecretId }),
...(input.ServerName !== undefined && input.ServerName !== null && { ServerName: input.ServerName }),
...(input.SlotName !== undefined && input.SlotName !== null && { SlotName: input.SlotName }),
...(input.TrimSpaceInChar !== undefined &&
input.TrimSpaceInChar !== null && { TrimSpaceInChar: input.TrimSpaceInChar }),
...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
};
};
Expand Down Expand Up @@ -6223,6 +6231,8 @@ const serializeAws_json1_1RemoveTagsFromResourceMessage = (
const serializeAws_json1_1S3Settings = (input: S3Settings, context: __SerdeContext): any => {
return {
...(input.AddColumnName !== undefined && input.AddColumnName !== null && { AddColumnName: input.AddColumnName }),
...(input.AddTrailingPaddingCharacter !== undefined &&
input.AddTrailingPaddingCharacter !== null && { AddTrailingPaddingCharacter: input.AddTrailingPaddingCharacter }),
...(input.BucketFolder !== undefined && input.BucketFolder !== null && { BucketFolder: input.BucketFolder }),
...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
...(input.CannedAclForObjects !== undefined &&
Expand Down Expand Up @@ -6260,6 +6270,8 @@ const serializeAws_json1_1S3Settings = (input: S3Settings, context: __SerdeConte
...(input.EncodingType !== undefined && input.EncodingType !== null && { EncodingType: input.EncodingType }),
...(input.EncryptionMode !== undefined &&
input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode }),
...(input.ExpectedBucketOwner !== undefined &&
input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
...(input.ExternalTableDefinition !== undefined &&
input.ExternalTableDefinition !== null && { ExternalTableDefinition: input.ExternalTableDefinition }),
...(input.IgnoreHeaderRows !== undefined &&
Expand Down Expand Up @@ -7289,6 +7301,7 @@ const deserializeAws_json1_1ElasticsearchSettings = (output: any, context: __Ser
ErrorRetryDuration: __expectInt32(output.ErrorRetryDuration),
FullLoadErrorPercentage: __expectInt32(output.FullLoadErrorPercentage),
ServiceAccessRoleArn: __expectString(output.ServiceAccessRoleArn),
UseNewMappingType: __expectBoolean(output.UseNewMappingType),
} as any;
};

Expand Down Expand Up @@ -7825,6 +7838,7 @@ const deserializeAws_json1_1MicrosoftSQLServerSettings = (
SecretsManagerAccessRoleArn: __expectString(output.SecretsManagerAccessRoleArn),
SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId),
ServerName: __expectString(output.ServerName),
TrimSpaceInChar: __expectBoolean(output.TrimSpaceInChar),
UseBcpFullLoad: __expectBoolean(output.UseBcpFullLoad),
UseThirdPartyBackupDevice: __expectBoolean(output.UseThirdPartyBackupDevice),
Username: __expectString(output.Username),
Expand Down Expand Up @@ -7989,6 +8003,7 @@ const deserializeAws_json1_1OracleSettings = (output: any, context: __SerdeConte
ServerName: __expectString(output.ServerName),
SpatialDataOptionToGeoJsonFunctionName: __expectString(output.SpatialDataOptionToGeoJsonFunctionName),
StandbyDelayTime: __expectInt32(output.StandbyDelayTime),
TrimSpaceInChar: __expectBoolean(output.TrimSpaceInChar),
UseAlternateFolderForOnline: __expectBoolean(output.UseAlternateFolderForOnline),
UseBFile: __expectBoolean(output.UseBFile),
UseDirectPathFullLoad: __expectBoolean(output.UseDirectPathFullLoad),
Expand Down Expand Up @@ -8105,6 +8120,7 @@ const deserializeAws_json1_1PostgreSQLSettings = (output: any, context: __SerdeC
SecretsManagerSecretId: __expectString(output.SecretsManagerSecretId),
ServerName: __expectString(output.ServerName),
SlotName: __expectString(output.SlotName),
TrimSpaceInChar: __expectBoolean(output.TrimSpaceInChar),
Username: __expectString(output.Username),
} as any;
};
Expand Down Expand Up @@ -8635,6 +8651,7 @@ const deserializeAws_json1_1S3ResourceNotFoundFault = (
const deserializeAws_json1_1S3Settings = (output: any, context: __SerdeContext): S3Settings => {
return {
AddColumnName: __expectBoolean(output.AddColumnName),
AddTrailingPaddingCharacter: __expectBoolean(output.AddTrailingPaddingCharacter),
BucketFolder: __expectString(output.BucketFolder),
BucketName: __expectString(output.BucketName),
CannedAclForObjects: __expectString(output.CannedAclForObjects),
Expand All @@ -8658,6 +8675,7 @@ const deserializeAws_json1_1S3Settings = (output: any, context: __SerdeContext):
EnableStatistics: __expectBoolean(output.EnableStatistics),
EncodingType: __expectString(output.EncodingType),
EncryptionMode: __expectString(output.EncryptionMode),
ExpectedBucketOwner: __expectString(output.ExpectedBucketOwner),
ExternalTableDefinition: __expectString(output.ExternalTableDefinition),
IgnoreHeaderRows: __expectInt32(output.IgnoreHeaderRows),
IncludeOpForFullLoad: __expectBoolean(output.IncludeOpForFullLoad),
Expand Down
Loading

0 comments on commit 294fef4

Please sign in to comment.