list_rule_names_by_target

EventBridge.Client.list_rule_names_by_target(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.list_rule_names_by_target(
    TargetArn='string',
    EventBusName='string',
    NextToken='string',
    Limit=123
)
Parameters
  • TargetArn (string) --

    [REQUIRED]

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

  • EventBusName (string) -- The name or ARN of the event bus to list rules for. If you omit this, the default event bus is used.
  • NextToken (string) -- The token returned by a previous call to retrieve the next set of results.
  • Limit (integer) -- The maximum number of results to return.
Return type

dict

Returns

Response Syntax

{
    'RuleNames': [
        'string',
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • RuleNames (list) --

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

      • (string) --
    • NextToken (string) --

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

Exceptions

  • EventBridge.Client.exceptions.InternalException
  • EventBridge.Client.exceptions.ResourceNotFoundException