List Rules
eventbridge_list_rules | R Documentation |
Lists your Amazon EventBridge rules¶
Description¶
Lists your Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match to the rule names.
The maximum number of results per page for requests is 100.
ListRules does not list the targets of a rule. To see the targets
associated with a rule, use list_targets_by_rule
.
Usage¶
Arguments¶
NamePrefix
The prefix matching the rule name.
EventBusName
The name or ARN of the event bus to list the rules for. If you omit this, the default event bus is used.
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of
nextToken
is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidToken
error.Limit
The maximum number of results to return.
Value¶
A list with the following syntax:
list(
Rules = list(
list(
Name = "string",
Arn = "string",
EventPattern = "string",
State = "ENABLED"|"DISABLED"|"ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS",
Description = "string",
ScheduleExpression = "string",
RoleArn = "string",
ManagedBy = "string",
EventBusName = "string"
)
),
NextToken = "string"
)