Class MicrosoftSQLServerSettings
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<MicrosoftSQLServerSettings.Builder,
MicrosoftSQLServerSettings>
Provides information that defines a Microsoft SQL Server endpoint.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the authentication method to be used with Microsoft SQL Server.final String
Specifies the authentication method to be used with Microsoft SQL Server.final Integer
The maximum size of the packets (in bytes) used to transfer data using BCP.builder()
final String
Specifies a file group for the DMS internal tables.final String
Database name for the endpoint.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Boolean
Forces LOB lookup on inline LOB.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
password()
Endpoint connection password.final Integer
port()
Endpoint TCP port.final Boolean
Cleans and recreates table metadata information on the replication instance when a mismatch occurs.final Boolean
When this attribute is set toY
, DMS only reads changes from transaction log backups and doesn't read from the active transaction log file during ongoing replication.final SafeguardPolicy
Use this attribute to minimize the need to access the backup log and enable DMS to prevent truncation using one of the following two methods.final String
Use this attribute to minimize the need to access the backup log and enable DMS to prevent truncation using one of the following two methods.final String
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the required permissions to access the value inSecretsManagerSecret
.final String
The full ARN, partial ARN, or friendly name of theSecretsManagerSecret
that contains the SQL Server endpoint connection details.static Class
<? extends MicrosoftSQLServerSettings.Builder> final String
Fully qualified domain name of the endpoint.final TlogAccessMode
Indicates the mode used to fetch CDC data.final String
Indicates the mode used to fetch CDC data.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Boolean
Use theTrimSpaceInChar
source endpoint setting to right-trim data on CHAR and NCHAR data types during migration.final Boolean
Use this to attribute to transfer data for full-load operations using BCP.final String
username()
Endpoint connection user name.final Boolean
When this attribute is set toY
, DMS processes third-party transaction log backups if they are created in native format.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
port
-
bcpPacketSize
The maximum size of the packets (in bytes) used to transfer data using BCP.
- Returns:
- The maximum size of the packets (in bytes) used to transfer data using BCP.
-
databaseName
Database name for the endpoint.
- Returns:
- Database name for the endpoint.
-
controlTablesFileGroup
Specifies a file group for the DMS internal tables. When the replication task starts, all the internal DMS control tables (awsdms_ apply_exception, awsdms_apply, awsdms_changes) are created for the specified file group.
- Returns:
- Specifies a file group for the DMS internal tables. When the replication task starts, all the internal DMS control tables (awsdms_ apply_exception, awsdms_apply, awsdms_changes) are created for the specified file group.
-
password
-
querySingleAlwaysOnNode
Cleans and recreates table metadata information on the replication instance when a mismatch occurs. An example is a situation where running an alter DDL statement on a table might result in different information about the table cached in the replication instance.
- Returns:
- Cleans and recreates table metadata information on the replication instance when a mismatch occurs. An example is a situation where running an alter DDL statement on a table might result in different information about the table cached in the replication instance.
-
readBackupOnly
When this attribute is set to
Y
, DMS only reads changes from transaction log backups and doesn't read from the active transaction log file during ongoing replication. Setting this parameter toY
enables you to control active transaction log file growth during full load and ongoing replication tasks. However, it can add some source latency to ongoing replication.- Returns:
- When this attribute is set to
Y
, DMS only reads changes from transaction log backups and doesn't read from the active transaction log file during ongoing replication. Setting this parameter toY
enables you to control active transaction log file growth during full load and ongoing replication tasks. However, it can add some source latency to ongoing replication.
-
safeguardPolicy
Use this attribute to minimize the need to access the backup log and enable DMS to prevent truncation using one of the following two methods.
Start transactions in the database: This is the default method. When this method is used, DMS prevents TLOG truncation by mimicking a transaction in the database. As long as such a transaction is open, changes that appear after the transaction started aren't truncated. If you need Microsoft Replication to be enabled in your database, then you must choose this method.
Exclusively use sp_repldone within a single task: When this method is used, DMS reads the changes and then uses sp_repldone to mark the TLOG transactions as ready for truncation. Although this method doesn't involve any transactional activities, it can only be used when Microsoft Replication isn't running. Also, when using this method, only one DMS task can access the database at any given time. Therefore, if you need to run parallel DMS tasks against the same database, use the default method.
If the service returns an enum value that is not available in the current SDK version,
safeguardPolicy
will returnSafeguardPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsafeguardPolicyAsString()
.- Returns:
- Use this attribute to minimize the need to access the backup log and enable DMS to prevent truncation
using one of the following two methods.
Start transactions in the database: This is the default method. When this method is used, DMS prevents TLOG truncation by mimicking a transaction in the database. As long as such a transaction is open, changes that appear after the transaction started aren't truncated. If you need Microsoft Replication to be enabled in your database, then you must choose this method.
Exclusively use sp_repldone within a single task: When this method is used, DMS reads the changes and then uses sp_repldone to mark the TLOG transactions as ready for truncation. Although this method doesn't involve any transactional activities, it can only be used when Microsoft Replication isn't running. Also, when using this method, only one DMS task can access the database at any given time. Therefore, if you need to run parallel DMS tasks against the same database, use the default method.
- See Also:
-
safeguardPolicyAsString
Use this attribute to minimize the need to access the backup log and enable DMS to prevent truncation using one of the following two methods.
Start transactions in the database: This is the default method. When this method is used, DMS prevents TLOG truncation by mimicking a transaction in the database. As long as such a transaction is open, changes that appear after the transaction started aren't truncated. If you need Microsoft Replication to be enabled in your database, then you must choose this method.
Exclusively use sp_repldone within a single task: When this method is used, DMS reads the changes and then uses sp_repldone to mark the TLOG transactions as ready for truncation. Although this method doesn't involve any transactional activities, it can only be used when Microsoft Replication isn't running. Also, when using this method, only one DMS task can access the database at any given time. Therefore, if you need to run parallel DMS tasks against the same database, use the default method.
If the service returns an enum value that is not available in the current SDK version,
safeguardPolicy
will returnSafeguardPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsafeguardPolicyAsString()
.- Returns:
- Use this attribute to minimize the need to access the backup log and enable DMS to prevent truncation
using one of the following two methods.
Start transactions in the database: This is the default method. When this method is used, DMS prevents TLOG truncation by mimicking a transaction in the database. As long as such a transaction is open, changes that appear after the transaction started aren't truncated. If you need Microsoft Replication to be enabled in your database, then you must choose this method.
Exclusively use sp_repldone within a single task: When this method is used, DMS reads the changes and then uses sp_repldone to mark the TLOG transactions as ready for truncation. Although this method doesn't involve any transactional activities, it can only be used when Microsoft Replication isn't running. Also, when using this method, only one DMS task can access the database at any given time. Therefore, if you need to run parallel DMS tasks against the same database, use the default method.
- See Also:
-
serverName
Fully qualified domain name of the endpoint. For an Amazon RDS SQL Server instance, this is the output of DescribeDBInstances, in the
Endpoint.Address
field.- Returns:
- Fully qualified domain name of the endpoint. For an Amazon RDS SQL Server instance, this is the output of
DescribeDBInstances, in the
Endpoint.Address
field.
-
username
Endpoint connection user name.
- Returns:
- Endpoint connection user name.
-
useBcpFullLoad
Use this to attribute to transfer data for full-load operations using BCP. When the target table contains an identity column that does not exist in the source table, you must disable the use BCP for loading table option.
- Returns:
- Use this to attribute to transfer data for full-load operations using BCP. When the target table contains an identity column that does not exist in the source table, you must disable the use BCP for loading table option.
-
useThirdPartyBackupDevice
When this attribute is set to
Y
, DMS processes third-party transaction log backups if they are created in native format.- Returns:
- When this attribute is set to
Y
, DMS processes third-party transaction log backups if they are created in native format.
-
secretsManagerAccessRoleArn
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the required permissions to access the value in
SecretsManagerSecret
. The role must allow theiam:PassRole
action.SecretsManagerSecret
has the value of the Amazon Web Services Secrets Manager secret that allows access to the SQL Server endpoint.You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId
. Or you can specify clear-text values forUserName
,Password
,ServerName
, andPort
. You can't specify both. For more information on creating thisSecretsManagerSecret
and theSecretsManagerAccessRoleArn
andSecretsManagerSecretId
required to access it, see Using secrets to access Database Migration Service resources in the Database Migration Service User Guide.- Returns:
- The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants
the required permissions to access the value in
SecretsManagerSecret
. The role must allow theiam:PassRole
action.SecretsManagerSecret
has the value of the Amazon Web Services Secrets Manager secret that allows access to the SQL Server endpoint.You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId
. Or you can specify clear-text values forUserName
,Password
,ServerName
, andPort
. You can't specify both. For more information on creating thisSecretsManagerSecret
and theSecretsManagerAccessRoleArn
andSecretsManagerSecretId
required to access it, see Using secrets to access Database Migration Service resources in the Database Migration Service User Guide.
-
secretsManagerSecretId
The full ARN, partial ARN, or friendly name of the
SecretsManagerSecret
that contains the SQL Server endpoint connection details.- Returns:
- The full ARN, partial ARN, or friendly name of the
SecretsManagerSecret
that contains the SQL Server endpoint connection details.
-
trimSpaceInChar
Use the
TrimSpaceInChar
source endpoint setting to right-trim data on CHAR and NCHAR data types during migration. SettingTrimSpaceInChar
does not left-trim data. The default value istrue
.- Returns:
- Use the
TrimSpaceInChar
source endpoint setting to right-trim data on CHAR and NCHAR data types during migration. SettingTrimSpaceInChar
does not left-trim data. The default value istrue
.
-
tlogAccessMode
Indicates the mode used to fetch CDC data.
If the service returns an enum value that is not available in the current SDK version,
tlogAccessMode
will returnTlogAccessMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtlogAccessModeAsString()
.- Returns:
- Indicates the mode used to fetch CDC data.
- See Also:
-
tlogAccessModeAsString
Indicates the mode used to fetch CDC data.
If the service returns an enum value that is not available in the current SDK version,
tlogAccessMode
will returnTlogAccessMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtlogAccessModeAsString()
.- Returns:
- Indicates the mode used to fetch CDC data.
- See Also:
-
forceLobLookup
Forces LOB lookup on inline LOB.
- Returns:
- Forces LOB lookup on inline LOB.
-
authenticationMethod
Specifies the authentication method to be used with Microsoft SQL Server.
If the service returns an enum value that is not available in the current SDK version,
authenticationMethod
will returnSqlServerAuthenticationMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromauthenticationMethodAsString()
.- Returns:
- Specifies the authentication method to be used with Microsoft SQL Server.
- See Also:
-
authenticationMethodAsString
Specifies the authentication method to be used with Microsoft SQL Server.
If the service returns an enum value that is not available in the current SDK version,
authenticationMethod
will returnSqlServerAuthenticationMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromauthenticationMethodAsString()
.- Returns:
- Specifies the authentication method to be used with Microsoft SQL Server.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<MicrosoftSQLServerSettings.Builder,
MicrosoftSQLServerSettings> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-