list_event_sources

list_event_sources(**kwargs)

You can use this to see all the partner event sources that have been shared with your Amazon Web Services account. For more information about partner event sources, see CreateEventBus.

See also: AWS API Documentation

Request Syntax

response = client.list_event_sources(
    NamePrefix='string',
    NextToken='string',
    Limit=123
)
Parameters
  • NamePrefix (string) -- Specifying this limits the results to only those partner event sources with names that start with the specified prefix.
  • NextToken (string) -- The token returned by a previous call to retrieve the next set of results.
  • Limit (integer) -- Specifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.
Return type

dict

Returns

Response Syntax

{
    'EventSources': [
        {
            'Arn': 'string',
            'CreatedBy': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'ExpirationTime': datetime(2015, 1, 1),
            'Name': 'string',
            'State': 'PENDING'|'ACTIVE'|'DELETED'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • EventSources (list) --

      The list of event sources.

      • (dict) --

        A partner event source is created by an SaaS partner. If a customer creates a partner event bus that matches this event source, that Amazon Web Services account can receive events from the partner's applications or services.

        • Arn (string) --

          The ARN of the event source.

        • CreatedBy (string) --

          The name of the partner that created the event source.

        • CreationTime (datetime) --

          The date and time the event source was created.

        • ExpirationTime (datetime) --

          The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching event bus for it.

        • Name (string) --

          The name of the event source.

        • State (string) --

          The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.

    • NextToken (string) --

      A token you can use in a subsequent operation to retrieve the next set of results.

Exceptions

  • EventBridge.Client.exceptions.InternalException
  • EventBridge.Client.exceptions.OperationDisabledException