Skip to main content

source_resources

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

Overview​

Namesource_resources
TypeResource
Idaws.mgh.source_resources

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringA description that can be free-form text to record additional detail about the resource for clarity or later reference. (pattern: <code>^.{0,500}$</code>)
namestringThis is the name that you want to use to identify the resource. If the resource is an AWS resource, we recommend that you set this parameter to the ARN of the resource.
status_detailstringA free-form description of the status of the resource. (pattern: <code>^.{0,2500}$</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_source_resourcesselectregionLists all the source resource that are associated with the specified MigrationTaskName and ProgressUpdateStream.
associate_source_resourceupdateregion, ProgressUpdateStream, MigrationTaskName, SourceResourceAssociates a source resource with a migration task. For example, the source resource can be a source server, an application, or a migration wave.
disassociate_source_resourceupdateregion, ProgressUpdateStream, MigrationTaskName, SourceResourceNameRemoves the association between a source resource and a migration task.

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​

Lists all the source resource that are associated with the specified MigrationTaskName and ProgressUpdateStream.

SELECT
description,
name,
status_detail
FROM aws.mgh.source_resources
WHERE region = '{{ region }}' -- required
;

UPDATE examples​

Associates a source resource with a migration task. For example, the source resource can be a source server, an application, or a migration wave.

UPDATE aws.mgh.source_resources
SET
ProgressUpdateStream = '{{ ProgressUpdateStream }}',
MigrationTaskName = '{{ MigrationTaskName }}',
SourceResource = '{{ SourceResource }}',
DryRun = {{ DryRun }}
WHERE
region = '{{ region }}' --required
AND ProgressUpdateStream = '{{ ProgressUpdateStream }}' --required
AND MigrationTaskName = '{{ MigrationTaskName }}' --required
AND SourceResource = '{{ SourceResource }}' --required;