network_migration_code_generation_segments
Creates, updates, deletes, gets or lists a network_migration_code_generation_segments resource.
Overview
| Name | network_migration_code_generation_segments |
| Type | Resource |
| Id | aws.mgn.network_migration_code_generation_segments |
Fields
The following fields are returned by SELECT queries:
- list_network_migration_code_generation_segments
| Name | Datatype | Description |
|---|---|---|
artifacts | array | A list of artifacts generated for this segment. |
created_at | string (date-time) | The timestamp when the segment was created. |
job_id | string | The unique identifier of the code generation job. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
logical_id | string | The logical identifier for the segment. (pattern: <code>[a-zA-Z][a-zA-Z0-9-]*</code>) |
mapper_segment_id | string | The ID of the mapper segment that this code generation segment was created from. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
network_migration_definition_id | string | The unique identifier of the network migration definition. (pattern: <code>nmd-[0-9a-zA-Z]{17}</code>) |
network_migration_execution_id | string | The 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>) |
referenced_segments | array | A list of other segments that this segment depends on or references. |
segment_id | string | The 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_type | string | The type of the segment. (WORKLOAD, APPLIANCE, NETWORK) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_network_migration_code_generation_segments | select | region | Lists code generation segments, which represent individual infrastructure components generated as code templates. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_network_migration_code_generation_segments
Lists code generation segments, which represent individual infrastructure components generated as code templates.
SELECT
artifacts,
created_at,
job_id,
logical_id,
mapper_segment_id,
network_migration_definition_id,
network_migration_execution_id,
referenced_segments,
segment_id,
segment_type
FROM aws.mgn.network_migration_code_generation_segments
WHERE region = '{{ region }}' -- required
;