list_pending_invitation_resources
async
¶
list_pending_invitation_resources(
resource_share_invitation_arn: String,
*,
config_overrides: Optional[AsyncRAMClientConfig] = None,
next_token: Optional[String] = None,
max_results: Optional[MaxResults] = None,
resource_region_scope: Optional[ResourceRegionScopeFilter] = None,
) -> ListPendingInvitationResourcesResponse
Lists the resources in a resource share that is shared with you but for which the invitation is still PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't expired.
Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.
Parameters:
-
resource_share_invitation_arn(String) –Specifies the Amazon Resource Name (ARN) of the invitation. You can use GetResourceShareInvitations to find the ARN of the invitation.
-
next_token(Optional[String], default:None) –Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextTokenresponse to request the next page of results. -
max_results(Optional[MaxResults], default:None) –Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextTokenresponse element is returned with a value (not null). Include the specified value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextTokenafter every operation to ensure that you receive all of the results. -
resource_region_scope(Optional[ResourceRegionScopeFilter], default:None) –Specifies that you want the results to include only resources that have the specified scope.
-
ALL– the results include both global and regional resources or resource types. -
GLOBAL– the results include only global resources or resource types. -
REGIONAL– the results include only regional resources or resource types.
The default value is
ALL. -
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.
-
MissingRequiredParameterException–The operation failed because a required input parameter is missing.
-
ResourceShareInvitationAlreadyRejectedException–The operation failed because the specified invitation was already rejected.
-
ResourceShareInvitationArnNotFoundException–The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.
-
ResourceShareInvitationExpiredException–The operation failed because the specified invitation is past its expiration date and time.
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ram/_services/async_ram.py
1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 | |