Skip to main content

data_migrations

Creates, updates, deletes or gets a data_migration resource or lists data_migrations in a region

Overview

Namedata_migrations
TypeResource
DescriptionResource schema for AWS::DMS::DataMigration.
Idawscc.dms.data_migrations

Fields

NameDatatypeDescription
data_migration_namestringThe property describes a name to identify the data migration.
data_migration_arnstringThe property describes an ARN of the data migration.
data_migration_identifierstringThe property describes an ARN of the data migration.
data_migration_create_timestringThe property describes the create time of the data migration.
service_access_role_arnstringThe property describes Amazon Resource Name (ARN) of the service access role.
migration_project_identifierstringThe property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn
data_migration_typestringThe property describes the type of migration.
data_migration_settingsobjectThe property describes the settings for the data migration.
source_data_settingsarrayThe property describes the settings for the data migration.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcedata_migrationsINSERTDataMigrationType, MigrationProjectIdentifier, ServiceAccessRoleArn, region
delete_resourcedata_migrationsDELETEIdentifier, region
update_resourcedata_migrationsUPDATEIdentifier, PatchDocument, region
list_resourcesdata_migrations_list_onlySELECTregion
get_resourcedata_migrationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual data_migration.

SELECT
region,
data_migration_name,
data_migration_arn,
data_migration_identifier,
data_migration_create_time,
service_access_role_arn,
migration_project_identifier,
data_migration_type,
data_migration_settings,
source_data_settings,
tags
FROM awscc.dms.data_migrations
WHERE
region = '{{ region }}' AND
Identifier = '{{ data_migration_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.dms.data_migrations (
ServiceAccessRoleArn,
MigrationProjectIdentifier,
DataMigrationType,
region
)
SELECT
'{{ service_access_role_arn }}',
'{{ migration_project_identifier }}',
'{{ data_migration_type }}',
'{{ 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 data_migration resource, using stack-deploy.

/*+ update */
UPDATE awscc.dms.data_migrations
SET PatchDocument = string('{{ {
"DataMigrationName": data_migration_name,
"DataMigrationIdentifier": data_migration_identifier,
"ServiceAccessRoleArn": service_access_role_arn,
"MigrationProjectIdentifier": migration_project_identifier,
"DataMigrationType": data_migration_type,
"DataMigrationSettings": data_migration_settings,
"SourceDataSettings": source_data_settings,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ data_migration_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.dms.data_migrations
WHERE
Identifier = '{{ data_migration_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 data_migrations resource, the following permissions are required:

dms:CreateDataMigration,
dms:DescribeDataMigrations,
dms:AddTagsToResource,
dms:ListTagsForResource,
iam:PassRole