environment_vpcs
Creates, updates, deletes, gets or lists an environment_vpcs resource.
Overview
| Name | environment_vpcs |
| Type | Resource |
| Id | aws.migration_hub_refactor_spaces.environment_vpcs |
Fields
The following fields are returned by SELECT queries:
- list_environment_vpcs
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Amazon Web Services account ID of the virtual private cloud (VPC) owner. (pattern: <code>^\d{12}$</code>) |
cidr_blocks | array | The list of Amazon Virtual Private Cloud (Amazon VPC) CIDR blocks. |
created_time | string (date-time) | A timestamp that indicates when the VPC is first added to the environment. |
environment_id | string | The unique identifier of the environment. (pattern: <code>^env-[0-9A-Za-z]{10}$</code>) |
last_updated_time | string (date-time) | A timestamp that indicates when the VPC was last updated by the environment. |
vpc_id | string | The ID of the VPC. (pattern: <code>^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$</code>) |
vpc_name | string | The name of the VPC at the time it is added to the environment. (pattern: <code>^.*$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_environment_vpcs | select | environment_identifier, region | maxResults, nextToken | Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment. |
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 |
|---|---|---|
environment_identifier | string | The ID of the environment. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. |
nextToken | string | The token for the next page of results. |
SELECT examples
- list_environment_vpcs
Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.
SELECT
account_id,
cidr_blocks,
created_time,
environment_id,
last_updated_time,
vpc_id,
vpc_name
FROM aws.migration_hub_refactor_spaces.environment_vpcs
WHERE environment_identifier = '{{ environment_identifier }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;