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.
Idaws.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

NameAccessible byRequired Params
create_resourceINSERTDataMigrationType, MigrationProjectIdentifier, ServiceAccessRoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all data_migrations in a region.

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 aws.dms.data_migrations
WHERE region = 'us-east-1';

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 aws.dms.data_migrations
WHERE region = 'us-east-1' AND data__Identifier = '<DataMigrationArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.dms.data_migrations (
ServiceAccessRoleArn,
MigrationProjectIdentifier,
DataMigrationType,
region
)
SELECT
'{{ ServiceAccessRoleArn }}',
'{{ MigrationProjectIdentifier }}',
'{{ DataMigrationType }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.dms.data_migrations
WHERE data__Identifier = '<DataMigrationArn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

dms:DescribeDataMigrations,
dms:ListTagsForResource

Update

dms:ModifyDataMigration,
dms:AddTagsToResource,
dms:RemoveTagsFromResource,
dms:ListTagsForResource,
iam:PassRole

Delete

dms:DeleteDataMigration,
dms:RemoveTagsFromResource

List

dms:DescribeDataMigrations,
dms:ListTagsForResource