libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
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.CloudWatchEvents.ListTargetsByRule

Description

Lists the targets assigned to the specified rule.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTargetsByRule Source #

See: newListTargetsByRule smart constructor.

Constructors

ListTargetsByRule' 

Fields

  • nextToken :: Maybe Text

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

  • eventBusName :: Maybe Text

    The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

  • limit :: Maybe Natural

    The maximum number of results to return.

  • rule :: Text

    The name of the rule.

Instances

Instances details
Eq ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Read ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Show ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Generic ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Associated Types

type Rep ListTargetsByRule :: Type -> Type #

NFData ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Methods

rnf :: ListTargetsByRule -> () #

Hashable ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

ToJSON ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

AWSPager ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

AWSRequest ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Associated Types

type AWSResponse ListTargetsByRule #

ToHeaders ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

ToPath ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

ToQuery ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

type Rep ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

type Rep ListTargetsByRule = D1 ('MetaData "ListTargetsByRule" "Amazonka.CloudWatchEvents.ListTargetsByRule" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "ListTargetsByRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventBusName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "rule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

newListTargetsByRule Source #

Create a value of ListTargetsByRule 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:ListTargetsByRule', listTargetsByRule_nextToken - The token returned by a previous call to retrieve the next set of results.

$sel:eventBusName:ListTargetsByRule', listTargetsByRule_eventBusName - The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

$sel:limit:ListTargetsByRule', listTargetsByRule_limit - The maximum number of results to return.

$sel:rule:ListTargetsByRule', listTargetsByRule_rule - The name of the rule.

Request Lenses

listTargetsByRule_nextToken :: Lens' ListTargetsByRule (Maybe Text) Source #

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

listTargetsByRule_eventBusName :: Lens' ListTargetsByRule (Maybe Text) Source #

The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

listTargetsByRule_limit :: Lens' ListTargetsByRule (Maybe Natural) Source #

The maximum number of results to return.

Destructuring the Response

data ListTargetsByRuleResponse Source #

See: newListTargetsByRuleResponse smart constructor.

Constructors

ListTargetsByRuleResponse' 

Fields

Instances

Instances details
Eq ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Read ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Show ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Generic ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Associated Types

type Rep ListTargetsByRuleResponse :: Type -> Type #

NFData ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

type Rep ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

type Rep ListTargetsByRuleResponse = D1 ('MetaData "ListTargetsByRuleResponse" "Amazonka.CloudWatchEvents.ListTargetsByRule" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "ListTargetsByRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Target))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTargetsByRuleResponse Source #

Create a value of ListTargetsByRuleResponse 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:ListTargetsByRule', listTargetsByRuleResponse_nextToken - Indicates whether there are additional results to retrieve. If there are no more results, the value is null.

$sel:targets:ListTargetsByRuleResponse', listTargetsByRuleResponse_targets - The targets assigned to the rule.

$sel:httpStatus:ListTargetsByRuleResponse', listTargetsByRuleResponse_httpStatus - The response's http status code.

Response Lenses

listTargetsByRuleResponse_nextToken :: Lens' ListTargetsByRuleResponse (Maybe Text) Source #

Indicates whether there are additional results to retrieve. If there are no more results, the value is null.