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

Description

Returns a list of the notification rules for an AWS account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListNotificationRules Source #

See: newListNotificationRules smart constructor.

Constructors

ListNotificationRules' 

Fields

  • filters :: Maybe [ListNotificationRulesFilter]

    The filters to use to return information by service or resource type. For valid values, see ListNotificationRulesFilter.

    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 ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Read ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Show ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Generic ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Associated Types

type Rep ListNotificationRules :: Type -> Type #

NFData ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Methods

rnf :: ListNotificationRules -> () #

Hashable ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

ToJSON ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

AWSPager ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

AWSRequest ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Associated Types

type AWSResponse ListNotificationRules #

ToHeaders ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

ToPath ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

ToQuery ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

type Rep ListNotificationRules Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

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

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

newListNotificationRules :: ListNotificationRules Source #

Create a value of ListNotificationRules 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:ListNotificationRules', listNotificationRules_filters - The filters to use to return information by service or resource type. For valid values, see ListNotificationRulesFilter.

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:ListNotificationRules', listNotificationRules_nextToken - An enumeration token that, when provided in a request, returns the next batch of the results.

$sel:maxResults:ListNotificationRules', listNotificationRules_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

listNotificationRules_filters :: Lens' ListNotificationRules (Maybe [ListNotificationRulesFilter]) Source #

The filters to use to return information by service or resource type. For valid values, see ListNotificationRulesFilter.

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.

listNotificationRules_nextToken :: Lens' ListNotificationRules (Maybe Text) Source #

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

listNotificationRules_maxResults :: Lens' ListNotificationRules (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 ListNotificationRulesResponse Source #

See: newListNotificationRulesResponse smart constructor.

Constructors

ListNotificationRulesResponse' 

Fields

Instances

Instances details
Eq ListNotificationRulesResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Read ListNotificationRulesResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Show ListNotificationRulesResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Generic ListNotificationRulesResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

Associated Types

type Rep ListNotificationRulesResponse :: Type -> Type #

NFData ListNotificationRulesResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

type Rep ListNotificationRulesResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.ListNotificationRules

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

newListNotificationRulesResponse Source #

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

$sel:notificationRules:ListNotificationRulesResponse', listNotificationRulesResponse_notificationRules - The list of notification rules for the AWS account, by Amazon Resource Name (ARN) and ID.

$sel:httpStatus:ListNotificationRulesResponse', listNotificationRulesResponse_httpStatus - The response's http status code.

Response Lenses

listNotificationRulesResponse_nextToken :: Lens' ListNotificationRulesResponse (Maybe Text) Source #

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

listNotificationRulesResponse_notificationRules :: Lens' ListNotificationRulesResponse (Maybe [NotificationRuleSummary]) Source #

The list of notification rules for the AWS account, by Amazon Resource Name (ARN) and ID.