Class PostgreSQLSettings
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PostgreSQLSettings.Builder,PostgreSQLSettings>
Provides information that defines a PostgreSQL endpoint.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringFor use with change data capture (CDC) only, this attribute has DMS bypass foreign keys and user triggers to reduce the time it takes to bulk load data.This attribute allows you to specify the authentication method as "iam auth".final StringThis attribute allows you to specify the authentication method as "iam auth".final StringThe Babelfish for Aurora PostgreSQL database name for the endpoint.static PostgreSQLSettings.Builderbuilder()final BooleanTo capture DDL events, DMS creates various artifacts in the PostgreSQL database when the task starts.final DatabaseModeSpecifies the default behavior of the replication's handling of PostgreSQL- compatible endpoints that require some additional configuration, such as Babelfish endpoints.final StringSpecifies the default behavior of the replication's handling of PostgreSQL- compatible endpoints that require some additional configuration, such as Babelfish endpoints.final StringDatabase name for the endpoint.final StringThe schema in which the operational DDL database artifacts are created.final BooleanDisables the Unicode source filter with PostgreSQL, for values passed into the Selection rule filter on Source Endpoint column values.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final IntegerSets the client statement timeout for the PostgreSQL instance, in seconds.final BooleanWhen set totrue, this value causes a task to fail if the actual size of a LOB column is greater than the specifiedLobMaxSize.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanThe write-ahead log (WAL) heartbeat feature mimics a dummy transaction.final IntegerSets the WAL heartbeat frequency (in minutes).final StringSets the schema in which the heartbeat artifacts are created.final BooleanWhen true, lets PostgreSQL migrate the boolean type as boolean.final BooleanWhen true, DMS migrates JSONB values as CLOB.final LongVarcharMappingTypeSets what datatype to map LONG values as.final StringSets what datatype to map LONG values as.final IntegerSpecifies the maximum size (in KB) of any .csv file used to transfer data to PostgreSQL.final Stringpassword()Endpoint connection password.final PluginNameValueSpecifies the plugin to use to create a replication slot.final StringSpecifies the plugin to use to create a replication slot.final Integerport()Endpoint TCP port.final StringThe 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 StringThe full ARN, partial ARN, or friendly name of theSecretsManagerSecretthat contains the PostgreSQL endpoint connection details.static Class<? extends PostgreSQLSettings.Builder> final StringThe host name of the endpoint database.final StringThe IAM role arn you can use to authenticate the connection to your endpoint.final StringslotName()Sets the name of a previously created logical replication slot for a change data capture (CDC) load of the PostgreSQL source instance.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final BooleanUse theTrimSpaceInCharsource endpoint setting to trim data on CHAR and NCHAR data types during migration.final Stringusername()Endpoint connection user name.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
afterConnectScript
For use with change data capture (CDC) only, this attribute has DMS bypass foreign keys and user triggers to reduce the time it takes to bulk load data.
Example:
afterConnectScript=SET session_replication_role='replica'- Returns:
- For use with change data capture (CDC) only, this attribute has DMS bypass foreign keys and user triggers
to reduce the time it takes to bulk load data.
Example:
afterConnectScript=SET session_replication_role='replica'
-
captureDdls
To capture DDL events, DMS creates various artifacts in the PostgreSQL database when the task starts. You can later remove these artifacts.
The default value is
true.If this value is set to
N, you don't have to create tables or triggers on the source database.- Returns:
- To capture DDL events, DMS creates various artifacts in the PostgreSQL database when the task starts. You
can later remove these artifacts.
The default value is
true.If this value is set to
N, you don't have to create tables or triggers on the source database.
-
maxFileSize
Specifies the maximum size (in KB) of any .csv file used to transfer data to PostgreSQL.
The default value is 32,768 KB (32 MB).
Example:
maxFileSize=512- Returns:
- Specifies the maximum size (in KB) of any .csv file used to transfer data to PostgreSQL.
The default value is 32,768 KB (32 MB).
Example:
maxFileSize=512
-
databaseName
Database name for the endpoint.
- Returns:
- Database name for the endpoint.
-
ddlArtifactsSchema
The schema in which the operational DDL database artifacts are created.
The default value is
public.Example:
ddlArtifactsSchema=xyzddlschema;- Returns:
- The schema in which the operational DDL database artifacts are created.
The default value is
public.Example:
ddlArtifactsSchema=xyzddlschema;
-
executeTimeout
Sets the client statement timeout for the PostgreSQL instance, in seconds. The default value is 60 seconds.
Example:
executeTimeout=100;- Returns:
- Sets the client statement timeout for the PostgreSQL instance, in seconds. The default value is 60
seconds.
Example:
executeTimeout=100;
-
failTasksOnLobTruncation
When set to
true, this value causes a task to fail if the actual size of a LOB column is greater than the specifiedLobMaxSize.The default value is
false.If task is set to Limited LOB mode and this option is set to true, the task fails instead of truncating the LOB data.
- Returns:
- When set to
true, this value causes a task to fail if the actual size of a LOB column is greater than the specifiedLobMaxSize.The default value is
false.If task is set to Limited LOB mode and this option is set to true, the task fails instead of truncating the LOB data.
-
heartbeatEnable
The write-ahead log (WAL) heartbeat feature mimics a dummy transaction. By doing this, it prevents idle logical replication slots from holding onto old WAL logs, which can result in storage full situations on the source. This heartbeat keeps
restart_lsnmoving and prevents storage full scenarios.The default value is
false.- Returns:
- The write-ahead log (WAL) heartbeat feature mimics a dummy transaction. By doing this, it prevents idle
logical replication slots from holding onto old WAL logs, which can result in storage full situations on
the source. This heartbeat keeps
restart_lsnmoving and prevents storage full scenarios.The default value is
false.
-
heartbeatSchema
Sets the schema in which the heartbeat artifacts are created.
The default value is
public.- Returns:
- Sets the schema in which the heartbeat artifacts are created.
The default value is
public.
-
heartbeatFrequency
Sets the WAL heartbeat frequency (in minutes).
The default value is 5 minutes.
- Returns:
- Sets the WAL heartbeat frequency (in minutes).
The default value is 5 minutes.
-
password
-
port
Endpoint TCP port. The default is 5432.
- Returns:
- Endpoint TCP port. The default is 5432.
-
serverName
The host name of the endpoint database.
For an Amazon RDS PostgreSQL instance, this is the output of DescribeDBInstances, in the
Endpoint.Addressfield.For an Aurora PostgreSQL instance, this is the output of DescribeDBClusters, in the
Endpointfield.- Returns:
- The host name of the endpoint database.
For an Amazon RDS PostgreSQL instance, this is the output of DescribeDBInstances, in the
Endpoint.Addressfield.For an Aurora PostgreSQL instance, this is the output of DescribeDBClusters, in the
Endpointfield.
-
username
Endpoint connection user name.
- Returns:
- Endpoint connection user name.
-
slotName
Sets the name of a previously created logical replication slot for a change data capture (CDC) load of the PostgreSQL source instance.
When used with the
CdcStartPositionrequest parameter for the DMS API , this attribute also makes it possible to use native CDC start points. DMS verifies that the specified logical replication slot exists before starting the CDC load task. It also verifies that the task was created with a valid setting ofCdcStartPosition. If the specified slot doesn't exist or the task doesn't have a validCdcStartPositionsetting, DMS raises an error.For more information about setting the
CdcStartPositionrequest parameter, see Determining a CDC native start point in the Database Migration Service User Guide. For more information about usingCdcStartPosition, see CreateReplicationTask, StartReplicationTask, and ModifyReplicationTask.- Returns:
- Sets the name of a previously created logical replication slot for a change data capture (CDC) load of
the PostgreSQL source instance.
When used with the
CdcStartPositionrequest parameter for the DMS API , this attribute also makes it possible to use native CDC start points. DMS verifies that the specified logical replication slot exists before starting the CDC load task. It also verifies that the task was created with a valid setting ofCdcStartPosition. If the specified slot doesn't exist or the task doesn't have a validCdcStartPositionsetting, DMS raises an error.For more information about setting the
CdcStartPositionrequest parameter, see Determining a CDC native start point in the Database Migration Service User Guide. For more information about usingCdcStartPosition, see CreateReplicationTask, StartReplicationTask, and ModifyReplicationTask.
-
pluginName
Specifies the plugin to use to create a replication slot.
The default value is
pglogical.If the service returns an enum value that is not available in the current SDK version,
pluginNamewill returnPluginNameValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompluginNameAsString().- Returns:
- Specifies the plugin to use to create a replication slot.
The default value is
pglogical. - See Also:
-
pluginNameAsString
Specifies the plugin to use to create a replication slot.
The default value is
pglogical.If the service returns an enum value that is not available in the current SDK version,
pluginNamewill returnPluginNameValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompluginNameAsString().- Returns:
- Specifies the plugin to use to create a replication slot.
The default value is
pglogical. - See Also:
-
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:PassRoleaction.SecretsManagerSecrethas the value of the Amazon Web Services 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 forUserName,Password,ServerName, andPort. You can't specify both. For more information on creating thisSecretsManagerSecretand theSecretsManagerAccessRoleArnandSecretsManagerSecretIdrequired 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:PassRoleaction.SecretsManagerSecrethas the value of the Amazon Web Services 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 forUserName,Password,ServerName, andPort. You can't specify both. For more information on creating thisSecretsManagerSecretand theSecretsManagerAccessRoleArnandSecretsManagerSecretIdrequired 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
SecretsManagerSecretthat contains the PostgreSQL endpoint connection details.- Returns:
- The full ARN, partial ARN, or friendly name of the
SecretsManagerSecretthat contains the PostgreSQL endpoint connection details.
-
trimSpaceInChar
Use the
TrimSpaceInCharsource endpoint setting to trim data on CHAR and NCHAR data types during migration. The default value istrue.- Returns:
- Use the
TrimSpaceInCharsource endpoint setting to trim data on CHAR and NCHAR data types during migration. The default value istrue.
-
mapBooleanAsBoolean
When true, lets PostgreSQL migrate the boolean type as boolean. By default, PostgreSQL migrates booleans as
varchar(5). You must set this setting on both the source and target endpoints for it to take effect.The default value is
false.- Returns:
- When true, lets PostgreSQL migrate the boolean type as boolean. By default, PostgreSQL migrates booleans
as
varchar(5). You must set this setting on both the source and target endpoints for it to take effect.The default value is
false.
-
mapJsonbAsClob
When true, DMS migrates JSONB values as CLOB.
The default value is
false.- Returns:
- When true, DMS migrates JSONB values as CLOB.
The default value is
false.
-
mapLongVarcharAs
Sets what datatype to map LONG values as.
The default value is
wstring.If the service returns an enum value that is not available in the current SDK version,
mapLongVarcharAswill returnLongVarcharMappingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommapLongVarcharAsAsString().- Returns:
- Sets what datatype to map LONG values as.
The default value is
wstring. - See Also:
-
mapLongVarcharAsAsString
Sets what datatype to map LONG values as.
The default value is
wstring.If the service returns an enum value that is not available in the current SDK version,
mapLongVarcharAswill returnLongVarcharMappingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommapLongVarcharAsAsString().- Returns:
- Sets what datatype to map LONG values as.
The default value is
wstring. - See Also:
-
databaseMode
Specifies the default behavior of the replication's handling of PostgreSQL- compatible endpoints that require some additional configuration, such as Babelfish endpoints.
If the service returns an enum value that is not available in the current SDK version,
databaseModewill returnDatabaseMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdatabaseModeAsString().- Returns:
- Specifies the default behavior of the replication's handling of PostgreSQL- compatible endpoints that require some additional configuration, such as Babelfish endpoints.
- See Also:
-
databaseModeAsString
Specifies the default behavior of the replication's handling of PostgreSQL- compatible endpoints that require some additional configuration, such as Babelfish endpoints.
If the service returns an enum value that is not available in the current SDK version,
databaseModewill returnDatabaseMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdatabaseModeAsString().- Returns:
- Specifies the default behavior of the replication's handling of PostgreSQL- compatible endpoints that require some additional configuration, such as Babelfish endpoints.
- See Also:
-
babelfishDatabaseName
The Babelfish for Aurora PostgreSQL database name for the endpoint.
- Returns:
- The Babelfish for Aurora PostgreSQL database name for the endpoint.
-
disableUnicodeSourceFilter
Disables the Unicode source filter with PostgreSQL, for values passed into the Selection rule filter on Source Endpoint column values. By default DMS performs source filter comparisons using a Unicode string which can cause look ups to ignore the indexes in the text columns and slow down migrations.
Unicode support should only be disabled when using a selection rule filter is on a text column in the Source database that is indexed.
- Returns:
- Disables the Unicode source filter with PostgreSQL, for values passed into the Selection rule filter on
Source Endpoint column values. By default DMS performs source filter comparisons using a Unicode string
which can cause look ups to ignore the indexes in the text columns and slow down migrations.
Unicode support should only be disabled when using a selection rule filter is on a text column in the Source database that is indexed.
-
serviceAccessRoleArn
The IAM role arn you can use to authenticate the connection to your endpoint. Ensure to include
iam:PassRoleandrds-db:connectactions in permission policy.- Returns:
- The IAM role arn you can use to authenticate the connection to your endpoint. Ensure to include
iam:PassRoleandrds-db:connectactions in permission policy.
-
authenticationMethod
This attribute allows you to specify the authentication method as "iam auth".
If the service returns an enum value that is not available in the current SDK version,
authenticationMethodwill returnPostgreSQLAuthenticationMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthenticationMethodAsString().- Returns:
- This attribute allows you to specify the authentication method as "iam auth".
- See Also:
-
authenticationMethodAsString
This attribute allows you to specify the authentication method as "iam auth".
If the service returns an enum value that is not available in the current SDK version,
authenticationMethodwill returnPostgreSQLAuthenticationMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthenticationMethodAsString().- Returns:
- This attribute allows you to specify the authentication method as "iam auth".
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PostgreSQLSettings.Builder,PostgreSQLSettings> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-