Struct aws_sdk_databasemigration::model::ibm_db2_settings::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for IbmDb2Settings
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
Database name for the endpoint.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
Database name for the endpoint.
sourcepub fn set_password(self, input: Option<String>) -> Self
pub fn set_password(self, input: Option<String>) -> Self
Endpoint connection password.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
Endpoint TCP port. The default value is 50000.
sourcepub fn server_name(self, input: impl Into<String>) -> Self
pub fn server_name(self, input: impl Into<String>) -> Self
Fully qualified domain name of the endpoint.
sourcepub fn set_server_name(self, input: Option<String>) -> Self
pub fn set_server_name(self, input: Option<String>) -> Self
Fully qualified domain name of the endpoint.
sourcepub fn set_data_capture_changes(self, input: bool) -> Self
pub fn set_data_capture_changes(self, input: bool) -> Self
Enables ongoing replication (CDC) as a BOOLEAN value. The default is true.
sourcepub fn set_set_data_capture_changes(self, input: Option<bool>) -> Self
pub fn set_set_data_capture_changes(self, input: Option<bool>) -> Self
Enables ongoing replication (CDC) as a BOOLEAN value. The default is true.
sourcepub fn current_lsn(self, input: impl Into<String>) -> Self
pub fn current_lsn(self, input: impl Into<String>) -> Self
For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN) where you want the replication to start.
sourcepub fn set_current_lsn(self, input: Option<String>) -> Self
pub fn set_current_lsn(self, input: Option<String>) -> Self
For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN) where you want the replication to start.
sourcepub fn max_k_bytes_per_read(self, input: i32) -> Self
pub fn max_k_bytes_per_read(self, input: i32) -> Self
Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.
sourcepub fn set_max_k_bytes_per_read(self, input: Option<i32>) -> Self
pub fn set_max_k_bytes_per_read(self, input: Option<i32>) -> Self
Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
Endpoint connection user name.
sourcepub fn secrets_manager_access_role_arn(self, input: impl Into<String>) -> Self
pub fn secrets_manager_access_role_arn(self, input: impl Into<String>) -> Self
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 Db2 LUW 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 set_secrets_manager_access_role_arn(self, input: Option<String>) -> Self
pub fn set_secrets_manager_access_role_arn(self, input: Option<String>) -> Self
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 Db2 LUW 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, input: impl Into<String>) -> Self
pub fn secrets_manager_secret_id(self, input: impl Into<String>) -> Self
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
that contains the Db2 LUW endpoint connection details.
sourcepub fn set_secrets_manager_secret_id(self, input: Option<String>) -> Self
pub fn set_secrets_manager_secret_id(self, input: Option<String>) -> Self
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
that contains the Db2 LUW endpoint connection details.
sourcepub fn build(self) -> IbmDb2Settings
pub fn build(self) -> IbmDb2Settings
Consumes the builder and constructs a IbmDb2Settings
.