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.ListEndpoints

Description

List the global endpoints associated with this account. For more information about global endpoints, see Making applications Regional-fault tolerant with global endpoints and event replication in the Amazon EventBridge User Guide..

Synopsis

Creating a Request

data ListEndpoints Source #

See: newListEndpoints smart constructor.

Constructors

ListEndpoints' 

Fields

  • homeRegion :: Maybe Text

    The primary Region of the endpoints associated with this account. For example "HomeRegion": "us-east-1".

  • maxResults :: Maybe Natural

    The maximum number of results returned by the call.

  • namePrefix :: Maybe Text

    A value that will return a subset of the endpoints associated with this account. For example, "NamePrefix": "ABC" will return all endpoints with "ABC" in the name.

  • nextToken :: Maybe Text

    If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Instances

Instances details
ToJSON ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

ToHeaders ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

ToPath ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

ToQuery ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

AWSRequest ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Associated Types

type AWSResponse ListEndpoints #

Generic ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Associated Types

type Rep ListEndpoints :: Type -> Type #

Read ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Show ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

NFData ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Methods

rnf :: ListEndpoints -> () #

Eq ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Hashable ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

type AWSResponse ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

type Rep ListEndpoints Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

type Rep ListEndpoints = D1 ('MetaData "ListEndpoints" "Amazonka.CloudWatchEvents.ListEndpoints" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "ListEndpoints'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "homeRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") '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)))))

newListEndpoints :: ListEndpoints Source #

Create a value of ListEndpoints 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:homeRegion:ListEndpoints', listEndpoints_homeRegion - The primary Region of the endpoints associated with this account. For example "HomeRegion": "us-east-1".

$sel:maxResults:ListEndpoints', listEndpoints_maxResults - The maximum number of results returned by the call.

$sel:namePrefix:ListEndpoints', listEndpoints_namePrefix - A value that will return a subset of the endpoints associated with this account. For example, "NamePrefix": "ABC" will return all endpoints with "ABC" in the name.

ListEndpoints, listEndpoints_nextToken - If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Request Lenses

listEndpoints_homeRegion :: Lens' ListEndpoints (Maybe Text) Source #

The primary Region of the endpoints associated with this account. For example "HomeRegion": "us-east-1".

listEndpoints_maxResults :: Lens' ListEndpoints (Maybe Natural) Source #

The maximum number of results returned by the call.

listEndpoints_namePrefix :: Lens' ListEndpoints (Maybe Text) Source #

A value that will return a subset of the endpoints associated with this account. For example, "NamePrefix": "ABC" will return all endpoints with "ABC" in the name.

listEndpoints_nextToken :: Lens' ListEndpoints (Maybe Text) Source #

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Destructuring the Response

data ListEndpointsResponse Source #

See: newListEndpointsResponse smart constructor.

Constructors

ListEndpointsResponse' 

Fields

  • endpoints :: Maybe [Endpoint]

    The endpoints returned by the call.

  • nextToken :: Maybe Text

    If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListEndpointsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Associated Types

type Rep ListEndpointsResponse :: Type -> Type #

Read ListEndpointsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Show ListEndpointsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

NFData ListEndpointsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

Methods

rnf :: ListEndpointsResponse -> () #

Eq ListEndpointsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

type Rep ListEndpointsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListEndpoints

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

newListEndpointsResponse Source #

Create a value of ListEndpointsResponse 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:endpoints:ListEndpointsResponse', listEndpointsResponse_endpoints - The endpoints returned by the call.

ListEndpoints, listEndpointsResponse_nextToken - If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

$sel:httpStatus:ListEndpointsResponse', listEndpointsResponse_httpStatus - The response's http status code.

Response Lenses

listEndpointsResponse_nextToken :: Lens' ListEndpointsResponse (Maybe Text) Source #

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.