Struct aws_sdk_databasemigration::model::redis_settings::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RedisSettings
.
Implementations§
source§impl Builder
impl Builder
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 port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
Transmission Control Protocol (TCP) port for the endpoint.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
Transmission Control Protocol (TCP) port for the endpoint.
sourcepub fn ssl_security_protocol(self, input: SslSecurityProtocolValue) -> Self
pub fn ssl_security_protocol(self, input: SslSecurityProtocolValue) -> Self
The connection to a Redis target endpoint using Transport Layer Security (TLS). Valid values include plaintext
and ssl-encryption
. The default is ssl-encryption
. The ssl-encryption
option makes an encrypted connection. Optionally, you can identify an Amazon Resource Name (ARN) for an SSL certificate authority (CA) using the SslCaCertificateArn
setting. If an ARN isn't given for a CA, DMS uses the Amazon root CA.
The plaintext
option doesn't provide Transport Layer Security (TLS) encryption for traffic between endpoint and database.
sourcepub fn set_ssl_security_protocol(
self,
input: Option<SslSecurityProtocolValue>
) -> Self
pub fn set_ssl_security_protocol(
self,
input: Option<SslSecurityProtocolValue>
) -> Self
The connection to a Redis target endpoint using Transport Layer Security (TLS). Valid values include plaintext
and ssl-encryption
. The default is ssl-encryption
. The ssl-encryption
option makes an encrypted connection. Optionally, you can identify an Amazon Resource Name (ARN) for an SSL certificate authority (CA) using the SslCaCertificateArn
setting. If an ARN isn't given for a CA, DMS uses the Amazon root CA.
The plaintext
option doesn't provide Transport Layer Security (TLS) encryption for traffic between endpoint and database.
sourcepub fn auth_type(self, input: RedisAuthTypeValue) -> Self
pub fn auth_type(self, input: RedisAuthTypeValue) -> Self
The type of authentication to perform when connecting to a Redis target. Options include none
, auth-token
, and auth-role
. The auth-token
option requires an AuthPassword
value to be provided. The auth-role
option requires AuthUserName
and AuthPassword
values to be provided.
sourcepub fn set_auth_type(self, input: Option<RedisAuthTypeValue>) -> Self
pub fn set_auth_type(self, input: Option<RedisAuthTypeValue>) -> Self
The type of authentication to perform when connecting to a Redis target. Options include none
, auth-token
, and auth-role
. The auth-token
option requires an AuthPassword
value to be provided. The auth-role
option requires AuthUserName
and AuthPassword
values to be provided.
sourcepub fn auth_user_name(self, input: impl Into<String>) -> Self
pub fn auth_user_name(self, input: impl Into<String>) -> Self
The user name provided with the auth-role
option of the AuthType
setting for a Redis target endpoint.
sourcepub fn set_auth_user_name(self, input: Option<String>) -> Self
pub fn set_auth_user_name(self, input: Option<String>) -> Self
The user name provided with the auth-role
option of the AuthType
setting for a Redis target endpoint.
sourcepub fn auth_password(self, input: impl Into<String>) -> Self
pub fn auth_password(self, input: impl Into<String>) -> Self
The password provided with the auth-role
and auth-token
options of the AuthType
setting for a Redis target endpoint.
sourcepub fn set_auth_password(self, input: Option<String>) -> Self
pub fn set_auth_password(self, input: Option<String>) -> Self
The password provided with the auth-role
and auth-token
options of the AuthType
setting for a Redis target endpoint.
sourcepub fn ssl_ca_certificate_arn(self, input: impl Into<String>) -> Self
pub fn ssl_ca_certificate_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the certificate authority (CA) that DMS uses to connect to your Redis target endpoint.
sourcepub fn set_ssl_ca_certificate_arn(self, input: Option<String>) -> Self
pub fn set_ssl_ca_certificate_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the certificate authority (CA) that DMS uses to connect to your Redis target endpoint.
sourcepub fn build(self) -> RedisSettings
pub fn build(self) -> RedisSettings
Consumes the builder and constructs a RedisSettings
.