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

Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.

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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.dms.replication_configs
WHERE
Identifier = '{{ replication_config_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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