#[non_exhaustive]pub struct MicrosoftSqlServerSettings {Show 14 fields
pub port: Option<i32>,
pub bcp_packet_size: Option<i32>,
pub database_name: Option<String>,
pub control_tables_file_group: Option<String>,
pub password: Option<String>,
pub query_single_always_on_node: Option<bool>,
pub read_backup_only: Option<bool>,
pub safeguard_policy: Option<SafeguardPolicy>,
pub server_name: Option<String>,
pub username: Option<String>,
pub use_bcp_full_load: Option<bool>,
pub use_third_party_backup_device: Option<bool>,
pub secrets_manager_access_role_arn: Option<String>,
pub secrets_manager_secret_id: Option<String>,
}
Expand description
Provides information that defines a Microsoft SQL Server endpoint.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.port: Option<i32>
Endpoint TCP port.
bcp_packet_size: Option<i32>
The maximum size of the packets (in bytes) used to transfer data using BCP.
database_name: Option<String>
Database name for the endpoint.
control_tables_file_group: Option<String>
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: Option<String>
Endpoint connection password.
query_single_always_on_node: Option<bool>
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.
read_backup_only: Option<bool>
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 to Y
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.
safeguard_policy: Option<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.
server_name: Option<String>
Fully qualified domain name of the endpoint.
username: Option<String>
Endpoint connection user name.
use_bcp_full_load: Option<bool>
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.
use_third_party_backup_device: Option<bool>
When this attribute is set to Y
, DMS processes third-party transaction log backups if they are created in native format.
secrets_manager_access_role_arn: Option<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 in SecretsManagerSecret
. The role must allow the iam: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 for UserName
, Password
, ServerName
, and Port
. You can't specify both. For more information on creating this SecretsManagerSecret
and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId
required to access it, see Using secrets to access Database Migration Service resources in the Database Migration Service User Guide.
secrets_manager_secret_id: Option<String>
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
that contains the SQL Server endpoint connection details.
Implementations
sourceimpl MicrosoftSqlServerSettings
impl MicrosoftSqlServerSettings
sourcepub fn bcp_packet_size(&self) -> Option<i32>
pub fn bcp_packet_size(&self) -> Option<i32>
The maximum size of the packets (in bytes) used to transfer data using BCP.
sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
Database name for the endpoint.
sourcepub fn control_tables_file_group(&self) -> Option<&str>
pub fn control_tables_file_group(&self) -> Option<&str>
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.
sourcepub fn query_single_always_on_node(&self) -> Option<bool>
pub fn query_single_always_on_node(&self) -> Option<bool>
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.
sourcepub fn read_backup_only(&self) -> Option<bool>
pub fn read_backup_only(&self) -> Option<bool>
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 to Y
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.
sourcepub fn safeguard_policy(&self) -> Option<&SafeguardPolicy>
pub fn safeguard_policy(&self) -> Option<&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.
sourcepub fn server_name(&self) -> Option<&str>
pub fn server_name(&self) -> Option<&str>
Fully qualified domain name of the endpoint.
sourcepub fn use_bcp_full_load(&self) -> Option<bool>
pub fn use_bcp_full_load(&self) -> Option<bool>
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.
sourcepub fn use_third_party_backup_device(&self) -> Option<bool>
pub fn use_third_party_backup_device(&self) -> Option<bool>
When this attribute is set to Y
, DMS processes third-party transaction log backups if they are created in native format.
sourcepub fn secrets_manager_access_role_arn(&self) -> Option<&str>
pub fn secrets_manager_access_role_arn(&self) -> Option<&str>
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 the iam: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 for UserName
, Password
, ServerName
, and Port
. You can't specify both. For more information on creating this SecretsManagerSecret
and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId
required to access it, see Using secrets to access Database Migration Service resources in the Database Migration Service User Guide.
sourcepub fn secrets_manager_secret_id(&self) -> Option<&str>
pub fn secrets_manager_secret_id(&self) -> Option<&str>
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
that contains the SQL Server endpoint connection details.
sourceimpl MicrosoftSqlServerSettings
impl MicrosoftSqlServerSettings
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MicrosoftSqlServerSettings
Trait Implementations
sourceimpl Clone for MicrosoftSqlServerSettings
impl Clone for MicrosoftSqlServerSettings
sourcefn clone(&self) -> MicrosoftSqlServerSettings
fn clone(&self) -> MicrosoftSqlServerSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MicrosoftSqlServerSettings
impl Debug for MicrosoftSqlServerSettings
sourceimpl PartialEq<MicrosoftSqlServerSettings> for MicrosoftSqlServerSettings
impl PartialEq<MicrosoftSqlServerSettings> for MicrosoftSqlServerSettings
sourcefn eq(&self, other: &MicrosoftSqlServerSettings) -> bool
fn eq(&self, other: &MicrosoftSqlServerSettings) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MicrosoftSqlServerSettings) -> bool
fn ne(&self, other: &MicrosoftSqlServerSettings) -> bool
This method tests for !=
.
impl StructuralPartialEq for MicrosoftSqlServerSettings
Auto Trait Implementations
impl RefUnwindSafe for MicrosoftSqlServerSettings
impl Send for MicrosoftSqlServerSettings
impl Sync for MicrosoftSqlServerSettings
impl Unpin for MicrosoftSqlServerSettings
impl UnwindSafe for MicrosoftSqlServerSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more