Class CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointPropsMixin.PostgreSqlSettingsProperty>
- Enclosing interface:
CfnEndpointPropsMixin.PostgreSqlSettingsProperty
CfnEndpointPropsMixin.PostgreSqlSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterConnectScript(String afterConnectScript) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getAfterConnectScript()babelfishDatabaseName(String babelfishDatabaseName) build()Builds the configured instance.captureDdls(Boolean captureDdls) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getCaptureDdls()captureDdls(IResolvable captureDdls) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getCaptureDdls()databaseMode(String databaseMode) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getDatabaseMode()ddlArtifactsSchema(String ddlArtifactsSchema) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getDdlArtifactsSchema()executeTimeout(Number executeTimeout) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getExecuteTimeout()failTasksOnLobTruncation(Boolean failTasksOnLobTruncation) failTasksOnLobTruncation(IResolvable failTasksOnLobTruncation) heartbeatEnable(Boolean heartbeatEnable) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatEnable()heartbeatEnable(IResolvable heartbeatEnable) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatEnable()heartbeatFrequency(Number heartbeatFrequency) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatFrequency()heartbeatSchema(String heartbeatSchema) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatSchema()mapBooleanAsBoolean(Boolean mapBooleanAsBoolean) mapBooleanAsBoolean(IResolvable mapBooleanAsBoolean) maxFileSize(Number maxFileSize) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getMaxFileSize()pluginName(String pluginName) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getPluginName()secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn) secretsManagerSecretId(String secretsManagerSecretId) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getSlotName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
afterConnectScript
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder afterConnectScript(String afterConnectScript) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getAfterConnectScript()- Parameters:
afterConnectScript- 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'- Returns:
this
-
babelfishDatabaseName
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder babelfishDatabaseName(String babelfishDatabaseName) - Parameters:
babelfishDatabaseName- The Babelfish for Aurora PostgreSQL database name for the endpoint.- Returns:
this
-
captureDdls
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder captureDdls(Boolean captureDdls) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getCaptureDdls()- Parameters:
captureDdls- 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
True, you don't have to create tables or triggers on the source database.- Returns:
this
-
captureDdls
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder captureDdls(IResolvable captureDdls) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getCaptureDdls()- Parameters:
captureDdls- 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
True, you don't have to create tables or triggers on the source database.- Returns:
this
-
databaseMode
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder databaseMode(String databaseMode) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getDatabaseMode()- Parameters:
databaseMode- Specifies the default behavior of the replication's handling of PostgreSQL- compatible endpoints that require some additional configuration, such as Babelfish endpoints.- Returns:
this
-
ddlArtifactsSchema
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder ddlArtifactsSchema(String ddlArtifactsSchema) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getDdlArtifactsSchema()- Parameters:
ddlArtifactsSchema- The schema in which the operational DDL database artifacts are created. The default value ispublic.Example:
ddlArtifactsSchema=xyzddlschema;- Returns:
this
-
executeTimeout
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder executeTimeout(Number executeTimeout) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getExecuteTimeout()- Parameters:
executeTimeout- Sets the client statement timeout for the PostgreSQL instance, in seconds. The default value is 60 seconds. Example:executeTimeout=100;- Returns:
this
-
failTasksOnLobTruncation
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder failTasksOnLobTruncation(Boolean failTasksOnLobTruncation) - Parameters:
failTasksOnLobTruncation- When set totrue, this value causes a task to fail if the actual size of a LOB column is greater than the specifiedLobMaxSize. The default value isfalse.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:
this
-
failTasksOnLobTruncation
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder failTasksOnLobTruncation(IResolvable failTasksOnLobTruncation) - Parameters:
failTasksOnLobTruncation- When set totrue, this value causes a task to fail if the actual size of a LOB column is greater than the specifiedLobMaxSize. The default value isfalse.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:
this
-
heartbeatEnable
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder heartbeatEnable(Boolean heartbeatEnable) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatEnable()- Parameters:
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 keepsrestart_lsnmoving and prevents storage full scenarios.The default value is
false.- Returns:
this
-
heartbeatEnable
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder heartbeatEnable(IResolvable heartbeatEnable) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatEnable()- Parameters:
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 keepsrestart_lsnmoving and prevents storage full scenarios.The default value is
false.- Returns:
this
-
heartbeatFrequency
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder heartbeatFrequency(Number heartbeatFrequency) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatFrequency()- Parameters:
heartbeatFrequency- Sets the WAL heartbeat frequency (in minutes). The default value is 5 minutes.- Returns:
this
-
heartbeatSchema
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder heartbeatSchema(String heartbeatSchema) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getHeartbeatSchema()- Parameters:
heartbeatSchema- Sets the schema in which the heartbeat artifacts are created. The default value ispublic.- Returns:
this
-
mapBooleanAsBoolean
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder mapBooleanAsBoolean(Boolean mapBooleanAsBoolean) - Parameters:
mapBooleanAsBoolean- When true, lets PostgreSQL migrate the boolean type as boolean. By default, PostgreSQL migrates booleans asvarchar(5). You must set this setting on both the source and target endpoints for it to take effect.The default value is
false.- Returns:
this
-
mapBooleanAsBoolean
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder mapBooleanAsBoolean(IResolvable mapBooleanAsBoolean) - Parameters:
mapBooleanAsBoolean- When true, lets PostgreSQL migrate the boolean type as boolean. By default, PostgreSQL migrates booleans asvarchar(5). You must set this setting on both the source and target endpoints for it to take effect.The default value is
false.- Returns:
this
-
maxFileSize
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder maxFileSize(Number maxFileSize) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getMaxFileSize()- Parameters:
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:
this
-
pluginName
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder pluginName(String pluginName) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getPluginName()- Parameters:
pluginName- Specifies the plugin to use to create a replication slot. The default value ispglogical.- Returns:
this
-
secretsManagerAccessRoleArn
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn) - Parameters:
secretsManagerAccessRoleArn- 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 inSecretsManagerSecret. The role must allow theiam:PassRoleaction.SecretsManagerSecrethas 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 forUserName,Password,ServerName, andPort. You can't specify both.For more information on creating this
SecretsManagerSecret, the correspondingSecretsManagerAccessRoleArn, and theSecretsManagerSecretIdthat is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .- Returns:
this
-
secretsManagerSecretId
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder secretsManagerSecretId(String secretsManagerSecretId) - Parameters:
secretsManagerSecretId- The full ARN, partial ARN, or display name of theSecretsManagerSecretthat contains the PostgreSQL endpoint connection details.- Returns:
this
-
slotName
@Stability(Stable) public CfnEndpointPropsMixin.PostgreSqlSettingsProperty.Builder slotName(String slotName) Sets the value ofCfnEndpointPropsMixin.PostgreSqlSettingsProperty.getSlotName()- Parameters:
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 theCdcStartPositionrequest parameter for the AWS 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 AWS Database Migration Service User Guide . For more information about usingCdcStartPosition, see CreateReplicationTask , StartReplicationTask , and ModifyReplicationTask .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointPropsMixin.PostgreSqlSettingsProperty>- Returns:
- a new instance of
CfnEndpointPropsMixin.PostgreSqlSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-