MigrationHubRefactorSpaces / Client / list_environment_vpcs

list_environment_vpcs#

MigrationHubRefactorSpaces.Client.list_environment_vpcs(**kwargs)#

Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.

See also: AWS API Documentation

Request Syntax

response = client.list_environment_vpcs(
    EnvironmentIdentifier='string',
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • EnvironmentIdentifier (string) –

    [REQUIRED]

    The ID of the environment.

  • 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.

Return type:

dict

Returns:

Response Syntax

{
    'EnvironmentVpcList': [
        {
            'AccountId': 'string',
            'CidrBlocks': [
                'string',
            ],
            'CreatedTime': datetime(2015, 1, 1),
            'EnvironmentId': 'string',
            'LastUpdatedTime': datetime(2015, 1, 1),
            'VpcId': 'string',
            'VpcName': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • EnvironmentVpcList (list) –

      The list of EnvironmentVpc objects.

      • (dict) –

        Provides summary information for the EnvironmentVpc resource as a response to ListEnvironmentVpc.

        • AccountId (string) –

          The Amazon Web Services account ID of the virtual private cloud (VPC) owner.

        • CidrBlocks (list) –

          The list of Amazon Virtual Private Cloud (Amazon VPC) CIDR blocks.

          • (string) –

        • CreatedTime (datetime) –

          A timestamp that indicates when the VPC is first added to the environment.

        • EnvironmentId (string) –

          The unique identifier of the environment.

        • LastUpdatedTime (datetime) –

          A timestamp that indicates when the VPC was last updated by the environment.

        • VpcId (string) –

          The ID of the VPC.

        • VpcName (string) –

          The name of the VPC at the time it is added to the environment.

    • NextToken (string) –

      The token for the next page of results.

Exceptions

  • MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException

  • MigrationHubRefactorSpaces.Client.exceptions.InternalServerException

  • MigrationHubRefactorSpaces.Client.exceptions.ValidationException

  • MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException

  • MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException