Skip to main content

migration_projects

Creates, updates, deletes or gets a migration_project resource or lists migration_projects in a region

Overview

Namemigration_projects
TypeResource
DescriptionResource schema for AWS::DMS::MigrationProject
Idawscc.dms.migration_projects

Fields

NameDatatypeDescription
migration_project_namestringThe property describes a name to identify the migration project.
migration_project_identifierstringThe property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn
migration_project_arnstringThe property describes an ARN of the migration project.
migration_project_creation_timestringThe property describes a creating time of the migration project.
instance_profile_identifierstringThe property describes an instance profile identifier for the migration project. For create
instance_profile_namestringThe property describes an instance profile name for the migration project. For read
instance_profile_arnstringThe property describes an instance profile arn for the migration project. For read
transformation_rulesstringThe property describes transformation rules for the migration project.
descriptionstringThe optional description of the migration project.
schema_conversion_application_attributesobjectThe property describes schema conversion application attributes for the migration project.
source_data_provider_descriptorsarrayThe property describes source data provider descriptors for the migration project.
target_data_provider_descriptorsarrayThe property describes target data provider descriptors for the migration project.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcemigration_projectsINSERTregion
delete_resourcemigration_projectsDELETEIdentifier, region
update_resourcemigration_projectsUPDATEIdentifier, PatchDocument, region
list_resourcesmigration_projects_list_onlySELECTregion
get_resourcemigration_projectsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual migration_project.

SELECT
region,
migration_project_name,
migration_project_identifier,
migration_project_arn,
migration_project_creation_time,
instance_profile_identifier,
instance_profile_name,
instance_profile_arn,
transformation_rules,
description,
schema_conversion_application_attributes,
source_data_provider_descriptors,
target_data_provider_descriptors,
tags
FROM awscc.dms.migration_projects
WHERE
region = 'us-east-1' AND
Identifier = '{{ migration_project_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.dms.migration_projects (
MigrationProjectName,
MigrationProjectIdentifier,
MigrationProjectCreationTime,
InstanceProfileIdentifier,
InstanceProfileName,
InstanceProfileArn,
TransformationRules,
Description,
SchemaConversionApplicationAttributes,
SourceDataProviderDescriptors,
TargetDataProviderDescriptors,
Tags,
region
)
SELECT
'{{ migration_project_name }}',
'{{ migration_project_identifier }}',
'{{ migration_project_creation_time }}',
'{{ instance_profile_identifier }}',
'{{ instance_profile_name }}',
'{{ instance_profile_arn }}',
'{{ transformation_rules }}',
'{{ description }}',
'{{ schema_conversion_application_attributes }}',
'{{ source_data_provider_descriptors }}',
'{{ target_data_provider_descriptors }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.dms.migration_projects
SET PatchDocument = string('{{ {
"MigrationProjectName": migration_project_name,
"MigrationProjectIdentifier": migration_project_identifier,
"MigrationProjectCreationTime": migration_project_creation_time,
"InstanceProfileIdentifier": instance_profile_identifier,
"InstanceProfileName": instance_profile_name,
"InstanceProfileArn": instance_profile_arn,
"TransformationRules": transformation_rules,
"Description": description,
"SchemaConversionApplicationAttributes": schema_conversion_application_attributes,
"SourceDataProviderDescriptors": source_data_provider_descriptors,
"TargetDataProviderDescriptors": target_data_provider_descriptors,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ migration_project_arn }}';

DELETE example

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

Permissions

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

dms:CreateMigrationProject,
dms:ListMigrationProjects,
dms:DescribeMigrationProjects,
dms:AddTagsToResource,
dms:ListTagsForResource,
iam:PassRole