Skip to main content

migration_projects

Creates, updates, deletes, gets or lists a migration_projects resource.

Overview

Namemigration_projects
TypeResource
Idaws.dms.migration_projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
markerstringSpecifies the unique pagination token that makes it possible to display the next page of results. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. If Marker is returned by a previous response, there are more results available. The value of Marker is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token and keeping all other arguments unchanged.
migration_projectsarrayA description of migration projects.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_migration_projectsselectregionReturns a paginated list of migration projects for your account in the current region. Required permissions: dms:ListMigrationProjects. For more information, see Actions, resources, and condition keys for Database Migration Service.
create_migration_projectinsertregion, SourceDataProviderDescriptors, TargetDataProviderDescriptors, InstanceProfileIdentifierCreates the migration project using the specified parameters. You can run this action only after you create an instance profile and data providers using CreateInstanceProfile and CreateDataProvider. Required permissions: dms:CreateMigrationProject. For more information, see Actions, resources, and condition keys for Database Migration Service.
modify_migration_projectupdateregion, MigrationProjectIdentifierModifies the specified migration project using the provided parameters. Required permissions: dms:UpdateMigrationProject. For more information, see Actions, resources, and condition keys for Database Migration Service. The migration project must be closed before you can modify it.
delete_migration_projectdeleteregionDeletes the specified migration project. Required permissions: dms:DeleteMigrationProject. For more information, see Actions, resources, and condition keys for Database Migration Service. The migration project must be closed before you can delete it.
start_extension_pack_associationexecregion, MigrationProjectIdentifierQueues the installation of the extension pack on your target database. If other requests created by Start* operations are already in the migration project's queue, the installation begins after they complete. This operation requires a non-virtual target data provider. If the extension pack already exists, the operation reinstalls it. To ensure compatibility, reconvert your database objects if the version has changed since your last conversion. For more information, see Using extension packs in DMS Schema Conversion. To check the status of the request, call DescribeExtensionPackAssociations using the returned RequestIdentifier as a filter. Required permissions: dms:AssociateExtensionPack. For more information, see Actions, resources, and condition keys for Database Migration Service.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a paginated list of migration projects for your account in the current region. Required permissions: dms:ListMigrationProjects. For more information, see Actions, resources, and condition keys for Database Migration Service.

SELECT
marker,
migration_projects
FROM aws.dms.migration_projects
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates the migration project using the specified parameters. You can run this action only after you create an instance profile and data providers using CreateInstanceProfile and CreateDataProvider. Required permissions: dms:CreateMigrationProject. For more information, see Actions, resources, and condition keys for Database Migration Service.

INSERT INTO aws.dms.migration_projects (
MigrationProjectName,
SourceDataProviderDescriptors,
TargetDataProviderDescriptors,
InstanceProfileIdentifier,
TransformationRules,
Description,
Tags,
SchemaConversionApplicationAttributes,
region
)
SELECT
'{{ MigrationProjectName }}',
'{{ SourceDataProviderDescriptors }}' /* required */,
'{{ TargetDataProviderDescriptors }}' /* required */,
'{{ InstanceProfileIdentifier }}' /* required */,
'{{ TransformationRules }}',
'{{ Description }}',
'{{ Tags }}',
'{{ SchemaConversionApplicationAttributes }}',
'{{ region }}'
RETURNING
migration_project
;

UPDATE examples

Modifies the specified migration project using the provided parameters. Required permissions: dms:UpdateMigrationProject. For more information, see Actions, resources, and condition keys for Database Migration Service. The migration project must be closed before you can modify it.

UPDATE aws.dms.migration_projects
SET
MigrationProjectIdentifier = '{{ MigrationProjectIdentifier }}',
MigrationProjectName = '{{ MigrationProjectName }}',
SourceDataProviderDescriptors = '{{ SourceDataProviderDescriptors }}',
TargetDataProviderDescriptors = '{{ TargetDataProviderDescriptors }}',
InstanceProfileIdentifier = '{{ InstanceProfileIdentifier }}',
TransformationRules = '{{ TransformationRules }}',
Description = '{{ Description }}',
SchemaConversionApplicationAttributes = '{{ SchemaConversionApplicationAttributes }}'
WHERE
region = '{{ region }}' --required
AND MigrationProjectIdentifier = '{{ MigrationProjectIdentifier }}' --required
RETURNING
migration_project;

DELETE examples

Deletes the specified migration project. Required permissions: dms:DeleteMigrationProject. For more information, see Actions, resources, and condition keys for Database Migration Service. The migration project must be closed before you can delete it.

DELETE FROM aws.dms.migration_projects
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Queues the installation of the extension pack on your target database. If other requests created by Start* operations are already in the migration project's queue, the installation begins after they complete. This operation requires a non-virtual target data provider. If the extension pack already exists, the operation reinstalls it. To ensure compatibility, reconvert your database objects if the version has changed since your last conversion. For more information, see Using extension packs in DMS Schema Conversion. To check the status of the request, call DescribeExtensionPackAssociations using the returned RequestIdentifier as a filter. Required permissions: dms:AssociateExtensionPack. For more information, see Actions, resources, and condition keys for Database Migration Service.

EXEC aws.dms.migration_projects.start_extension_pack_association
@region='{{ region }}' --required
@@json=
'{
"MigrationProjectIdentifier": "{{ MigrationProjectIdentifier }}"
}'
;