GlobalAccelerator / Client / list_cross_account_resources

list_cross_account_resources#

GlobalAccelerator.Client.list_cross_account_resources(**kwargs)#

List the cross-account endpoints available to add to an accelerator.

See also: AWS API Documentation

Request Syntax

response = client.list_cross_account_resources(
    AcceleratorArn='string',
    ResourceOwnerAwsAccountId='string',
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • AcceleratorArn (string) – The Amazon Resource Name (ARN) of an accelerator in a cross-account attachment.

  • ResourceOwnerAwsAccountId (string) –

    [REQUIRED]

    The account ID of a resource owner in a cross-account attachment.

  • MaxResults (integer) – The number of cross-account endpoints objects that you want to return with this call. The default value is 10.

  • NextToken (string) – The token for the next set of results. You receive this token from a previous call.

Return type:

dict

Returns:

Response Syntax

{
    'CrossAccountResources': [
        {
            'EndpointId': 'string',
            'AttachmentArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • CrossAccountResources (list) –

      The endpoints attached to an accelerator in a cross-account attachment.

      • (dict) –

        An endpoint (Amazon Web Services resource) that is listed in a cross-account attachment and can be added to an accelerator by specified principals, that are also listed in the attachment.

        • EndpointId (string) –

          The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator by specified principals.

        • AttachmentArn (string) –

          The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints to accelerators.

    • NextToken (string) –

      The token for the next set of results. You receive this token from a previous call.

Exceptions

  • GlobalAccelerator.Client.exceptions.InternalServiceErrorException

  • GlobalAccelerator.Client.exceptions.InvalidArgumentException

  • GlobalAccelerator.Client.exceptions.InvalidNextTokenException

  • GlobalAccelerator.Client.exceptions.AccessDeniedException

  • GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException