libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeStarNotifications.ListTargets

Description

Returns a list of the notification rule targets for an AWS account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTargets Source #

See: newListTargets smart constructor.

Constructors

ListTargets' 

Fields

  • filters :: Maybe [ListTargetsFilter]

    The filters to use to return information by service or resource type. Valid filters include target type, target address, and target status.

    A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.

  • nextToken :: Maybe Text

    An enumeration token that, when provided in a request, returns the next batch of the results.

  • maxResults :: Maybe Natural

    A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.

Instances

Instances details
Eq ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Read ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Show ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Generic ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Associated Types

type Rep ListTargets :: Type -> Type #

NFData ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Methods

rnf :: ListTargets -> () #

Hashable ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

ToJSON ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

AWSPager ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

AWSRequest ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Associated Types

type AWSResponse ListTargets #

ToHeaders ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Methods

toHeaders :: ListTargets -> [Header] #

ToPath ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

ToQuery ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

type Rep ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

type Rep ListTargets = D1 ('MetaData "ListTargets" "Amazonka.CodeStarNotifications.ListTargets" "libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications" 'False) (C1 ('MetaCons "ListTargets'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ListTargetsFilter])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListTargets Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

newListTargets :: ListTargets Source #

Create a value of ListTargets 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:filters:ListTargets', listTargets_filters - The filters to use to return information by service or resource type. Valid filters include target type, target address, and target status.

A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.

$sel:nextToken:ListTargets', listTargets_nextToken - An enumeration token that, when provided in a request, returns the next batch of the results.

$sel:maxResults:ListTargets', listTargets_maxResults - A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.

Request Lenses

listTargets_filters :: Lens' ListTargets (Maybe [ListTargetsFilter]) Source #

The filters to use to return information by service or resource type. Valid filters include target type, target address, and target status.

A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.

listTargets_nextToken :: Lens' ListTargets (Maybe Text) Source #

An enumeration token that, when provided in a request, returns the next batch of the results.

listTargets_maxResults :: Lens' ListTargets (Maybe Natural) Source #

A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.

Destructuring the Response

data ListTargetsResponse Source #

See: newListTargetsResponse smart constructor.

Constructors

ListTargetsResponse' 

Fields

Instances

Instances details
Eq ListTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Show ListTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Generic ListTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Associated Types

type Rep ListTargetsResponse :: Type -> Type #

NFData ListTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

Methods

rnf :: ListTargetsResponse -> () #

type Rep ListTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListTargets

type Rep ListTargetsResponse = D1 ('MetaData "ListTargetsResponse" "Amazonka.CodeStarNotifications.ListTargets" "libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications" 'False) (C1 ('MetaCons "ListTargetsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TargetSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTargetsResponse Source #

Create a value of ListTargetsResponse 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:nextToken:ListTargets', listTargetsResponse_nextToken - An enumeration token that can be used in a request to return the next batch of results.

$sel:targets:ListTargetsResponse', listTargetsResponse_targets - The list of notification rule targets.

$sel:httpStatus:ListTargetsResponse', listTargetsResponse_httpStatus - The response's http status code.

Response Lenses

listTargetsResponse_nextToken :: Lens' ListTargetsResponse (Maybe Text) Source #

An enumeration token that can be used in a request to return the next batch of results.

listTargetsResponse_targets :: Lens' ListTargetsResponse (Maybe [TargetSummary]) Source #

The list of notification rule targets.