Skip to main content

replication_configs

Creates, updates, deletes or gets a replication_config resource or lists replication_configs in a region

Overview

Namereplication_configs
TypeResource
DescriptionA replication configuration that you later provide to configure and start a AWS DMS Serverless replication
Idawscc.dms.replication_configs

Fields

NameDatatypeDescription
replication_config_identifierstringA unique identifier of replication configuration
replication_config_arnstringThe Amazon Resource Name (ARN) of the Replication Config
source_endpoint_arnstringThe Amazon Resource Name (ARN) of the source endpoint for this AWS DMS Serverless replication configuration
target_endpoint_arnstringThe Amazon Resource Name (ARN) of the target endpoint for this AWS DMS Serverless replication configuration
replication_typestringThe type of AWS DMS Serverless replication to provision using this replication configuration
compute_configobjectConfiguration parameters for provisioning a AWS DMS Serverless replication
replication_settingsobjectJSON settings for Servereless replications that are provisioned using this replication configuration
supplemental_settingsobjectJSON settings for specifying supplemental data
resource_identifierstringA unique value or name that you get set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource
table_mappingsobjectJSON table mappings for AWS DMS Serverless replications that are provisioned using this replication configuration
tagsarray<p>Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.</p>
regionstringAWS region.

For more information, see AWS::DMS::ReplicationConfig.

Methods

NameResourceAccessible byRequired Params
create_resourcereplication_configsINSERTReplicationConfigIdentifier, SourceEndpointArn, TargetEndpointArn, ReplicationType, ComputeConfig, TableMappings, region
delete_resourcereplication_configsDELETEIdentifier, region
update_resourcereplication_configsUPDATEIdentifier, PatchDocument, region
list_resourcesreplication_configs_list_onlySELECTregion
get_resourcereplication_configsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual replication_config.

SELECT
region,
replication_config_identifier,
replication_config_arn,
source_endpoint_arn,
target_endpoint_arn,
replication_type,
compute_config,
replication_settings,
supplemental_settings,
resource_identifier,
table_mappings,
tags
FROM awscc.dms.replication_configs
WHERE
region = 'us-east-1' AND
Identifier = '{{ replication_config_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new replication_config resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.dms.replication_configs (
ReplicationConfigIdentifier,
SourceEndpointArn,
TargetEndpointArn,
ReplicationType,
ComputeConfig,
TableMappings,
region
)
SELECT
'{{ replication_config_identifier }}',
'{{ source_endpoint_arn }}',
'{{ target_endpoint_arn }}',
'{{ replication_type }}',
'{{ compute_config }}',
'{{ table_mappings }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a replication_config resource, using stack-deploy.

/*+ update */
UPDATE awscc.dms.replication_configs
SET PatchDocument = string('{{ {
"ReplicationConfigIdentifier": replication_config_identifier,
"SourceEndpointArn": source_endpoint_arn,
"TargetEndpointArn": target_endpoint_arn,
"ReplicationType": replication_type,
"ComputeConfig": compute_config,
"ReplicationSettings": replication_settings,
"SupplementalSettings": supplemental_settings,
"TableMappings": table_mappings,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ replication_config_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.dms.replication_configs
WHERE
Identifier = '{{ replication_config_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the replication_configs resource, the following permissions are required:

dms:CreateReplicationConfig,
dms:AddTagsToResource,
dms:ListTagsForResource,
iam:CreateServiceLinkedRole,
iam:AttachRolePolicy,
iam:PutRolePolicy,
iam:UpdateRoleDescription