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

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

DELETE example

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

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