:doc:`Proton <../../proton>` / Paginator / ListEnvironmentAccountConnections

*********************************
ListEnvironmentAccountConnections
*********************************



.. py:class:: Proton.Paginator.ListEnvironmentAccountConnections

  ::

    
    paginator = client.get_paginator('list_environment_account_connections')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`Proton.Client.list_environment_account_connections`.

    .. danger::

            This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


    

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentAccountConnections>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          environmentName='string',
          requestedBy='MANAGEMENT_ACCOUNT'|'ENVIRONMENT_ACCOUNT',
          statuses=[
              'PENDING'|'CONNECTED'|'REJECTED',
          ],
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type environmentName: string
    :param environmentName: 

      The environment name that's associated with each listed environment account connection.

      

    
    :type requestedBy: string
    :param requestedBy: **[REQUIRED]** 

      The type of account making the ``ListEnvironmentAccountConnections`` request.

      

    
    :type statuses: list
    :param statuses: 

      The status details for each listed environment account connection.

      

    
      - *(string) --* 

      
  
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

      
    
    
    :rtype: dict
    :returns: 
      
      **Response Syntax**

      
      ::

        {
            'environmentAccountConnections': [
                {
                    'arn': 'string',
                    'componentRoleArn': 'string',
                    'environmentAccountId': 'string',
                    'environmentName': 'string',
                    'id': 'string',
                    'lastModifiedAt': datetime(2015, 1, 1),
                    'managementAccountId': 'string',
                    'requestedAt': datetime(2015, 1, 1),
                    'roleArn': 'string',
                    'status': 'PENDING'|'CONNECTED'|'REJECTED'
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **environmentAccountConnections** *(list) --* 

          An array of environment account connections with details that's returned by Proton.

          
          

          - *(dict) --* 

            Summary data of an Proton environment account connection resource.

            
            

            - **arn** *(string) --* 

              The Amazon Resource Name (ARN) of the environment account connection.

              
            

            - **componentRoleArn** *(string) --* 

              The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.

               

              The environment account connection must have a ``componentRoleArn`` to allow directly defined components to be associated with any environments running in the account.

               

              For more information about components, see `Proton components <https://docs.aws.amazon.com/proton/latest/userguide/ag-components.html>`__ in the *Proton User Guide*.

              
            

            - **environmentAccountId** *(string) --* 

              The ID of the environment account that's connected to the environment account connection.

              
            

            - **environmentName** *(string) --* 

              The name of the environment that's associated with the environment account connection.

              
            

            - **id** *(string) --* 

              The ID of the environment account connection.

              
            

            - **lastModifiedAt** *(datetime) --* 

              The time when the environment account connection was last modified.

              
            

            - **managementAccountId** *(string) --* 

              The ID of the management account that's connected to the environment account connection.

              
            

            - **requestedAt** *(datetime) --* 

              The time when the environment account connection request was made.

              
            

            - **roleArn** *(string) --* 

              The IAM service role that's associated with the environment account connection.

              
            

            - **status** *(string) --* 

              The status of the environment account connection.

              
        
      
        

        - **NextToken** *(string) --* 

          A token to resume pagination.

          
    