:doc:`MigrationHubRefactorSpaces <../../migration-hub-refactor-spaces>` / Client / list_environment_vpcs

*********************
list_environment_vpcs
*********************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/ListEnvironmentVpcs>`_  


  **Request Syntax**
  ::

    response = client.list_environment_vpcs(
        EnvironmentIdentifier='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type EnvironmentIdentifier: string
  :param EnvironmentIdentifier: **[REQUIRED]** 

    The ID of the environment.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned ``nextToken`` value.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next page of results.

    

  
  
  :rtype: 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**
  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.InternalServerException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.ValidationException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException`

  