EventBridge / Client / list_api_destinations

list_api_destinations#

EventBridge.Client.list_api_destinations(**kwargs)#

Retrieves a list of API destination in the account in the current Region.

See also: AWS API Documentation

Request Syntax

response = client.list_api_destinations(
    NamePrefix='string',
    ConnectionArn='string',
    NextToken='string',
    Limit=123
)
Parameters:
  • NamePrefix (string) – A name prefix to filter results returned. Only API destinations with a name that starts with the prefix are returned.

  • ConnectionArn (string) – The ARN of the connection specified for the API destination.

  • NextToken (string) –

    The token returned by a previous call, which you can use to retrieve the next set of results.

    The value of nextToken is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.

    Using an expired pagination token results in an HTTP 400 InvalidToken error.

  • Limit (integer) – The maximum number of API destinations to include in the response.

Return type:

dict

Returns:

Response Syntax

{
    'ApiDestinations': [
        {
            'ApiDestinationArn': 'string',
            'Name': 'string',
            'ApiDestinationState': 'ACTIVE'|'INACTIVE',
            'ConnectionArn': 'string',
            'InvocationEndpoint': 'string',
            'HttpMethod': 'POST'|'GET'|'HEAD'|'OPTIONS'|'PUT'|'PATCH'|'DELETE',
            'InvocationRateLimitPerSecond': 123,
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • ApiDestinations (list) –

      An array that includes information about each API destination.

      • (dict) –

        Contains details about an API destination.

        • ApiDestinationArn (string) –

          The ARN of the API destination.

        • Name (string) –

          The name of the API destination.

        • ApiDestinationState (string) –

          The state of the API destination.

        • ConnectionArn (string) –

          The ARN of the connection specified for the API destination.

        • InvocationEndpoint (string) –

          The URL to the endpoint for the API destination.

        • HttpMethod (string) –

          The method to use to connect to the HTTP endpoint.

        • InvocationRateLimitPerSecond (integer) –

          The maximum number of invocations per second to send to the HTTP endpoint.

        • CreationTime (datetime) –

          A time stamp for the time that the API destination was created.

        • LastModifiedTime (datetime) –

          A time stamp for the time that the API destination was last modified.

    • NextToken (string) –

      A token indicating there are more results available. If there are no more results, no token is included in the response.

      The value of nextToken is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.

      Using an expired pagination token results in an HTTP 400 InvalidToken error.

Exceptions

  • EventBridge.Client.exceptions.InternalException