list_source_associations
async
¶
list_source_associations(
*,
config_overrides: Optional[AsyncRAMClientConfig] = 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/async_ram.py
2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 | |