list_event_sources
¶
list_event_sources(
*,
config_overrides: Optional[EventBridgeV2ClientConfig] = None,
event_bus_arn: Optional[EventBusArn] = None,
name_prefix: Optional[EventSourceName] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListEventSourcesResponse
Lists EventSources as summaries. By default the list spans the EventSources the caller account owns; set EventBusArn to scope it to one bus. Use DescribeEventSource 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[EventSourceName], default:None) –EventSource name. First character alphanumeric; the rest may add '.', '-', '_'. Names may not begin with the reserved "aws." prefix. The grammar matches the ARN local-name segment in EventSourceArn (event-sourcev2/<type>/<name>/<id>), mirroring EventBusName, so a name the ARN cannot represent cannot be created.
-
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
1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 | |