list_subscribers
¶
list_subscribers(
*,
config_overrides: Optional[EventBridgeV2ClientConfig] = None,
event_bus_arn: Optional[EventBusArn] = None,
name_prefix: Optional[SubscriberName] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListSubscribersResponse
Lists subscribers as summaries. By default the list spans the subscribers the caller account owns across all buses; set EventBusArn to scope it to one bus. Use DescribeSubscriber to retrieve full configuration.
Parameters:
-
event_bus_arn(Optional[EventBusArn], default:None) –The Amazon Resource Name (ARN) that uniquely identifies an event bus.
-
name_prefix(Optional[SubscriberName], default:None) –Name of a subscriber. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.
-
next_token(Optional[NextToken], default:None) –Opaque pagination token returned by a List operation. Pass it back in the next request to retrieve the next page of results.
-
max_results(Optional[MaxResults], default:None) –Maximum number of results to return in one page of a List operation.
Raises:
-
AccessDeniedException–The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
-
InternalException–The request failed because of an internal service error. Retry the request.
-
InvalidInputException–A request parameter is missing or not valid.
-
ThrottlingException–The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
-
ResourceNotFoundException–The resource does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridgev2/_services/event_bridge_v2.py
1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 | |