list_source_associations
¶
list_source_associations(
*,
config_overrides: Optional[RAMClientConfig] = None,
resource_share_arns: Optional[ResourceShareArnList] = None,
source_id: Optional[String] = None,
source_type: Optional[String] = None,
association_status: Optional[ResourceShareAssociationStatus] = None,
next_token: Optional[String] = None,
max_results: Optional[MaxResults] = None,
) -> ListSourceAssociationsResponse
Lists source associations for resource shares. Source associations control which sources can be used with service principals in resource shares. This operation provides visibility into source associations for resource share owners.
You can filter the results by resource share Amazon Resource Name (ARN), source ID, source type, or association status. We recommend using pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
resource_share_arns(Optional[ResourceShareArnList], default:None) –The Amazon Resource Names (ARNs) of the resource shares for which you want to retrieve source associations.
-
source_id(Optional[String], default:None) –The identifier of the source for which you want to retrieve associations. This can be an account ID, Amazon Resource Name (ARN), organization ID, or organization path.
-
source_type(Optional[String], default:None) –The type of source for which you want to retrieve associations.
-
association_status(Optional[ResourceShareAssociationStatus], default:None) –The status of the source associations that you want to retrieve.
-
next_token(Optional[String], default:None) –The pagination token that indicates the next set of results to retrieve.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.
Raises:
-
InvalidNextTokenException–The operation failed because the specified value for
NextTokenisn't valid. You must specify a value you received in theNextTokenresponse of a previous call to this operation. -
InvalidParameterException–The operation failed because a parameter you specified isn't valid.
-
MalformedArnException–The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
-
ServerInternalException–The operation failed because the service could not respond to the request due to an internal problem. Try again later.
-
ServiceUnavailableException–The operation failed because the service isn't available. Try again later.
-
UnknownResourceException–The operation failed because a specified resource couldn't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ram/_services/ram.py
2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 | |