From cb158bea837bee1cd32636141bbf0c3d9bcc6c51 Mon Sep 17 00:00:00 2001 From: aws-sdk-dotnet-automation Date: Tue, 4 Feb 2025 21:28:28 +0000 Subject: [PATCH] Introduces TargetDataSettings with the TablePreparationMode option available for data migrations. --- .../ServiceModels/dms/dms-2016-01-01.api.json | 21 +++++ .../dms/dms-2016-01-01.docs.json | 32 +++++-- .../dms/dms-2016-01-01.normal.json | 46 +++++++-- .../Model/CreateDataMigrationRequest.cs | 19 ++++ .../Generated/Model/DataMigration.cs | 19 ++++ .../CreateDataMigrationRequestMarshaller.cs | 16 ++++ .../DataMigrationUnmarshaller.cs | 6 ++ .../ModifyDataMigrationRequestMarshaller.cs | 16 ++++ .../TargetDataSettingMarshaller.cs | 65 +++++++++++++ .../TargetDataSettingUnmarshaller.cs | 93 +++++++++++++++++++ .../Model/KerberosAuthenticationSettings.cs | 11 ++- .../Model/MicrosoftSQLServerSettings.cs | 2 +- .../Model/ModifyDataMigrationRequest.cs | 19 ++++ .../Generated/Model/OracleSettings.cs | 2 +- .../Generated/Model/TargetDataSetting.cs | 60 ++++++++++++ .../Generated/ServiceEnumerations.cs | 54 +++++++++++ 16 files changed, 462 insertions(+), 19 deletions(-) create mode 100644 sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingMarshaller.cs create mode 100644 sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingUnmarshaller.cs create mode 100644 sdk/src/Services/DatabaseMigrationService/Generated/Model/TargetDataSetting.cs diff --git a/generator/ServiceModels/dms/dms-2016-01-01.api.json b/generator/ServiceModels/dms/dms-2016-01-01.api.json index 8669c433383d..daa5387fcac1 100644 --- a/generator/ServiceModels/dms/dms-2016-01-01.api.json +++ b/generator/ServiceModels/dms/dms-2016-01-01.api.json @@ -1875,6 +1875,7 @@ "ServiceAccessRoleArn":{"shape":"String"}, "EnableCloudwatchLogs":{"shape":"BooleanOptional"}, "SourceDataSettings":{"shape":"SourceDataSettings"}, + "TargetDataSettings":{"shape":"TargetDataSettings"}, "NumberOfJobs":{"shape":"IntegerOptional"}, "Tags":{"shape":"TagList"}, "SelectionRules":{"shape":"SecretString"} @@ -2180,6 +2181,7 @@ "DataMigrationType":{"shape":"MigrationTypeValue"}, "DataMigrationSettings":{"shape":"DataMigrationSettings"}, "SourceDataSettings":{"shape":"SourceDataSettings"}, + "TargetDataSettings":{"shape":"TargetDataSettings"}, "DataMigrationStatistics":{"shape":"DataMigrationStatistics"}, "DataMigrationStatus":{"shape":"String"}, "PublicIpAddresses":{"shape":"PublicIpAddressList"}, @@ -3947,6 +3949,7 @@ "ServiceAccessRoleArn":{"shape":"String"}, "DataMigrationType":{"shape":"MigrationTypeValue"}, "SourceDataSettings":{"shape":"SourceDataSettings"}, + "TargetDataSettings":{"shape":"TargetDataSettings"}, "NumberOfJobs":{"shape":"IntegerOptional"}, "SelectionRules":{"shape":"SecretString"} } @@ -5557,6 +5560,14 @@ "type":"list", "member":{"shape":"TableToReload"} }, + "TablePreparationMode":{ + "type":"string", + "enum":[ + "do-nothing", + "truncate", + "drop-tables-on-target" + ] + }, "TableStatistics":{ "type":"structure", "members":{ @@ -5612,6 +5623,16 @@ "type":"list", "member":{"shape":"Tag"} }, + "TargetDataSetting":{ + "type":"structure", + "members":{ + "TablePreparationMode":{"shape":"TablePreparationMode"} + } + }, + "TargetDataSettings":{ + "type":"list", + "member":{"shape":"TargetDataSetting"} + }, "TargetDbType":{ "type":"string", "enum":[ diff --git a/generator/ServiceModels/dms/dms-2016-01-01.docs.json b/generator/ServiceModels/dms/dms-2016-01-01.docs.json index b26f54229284..d34e6f636a34 100644 --- a/generator/ServiceModels/dms/dms-2016-01-01.docs.json +++ b/generator/ServiceModels/dms/dms-2016-01-01.docs.json @@ -1962,7 +1962,7 @@ } }, "KerberosAuthenticationSettings": { - "base": "

Specifies using Kerberos authentication settings for use with DMS.

", + "base": "

Specifies the settings required for kerberos authentication when creating the replication instance.

", "refs": { "CreateReplicationInstanceMessage$KerberosAuthenticationSettings": "

Specifies the ID of the secret that stores the key cache file required for kerberos authentication, when creating a replication instance.

", "ModifyReplicationInstanceMessage$KerberosAuthenticationSettings": "

Specifies the ID of the secret that stores the key cache file required for kerberos authentication, when modifying a replication instance.

", @@ -2278,7 +2278,7 @@ "OracleAuthenticationMethod": { "base": null, "refs": { - "OracleSettings$AuthenticationMethod": "

Specifies using Kerberos authentication with Oracle.

" + "OracleSettings$AuthenticationMethod": "

Specifies the authentication method to be used with Oracle.

" } }, "OracleDataProviderSettings": { @@ -2902,7 +2902,7 @@ "SqlServerAuthenticationMethod": { "base": null, "refs": { - "MicrosoftSQLServerSettings$AuthenticationMethod": "

Specifies using Kerberos authentication with Microsoft SQL Server.

" + "MicrosoftSQLServerSettings$AuthenticationMethod": "

Specifies the authentication method to be used with Microsoft SQL Server.

" } }, "SslSecurityProtocolValue": { @@ -3439,9 +3439,9 @@ "KafkaSettings$SslClientKeyArn": "

The Amazon Resource Name (ARN) for the client private key used to securely connect to a Kafka target endpoint.

", "KafkaSettings$SslCaCertificateArn": "

The Amazon Resource Name (ARN) for the private certificate authority (CA) cert that DMS uses to securely connect to your Kafka target endpoint.

", "KafkaSettings$SaslUsername": "

The secure user name you created when you first set up your MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication.

", - "KerberosAuthenticationSettings$KeyCacheSecretId": "

Specifies the secret ID of the key cache for the replication instance.

", - "KerberosAuthenticationSettings$KeyCacheSecretIamArn": "

Specifies the Amazon Resource Name (ARN) of the IAM role that grants Amazon Web Services DMS access to the secret containing key cache file for the replication instance.

", - "KerberosAuthenticationSettings$Krb5FileContents": "

Specifies the ID of the secret that stores the key cache file required for kerberos authentication of the replication instance.

", + "KerberosAuthenticationSettings$KeyCacheSecretId": "

Specifies the ID of the secret that stores the key cache file required for kerberos authentication.

", + "KerberosAuthenticationSettings$KeyCacheSecretIamArn": "

Specifies the Amazon Resource Name (ARN) of the IAM role that grants Amazon Web Services DMS access to the secret containing key cache file for the kerberos authentication.

", + "KerberosAuthenticationSettings$Krb5FileContents": "

Specifies the contents of krb5 configuration file required for kerberos authentication.

", "KeyList$member": null, "KinesisSettings$StreamArn": "

The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.

", "KinesisSettings$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Kinesis data stream. The role must allow the iam:PassRole action.

", @@ -3934,6 +3934,12 @@ "ReloadTablesMessage$TablesToReload": "

The name and schema of the table to be reloaded.

" } }, + "TablePreparationMode": { + "base": null, + "refs": { + "TargetDataSetting$TablePreparationMode": "

This setting determines how DMS handles the target tables before starting a data migration, either by leaving them untouched, dropping and recreating them, or truncating the existing data in the target tables.

" + } + }, "TableStatistics": { "base": "

Provides a collection of table statistics in response to a request by the DescribeTableStatistics operation.

", "refs": { @@ -3978,6 +3984,20 @@ "StartReplicationTaskAssessmentRunMessage$Tags": "

One or more tags to be assigned to the premigration assessment run that you want to start.

" } }, + "TargetDataSetting": { + "base": "

Defines settings for a target data provider for a data migration.

", + "refs": { + "TargetDataSettings$member": null + } + }, + "TargetDataSettings": { + "base": null, + "refs": { + "CreateDataMigrationMessage$TargetDataSettings": "

Specifies information about the target data provider.

", + "DataMigration$TargetDataSettings": "

Specifies information about the data migration's target data provider.

", + "ModifyDataMigrationMessage$TargetDataSettings": "

The new information about the target data provider for the data migration.

" + } + }, "TargetDbType": { "base": null, "refs": { diff --git a/generator/ServiceModels/dms/dms-2016-01-01.normal.json b/generator/ServiceModels/dms/dms-2016-01-01.normal.json index cb44f5db0b2f..2cb31162c5b7 100644 --- a/generator/ServiceModels/dms/dms-2016-01-01.normal.json +++ b/generator/ServiceModels/dms/dms-2016-01-01.normal.json @@ -2202,6 +2202,10 @@ "shape":"SourceDataSettings", "documentation":"

Specifies information about the source data provider.

" }, + "TargetDataSettings":{ + "shape":"TargetDataSettings", + "documentation":"

Specifies information about the target data provider.

" + }, "NumberOfJobs":{ "shape":"IntegerOptional", "documentation":"

The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target.

" @@ -2933,6 +2937,10 @@ "shape":"SourceDataSettings", "documentation":"

Specifies information about the data migration's source data provider.

" }, + "TargetDataSettings":{ + "shape":"TargetDataSettings", + "documentation":"

Specifies information about the data migration's target data provider.

" + }, "DataMigrationStatistics":{ "shape":"DataMigrationStatistics", "documentation":"

Provides information about the data migration's run, including start and stop time, latency, and data migration progress.

" @@ -6135,18 +6143,18 @@ "members":{ "KeyCacheSecretId":{ "shape":"String", - "documentation":"

Specifies the secret ID of the key cache for the replication instance.

" + "documentation":"

Specifies the ID of the secret that stores the key cache file required for kerberos authentication.

" }, "KeyCacheSecretIamArn":{ "shape":"String", - "documentation":"

Specifies the Amazon Resource Name (ARN) of the IAM role that grants Amazon Web Services DMS access to the secret containing key cache file for the replication instance.

" + "documentation":"

Specifies the Amazon Resource Name (ARN) of the IAM role that grants Amazon Web Services DMS access to the secret containing key cache file for the kerberos authentication.

" }, "Krb5FileContents":{ "shape":"String", - "documentation":"

Specifies the ID of the secret that stores the key cache file required for kerberos authentication of the replication instance.

" + "documentation":"

Specifies the contents of krb5 configuration file required for kerberos authentication.

" } }, - "documentation":"

Specifies using Kerberos authentication settings for use with DMS.

" + "documentation":"

Specifies the settings required for kerberos authentication when creating the replication instance.

" }, "KeyList":{ "type":"list", @@ -6376,7 +6384,7 @@ }, "AuthenticationMethod":{ "shape":"SqlServerAuthenticationMethod", - "documentation":"

Specifies using Kerberos authentication with Microsoft SQL Server.

" + "documentation":"

Specifies the authentication method to be used with Microsoft SQL Server.

" } }, "documentation":"

Provides information that defines a Microsoft SQL Server endpoint.

" @@ -6519,6 +6527,10 @@ "shape":"SourceDataSettings", "documentation":"

The new information about the source data provider for the data migration.

" }, + "TargetDataSettings":{ + "shape":"TargetDataSettings", + "documentation":"

The new information about the target data provider for the data migration.

" + }, "NumberOfJobs":{ "shape":"IntegerOptional", "documentation":"

The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target.

" @@ -7567,7 +7579,7 @@ }, "AuthenticationMethod":{ "shape":"OracleAuthenticationMethod", - "documentation":"

Specifies using Kerberos authentication with Oracle.

" + "documentation":"

Specifies the authentication method to be used with Oracle.

" } }, "documentation":"

Provides information that defines an Oracle endpoint.

" @@ -10175,6 +10187,14 @@ "type":"list", "member":{"shape":"TableToReload"} }, + "TablePreparationMode":{ + "type":"string", + "enum":[ + "do-nothing", + "truncate", + "drop-tables-on-target" + ] + }, "TableStatistics":{ "type":"structure", "members":{ @@ -10317,6 +10337,20 @@ "type":"list", "member":{"shape":"Tag"} }, + "TargetDataSetting":{ + "type":"structure", + "members":{ + "TablePreparationMode":{ + "shape":"TablePreparationMode", + "documentation":"

This setting determines how DMS handles the target tables before starting a data migration, either by leaving them untouched, dropping and recreating them, or truncating the existing data in the target tables.

" + } + }, + "documentation":"

Defines settings for a target data provider for a data migration.

" + }, + "TargetDataSettings":{ + "type":"list", + "member":{"shape":"TargetDataSetting"} + }, "TargetDbType":{ "type":"string", "enum":[ diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/CreateDataMigrationRequest.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/CreateDataMigrationRequest.cs index 40d6b23d6889..9965398df395 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/CreateDataMigrationRequest.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/CreateDataMigrationRequest.cs @@ -44,6 +44,7 @@ public partial class CreateDataMigrationRequest : AmazonDatabaseMigrationService private string _serviceAccessRoleArn; private List _sourceDataSettings = AWSConfigs.InitializeCollections ? new List() : null; private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + private List _targetDataSettings = AWSConfigs.InitializeCollections ? new List() : null; /// /// Gets and sets the property DataMigrationName. @@ -230,5 +231,23 @@ internal bool IsSetTags() return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); } + /// + /// Gets and sets the property TargetDataSettings. + /// + /// Specifies information about the target data provider. + /// + /// + public List TargetDataSettings + { + get { return this._targetDataSettings; } + set { this._targetDataSettings = value; } + } + + // Check to see if TargetDataSettings property is set + internal bool IsSetTargetDataSettings() + { + return this._targetDataSettings != null && (this._targetDataSettings.Count > 0 || !AWSConfigs.InitializeCollections); + } + } } \ No newline at end of file diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/DataMigration.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/DataMigration.cs index 2ddec33f94e9..dda89fea0558 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/DataMigration.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/DataMigration.cs @@ -50,6 +50,7 @@ public partial class DataMigration private string _serviceAccessRoleArn; private List _sourceDataSettings = AWSConfigs.InitializeCollections ? new List() : null; private string _stopReason; + private List _targetDataSettings = AWSConfigs.InitializeCollections ? new List() : null; /// /// Gets and sets the property DataMigrationArn. @@ -342,5 +343,23 @@ internal bool IsSetStopReason() return this._stopReason != null; } + /// + /// Gets and sets the property TargetDataSettings. + /// + /// Specifies information about the data migration's target data provider. + /// + /// + public List TargetDataSettings + { + get { return this._targetDataSettings; } + set { this._targetDataSettings = value; } + } + + // Check to see if TargetDataSettings property is set + internal bool IsSetTargetDataSettings() + { + return this._targetDataSettings != null && (this._targetDataSettings.Count > 0 || !AWSConfigs.InitializeCollections); + } + } } \ No newline at end of file diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/CreateDataMigrationRequestMarshaller.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/CreateDataMigrationRequestMarshaller.cs index ecf022b94bd6..c4e1269a0778 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/CreateDataMigrationRequestMarshaller.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/CreateDataMigrationRequestMarshaller.cs @@ -143,6 +143,22 @@ public IRequest Marshall(CreateDataMigrationRequest publicRequest) context.Writer.WriteArrayEnd(); } + if(publicRequest.IsSetTargetDataSettings()) + { + context.Writer.WritePropertyName("TargetDataSettings"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTargetDataSettingsListValue in publicRequest.TargetDataSettings) + { + context.Writer.WriteObjectStart(); + + var marshaller = TargetDataSettingMarshaller.Instance; + marshaller.Marshall(publicRequestTargetDataSettingsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/DataMigrationUnmarshaller.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/DataMigrationUnmarshaller.cs index 9763ccd12da0..f4d4845545e9 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/DataMigrationUnmarshaller.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/DataMigrationUnmarshaller.cs @@ -162,6 +162,12 @@ public DataMigration Unmarshall(JsonUnmarshallerContext context) unmarshalledObject.StopReason = unmarshaller.Unmarshall(context); continue; } + if (context.TestExpression("TargetDataSettings", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(TargetDataSettingUnmarshaller.Instance); + unmarshalledObject.TargetDataSettings = unmarshaller.Unmarshall(context); + continue; + } } return unmarshalledObject; } diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/ModifyDataMigrationRequestMarshaller.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/ModifyDataMigrationRequestMarshaller.cs index dfa85d8d307c..0129e4934a3f 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/ModifyDataMigrationRequestMarshaller.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/ModifyDataMigrationRequestMarshaller.cs @@ -127,6 +127,22 @@ public IRequest Marshall(ModifyDataMigrationRequest publicRequest) context.Writer.WriteArrayEnd(); } + if(publicRequest.IsSetTargetDataSettings()) + { + context.Writer.WritePropertyName("TargetDataSettings"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTargetDataSettingsListValue in publicRequest.TargetDataSettings) + { + context.Writer.WriteObjectStart(); + + var marshaller = TargetDataSettingMarshaller.Instance; + marshaller.Marshall(publicRequestTargetDataSettingsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingMarshaller.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingMarshaller.cs new file mode 100644 index 000000000000..8af23ffef4e3 --- /dev/null +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the dms-2016-01-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.DatabaseMigrationService.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.DatabaseMigrationService.Model.Internal.MarshallTransformations +{ + /// + /// TargetDataSetting Marshaller + /// + public class TargetDataSettingMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(TargetDataSetting requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetTablePreparationMode()) + { + context.Writer.WritePropertyName("TablePreparationMode"); + context.Writer.Write(requestObject.TablePreparationMode); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static TargetDataSettingMarshaller Instance = new TargetDataSettingMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingUnmarshaller.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingUnmarshaller.cs new file mode 100644 index 000000000000..9b31b176ae42 --- /dev/null +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/TargetDataSettingUnmarshaller.cs @@ -0,0 +1,93 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the dms-2016-01-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.DatabaseMigrationService.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.DatabaseMigrationService.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for TargetDataSetting Object + /// + public class TargetDataSettingUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + TargetDataSetting IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public TargetDataSetting Unmarshall(JsonUnmarshallerContext context) + { + TargetDataSetting unmarshalledObject = new TargetDataSetting(); + if (context.IsEmptyResponse) + return null; + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("TablePreparationMode", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.TablePreparationMode = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static TargetDataSettingUnmarshaller _instance = new TargetDataSettingUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static TargetDataSettingUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/KerberosAuthenticationSettings.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/KerberosAuthenticationSettings.cs index 34ac08e2b065..bfe56baba9f5 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/KerberosAuthenticationSettings.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/KerberosAuthenticationSettings.cs @@ -30,7 +30,8 @@ namespace Amazon.DatabaseMigrationService.Model { /// - /// Specifies using Kerberos authentication settings for use with DMS. + /// Specifies the settings required for kerberos authentication when creating the replication + /// instance. /// public partial class KerberosAuthenticationSettings { @@ -42,7 +43,7 @@ public partial class KerberosAuthenticationSettings /// Gets and sets the property KeyCacheSecretIamArn. /// /// Specifies the Amazon Resource Name (ARN) of the IAM role that grants Amazon Web Services - /// DMS access to the secret containing key cache file for the replication instance. + /// DMS access to the secret containing key cache file for the kerberos authentication. /// /// public string KeyCacheSecretIamArn @@ -60,7 +61,8 @@ internal bool IsSetKeyCacheSecretIamArn() /// /// Gets and sets the property KeyCacheSecretId. /// - /// Specifies the secret ID of the key cache for the replication instance. + /// Specifies the ID of the secret that stores the key cache file required for kerberos + /// authentication. /// /// public string KeyCacheSecretId @@ -78,8 +80,7 @@ internal bool IsSetKeyCacheSecretId() /// /// Gets and sets the property Krb5FileContents. /// - /// Specifies the ID of the secret that stores the key cache file required for kerberos - /// authentication of the replication instance. + /// Specifies the contents of krb5 configuration file required for kerberos authentication. /// /// public string Krb5FileContents diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/MicrosoftSQLServerSettings.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/MicrosoftSQLServerSettings.cs index b4702ce19c67..1b99a43358c2 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/MicrosoftSQLServerSettings.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/MicrosoftSQLServerSettings.cs @@ -56,7 +56,7 @@ public partial class MicrosoftSQLServerSettings /// /// Gets and sets the property AuthenticationMethod. /// - /// Specifies using Kerberos authentication with Microsoft SQL Server. + /// Specifies the authentication method to be used with Microsoft SQL Server. /// /// public SqlServerAuthenticationMethod AuthenticationMethod diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/ModifyDataMigrationRequest.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/ModifyDataMigrationRequest.cs index 3e084e279323..0fb76269b347 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/ModifyDataMigrationRequest.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/ModifyDataMigrationRequest.cs @@ -43,6 +43,7 @@ public partial class ModifyDataMigrationRequest : AmazonDatabaseMigrationService private string _selectionRules; private string _serviceAccessRoleArn; private List _sourceDataSettings = AWSConfigs.InitializeCollections ? new List() : null; + private List _targetDataSettings = AWSConfigs.InitializeCollections ? new List() : null; /// /// Gets and sets the property DataMigrationIdentifier. @@ -192,5 +193,23 @@ internal bool IsSetSourceDataSettings() return this._sourceDataSettings != null && (this._sourceDataSettings.Count > 0 || !AWSConfigs.InitializeCollections); } + /// + /// Gets and sets the property TargetDataSettings. + /// + /// The new information about the target data provider for the data migration. + /// + /// + public List TargetDataSettings + { + get { return this._targetDataSettings; } + set { this._targetDataSettings = value; } + } + + // Check to see if TargetDataSettings property is set + internal bool IsSetTargetDataSettings() + { + return this._targetDataSettings != null && (this._targetDataSettings.Count > 0 || !AWSConfigs.InitializeCollections); + } + } } \ No newline at end of file diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/OracleSettings.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/OracleSettings.cs index 146fbda25b4d..e24c0640c9cb 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/Model/OracleSettings.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/OracleSettings.cs @@ -283,7 +283,7 @@ internal bool IsSetAsmUser() /// /// Gets and sets the property AuthenticationMethod. /// - /// Specifies using Kerberos authentication with Oracle. + /// Specifies the authentication method to be used with Oracle. /// /// public OracleAuthenticationMethod AuthenticationMethod diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/Model/TargetDataSetting.cs b/sdk/src/Services/DatabaseMigrationService/Generated/Model/TargetDataSetting.cs new file mode 100644 index 000000000000..52dca2443e5b --- /dev/null +++ b/sdk/src/Services/DatabaseMigrationService/Generated/Model/TargetDataSetting.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the dms-2016-01-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.DatabaseMigrationService.Model +{ + /// + /// Defines settings for a target data provider for a data migration. + /// + public partial class TargetDataSetting + { + private TablePreparationMode _tablePreparationMode; + + /// + /// Gets and sets the property TablePreparationMode. + /// + /// This setting determines how DMS handles the target tables before starting a data migration, + /// either by leaving them untouched, dropping and recreating them, or truncating the + /// existing data in the target tables. + /// + /// + public TablePreparationMode TablePreparationMode + { + get { return this._tablePreparationMode; } + set { this._tablePreparationMode = value; } + } + + // Check to see if TablePreparationMode property is set + internal bool IsSetTablePreparationMode() + { + return this._tablePreparationMode != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/DatabaseMigrationService/Generated/ServiceEnumerations.cs b/sdk/src/Services/DatabaseMigrationService/Generated/ServiceEnumerations.cs index a010742f36d5..177db27fa07b 100644 --- a/sdk/src/Services/DatabaseMigrationService/Generated/ServiceEnumerations.cs +++ b/sdk/src/Services/DatabaseMigrationService/Generated/ServiceEnumerations.cs @@ -1982,6 +1982,60 @@ public static implicit operator StartReplicationTaskTypeValue(string value) } + /// + /// Constants used for properties of type TablePreparationMode. + /// + public class TablePreparationMode : ConstantClass + { + + /// + /// Constant DoNothing for TablePreparationMode + /// + public static readonly TablePreparationMode DoNothing = new TablePreparationMode("do-nothing"); + /// + /// Constant DropTablesOnTarget for TablePreparationMode + /// + public static readonly TablePreparationMode DropTablesOnTarget = new TablePreparationMode("drop-tables-on-target"); + /// + /// Constant Truncate for TablePreparationMode + /// + public static readonly TablePreparationMode Truncate = new TablePreparationMode("truncate"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public TablePreparationMode(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static TablePreparationMode FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator TablePreparationMode(string value) + { + return FindValue(value); + } + } + + /// /// Constants used for properties of type TargetDbType. ///