Struct rusoto_dms::PostgreSQLSettings [−][src]
pub struct PostgreSQLSettings {}Show fields
pub after_connect_script: Option<String>, pub capture_ddls: Option<bool>, pub database_name: Option<String>, pub ddl_artifacts_schema: Option<String>, pub execute_timeout: Option<i64>, pub fail_tasks_on_lob_truncation: Option<bool>, pub max_file_size: Option<i64>, pub password: Option<String>, pub port: Option<i64>, pub secrets_manager_access_role_arn: Option<String>, pub secrets_manager_secret_id: Option<String>, pub server_name: Option<String>, pub slot_name: Option<String>, pub username: Option<String>,
Expand description
Provides information that defines a PostgreSQL endpoint.
Fields
after_connect_script: Option<String>
For use with change data capture (CDC) only, this attribute has AWS DMS bypass foreign keys and user triggers to reduce the time it takes to bulk load data.
Example: afterConnectScript=SET session_replication_role='replica'
capture_ddls: Option<bool>
To capture DDL events, AWS DMS creates various artifacts in the PostgreSQL database when the task starts. You can later remove these artifacts.
If this value is set to N
, you don't have to create tables or triggers on the source database.
database_name: Option<String>
Database name for the endpoint.
ddl_artifacts_schema: Option<String>
The schema in which the operational DDL database artifacts are created.
Example: ddlArtifactsSchema=xyzddlschema;
execute_timeout: Option<i64>
Sets the client statement timeout for the PostgreSQL instance, in seconds. The default value is 60 seconds.
Example: executeTimeout=100;
fail_tasks_on_lob_truncation: Option<bool>
When set to true
, this value causes a task to fail if the actual size of a LOB column is greater than the specified LobMaxSize
.
If task is set to Limited LOB mode and this option is set to true, the task fails instead of truncating the LOB data.
max_file_size: Option<i64>
Specifies the maximum size (in KB) of any .csv file used to transfer data to PostgreSQL.
Example: maxFileSize=512
password: Option<String>
Endpoint connection password.
port: Option<i64>
Endpoint TCP port.
secrets_manager_access_role_arn: Option<String>
The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in SecretsManagerSecret
. SecretsManagerSecret
has the value of the AWS Secrets Manager secret that allows access to the PostgreSQL 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 AWS Database Migration Service resources in the AWS 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 PostgreSQL endpoint connection details.
server_name: Option<String>
Fully qualified domain name of the endpoint.
slot_name: Option<String>
Sets the name of a previously created logical replication slot for a CDC load of the PostgreSQL source instance.
When used with the AWS DMS API CdcStartPosition
request parameter, this attribute also enables using native CDC start points.
username: Option<String>
Endpoint connection user name.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PostgreSQLSettings
impl Send for PostgreSQLSettings
impl Sync for PostgreSQLSettings
impl Unpin for PostgreSQLSettings
impl UnwindSafe for PostgreSQLSettings
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self