Skip to main content

network_migration_mapper_segments

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

Overview

Namenetwork_migration_mapper_segments
TypeResource
Idaws.mgn.network_migration_mapper_segments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the segment. (pattern: <code>[^\s\x00]( [^\s\x00])</code>)
checksumobjectThe checksum of the segment data for integrity verification.
created_atstring (date-time)The timestamp when the segment was created.
descriptionstringA description of the segment. (pattern: <code>[^\x00]*</code>)
job_idstringThe unique identifier of the job that created this segment. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
logical_idstringThe logical identifier for the segment in the infrastructure code. (pattern: <code>[a-zA-Z][a-zA-Z0-9-]*</code>)
network_migration_definition_idstringThe unique identifier of the network migration definition. (pattern: <code>nmd-[0-9a-zA-Z]{17}</code>)
network_migration_execution_idstringThe unique identifier of the network migration execution. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
output_s3_configurationobjectThe S3 location where segment artifacts are stored.
referenced_segmentsarrayA list of other segments that this segment depends on or references.
scope_tagsobjectScope tags for the segment.
segment_idstringThe unique identifier of the segment. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
segment_typestringThe type of the segment, such as VPC, subnet, or security group. (WORKLOAD, APPLIANCE)
target_accountstringThe target AWS account where this segment will be deployed. (pattern: <code>.[0-9]{12,}.</code>)
updated_atstring (date-time)The timestamp when the segment was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_network_migration_mapper_segmentsselectregionLists mapper segments, which represent logical groupings of network resources to be migrated together.
update_network_migration_mapper_segmentupdateregion, networkMigrationDefinitionID, networkMigrationExecutionID, segmentIDUpdates a mapper segment's configuration, such as changing its scope tags.

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 mapper segments, which represent logical groupings of network resources to be migrated together.

SELECT
name,
checksum,
created_at,
description,
job_id,
logical_id,
network_migration_definition_id,
network_migration_execution_id,
output_s3_configuration,
referenced_segments,
scope_tags,
segment_id,
segment_type,
target_account,
updated_at
FROM aws.mgn.network_migration_mapper_segments
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates a mapper segment's configuration, such as changing its scope tags.

UPDATE aws.mgn.network_migration_mapper_segments
SET
networkMigrationDefinitionID = '{{ networkMigrationDefinitionID }}',
networkMigrationExecutionID = '{{ networkMigrationExecutionID }}',
segmentID = '{{ segmentID }}',
scopeTags = '{{ scopeTags }}'
WHERE
region = '{{ region }}' --required
AND networkMigrationDefinitionID = '{{ networkMigrationDefinitionID }}' --required
AND networkMigrationExecutionID = '{{ networkMigrationExecutionID }}' --required
AND segmentID = '{{ segmentID }}' --required
RETURNING
name,
checksum,
created_at,
description,
job_id,
logical_id,
network_migration_definition_id,
network_migration_execution_id,
output_s3_configuration,
referenced_segments,
scope_tags,
segment_id,
segment_type,
target_account,
updated_at;