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

Description

Lists the rules for the specified target. You can see which of the rules in Amazon EventBridge can invoke a specific target in your account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListRuleNamesByTarget Source #

See: newListRuleNamesByTarget smart constructor.

Constructors

ListRuleNamesByTarget' 

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 to list rules for. If you omit this, the default event bus is used.

  • limit :: Maybe Natural

    The maximum number of results to return.

  • targetArn :: Text

    The Amazon Resource Name (ARN) of the target resource.

Instances

Instances details
Eq ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Read ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Show ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Generic ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Associated Types

type Rep ListRuleNamesByTarget :: Type -> Type #

NFData ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Methods

rnf :: ListRuleNamesByTarget -> () #

Hashable ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

ToJSON ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

AWSPager ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

AWSRequest ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Associated Types

type AWSResponse ListRuleNamesByTarget #

ToHeaders ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

ToPath ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

ToQuery ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

type Rep ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

type Rep ListRuleNamesByTarget = D1 ('MetaData "ListRuleNamesByTarget" "Amazonka.CloudWatchEvents.ListRuleNamesByTarget" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "ListRuleNamesByTarget'" '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 "targetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListRuleNamesByTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

newListRuleNamesByTarget Source #

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

$sel:eventBusName:ListRuleNamesByTarget', listRuleNamesByTarget_eventBusName - The name or ARN of the event bus to list rules for. If you omit this, the default event bus is used.

$sel:limit:ListRuleNamesByTarget', listRuleNamesByTarget_limit - The maximum number of results to return.

$sel:targetArn:ListRuleNamesByTarget', listRuleNamesByTarget_targetArn - The Amazon Resource Name (ARN) of the target resource.

Request Lenses

listRuleNamesByTarget_nextToken :: Lens' ListRuleNamesByTarget (Maybe Text) Source #

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

listRuleNamesByTarget_eventBusName :: Lens' ListRuleNamesByTarget (Maybe Text) Source #

The name or ARN of the event bus to list rules for. If you omit this, the default event bus is used.

listRuleNamesByTarget_limit :: Lens' ListRuleNamesByTarget (Maybe Natural) Source #

The maximum number of results to return.

listRuleNamesByTarget_targetArn :: Lens' ListRuleNamesByTarget Text Source #

The Amazon Resource Name (ARN) of the target resource.

Destructuring the Response

data ListRuleNamesByTargetResponse Source #

See: newListRuleNamesByTargetResponse smart constructor.

Constructors

ListRuleNamesByTargetResponse' 

Fields

  • ruleNames :: Maybe [Text]

    The names of the rules that can invoke the given target.

  • nextToken :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListRuleNamesByTargetResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Read ListRuleNamesByTargetResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Show ListRuleNamesByTargetResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Generic ListRuleNamesByTargetResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

Associated Types

type Rep ListRuleNamesByTargetResponse :: Type -> Type #

NFData ListRuleNamesByTargetResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

type Rep ListRuleNamesByTargetResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListRuleNamesByTarget

type Rep ListRuleNamesByTargetResponse = D1 ('MetaData "ListRuleNamesByTargetResponse" "Amazonka.CloudWatchEvents.ListRuleNamesByTarget" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "ListRuleNamesByTargetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ruleNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListRuleNamesByTargetResponse Source #

Create a value of ListRuleNamesByTargetResponse 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:ruleNames:ListRuleNamesByTargetResponse', listRuleNamesByTargetResponse_ruleNames - The names of the rules that can invoke the given target.

$sel:nextToken:ListRuleNamesByTarget', listRuleNamesByTargetResponse_nextToken - Indicates whether there are additional results to retrieve. If there are no more results, the value is null.

$sel:httpStatus:ListRuleNamesByTargetResponse', listRuleNamesByTargetResponse_httpStatus - The response's http status code.

Response Lenses

listRuleNamesByTargetResponse_ruleNames :: Lens' ListRuleNamesByTargetResponse (Maybe [Text]) Source #

The names of the rules that can invoke the given target.

listRuleNamesByTargetResponse_nextToken :: Lens' ListRuleNamesByTargetResponse (Maybe Text) Source #

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