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
2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 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 | |