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 = 'us-east-1' 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 }}';

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 }}';

DELETE example

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

Permissions

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

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