list_rule_names_by_target
¶
list_rule_names_by_target(
target_arn: TargetArn,
*,
config_overrides: Optional[CloudWatchEventsClientConfig] = None,
event_bus_name: Optional[EventBusNameOrArn] = None,
next_token: Optional[NextToken] = None,
limit: Optional[LimitMax100] = None,
) -> ListRuleNamesByTargetResponse
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.
Parameters:
-
target_arn(TargetArn) –The Amazon Resource Name (ARN) of the target resource.
-
event_bus_name(Optional[EventBusNameOrArn], default:None) –The name or ARN of the event bus to list rules for. If you omit this, the default event bus is used.
-
next_token(Optional[NextToken], default:None) –The token returned by a previous call to retrieve the next set of results.
-
limit(Optional[LimitMax100], default:None) –The maximum number of results to return.
Raises:
-
InternalException–This exception occurs due to unexpected causes.
-
ResourceNotFoundException–An entity that you specified does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_events/_services/cloud_watch_events.py
2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 | |