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

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

  • nextToken :: Maybe Text

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

  • rule :: Text

    The name of the rule.

Instances

Instances details
ToJSON ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.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

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 #

Generic ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Associated Types

type Rep ListTargetsByRule :: Type -> Type #

Read ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Show ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

NFData ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Methods

rnf :: ListTargetsByRule -> () #

Eq ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Hashable ListTargetsByRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

type AWSResponse 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" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "ListTargetsByRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eventBusName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:

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.

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

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

Request Lenses

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.

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

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

Destructuring the Response

data ListTargetsByRuleResponse Source #

See: newListTargetsByRuleResponse smart constructor.

Constructors

ListTargetsByRuleResponse' 

Fields

Instances

Instances details
Generic ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Associated Types

type Rep ListTargetsByRuleResponse :: Type -> Type #

Read ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Show ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

NFData ListTargetsByRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListTargetsByRule

Eq 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" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" '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:

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.