amazonka-cloudwatch-events-2.0: Amazon EventBridge SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatchEvents.ListEventSources

Description

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.

Synopsis

Creating a Request

data ListEventSources Source #

See: newListEventSources smart constructor.

Constructors

ListEventSources' 

Fields

  • limit :: Maybe Natural

    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.

  • namePrefix :: Maybe Text

    Specifying this limits the results to only those partner event sources with names that start with the specified prefix.

  • nextToken :: Maybe Text

    The token returned by a previous call to retrieve the next set of results.

Instances

Instances details
ToJSON ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

ToHeaders ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

ToPath ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

ToQuery ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

AWSRequest ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Associated Types

type AWSResponse ListEventSources #

Generic ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Associated Types

type Rep ListEventSources :: Type -> Type #

Read ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Show ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

NFData ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Methods

rnf :: ListEventSources -> () #

Eq ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Hashable ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

type AWSResponse ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

type Rep ListEventSources Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

type Rep ListEventSources = D1 ('MetaData "ListEventSources" "Amazonka.CloudWatchEvents.ListEventSources" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "ListEventSources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "namePrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListEventSources :: ListEventSources Source #

Create a value of ListEventSources with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:limit:ListEventSources', listEventSources_limit - 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.

$sel:namePrefix:ListEventSources', listEventSources_namePrefix - Specifying this limits the results to only those partner event sources with names that start with the specified prefix.

ListEventSources, listEventSources_nextToken - The token returned by a previous call to retrieve the next set of results.

Request Lenses

listEventSources_limit :: Lens' ListEventSources (Maybe Natural) Source #

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.

listEventSources_namePrefix :: Lens' ListEventSources (Maybe Text) Source #

Specifying this limits the results to only those partner event sources with names that start with the specified prefix.

listEventSources_nextToken :: Lens' ListEventSources (Maybe Text) Source #

The token returned by a previous call to retrieve the next set of results.

Destructuring the Response

data ListEventSourcesResponse Source #

See: newListEventSourcesResponse smart constructor.

Constructors

ListEventSourcesResponse' 

Fields

Instances

Instances details
Generic ListEventSourcesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Associated Types

type Rep ListEventSourcesResponse :: Type -> Type #

Read ListEventSourcesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Show ListEventSourcesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

NFData ListEventSourcesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

Eq ListEventSourcesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

type Rep ListEventSourcesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEventSources

type Rep ListEventSourcesResponse = D1 ('MetaData "ListEventSourcesResponse" "Amazonka.CloudWatchEvents.ListEventSources" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "ListEventSourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventSources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EventSource])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListEventSourcesResponse Source #

Create a value of ListEventSourcesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:eventSources:ListEventSourcesResponse', listEventSourcesResponse_eventSources - The list of event sources.

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

$sel:httpStatus:ListEventSourcesResponse', listEventSourcesResponse_httpStatus - The response's http status code.

Response Lenses

listEventSourcesResponse_nextToken :: Lens' ListEventSourcesResponse (Maybe Text) Source #

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