list_permission_associations
¶
list_permission_associations(
*,
config_overrides: Optional[RAMClientConfig] = None,
permission_arn: Optional[String] = None,
permission_version: Optional[Integer] = None,
association_status: Optional[ResourceShareAssociationStatus] = None,
resource_type: Optional[String] = None,
feature_set: Optional[PermissionFeatureSet] = None,
default_version: Optional[Boolean] = None,
resource_owner: Optional[ResourceOwner] = None,
resource_share_arn: Optional[String] = None,
next_token: Optional[String] = None,
max_results: Optional[MaxResults] = None,
) -> ListPermissionAssociationsResponse
Lists information about the managed permission and its associations to any resource shares that use this managed permission. This lets you see which resource shares use which versions of the specified managed permission.
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:
-
permission_arn(Optional[String], default:None) –Specifies the Amazon Resource Name (ARN) of the managed permission.
-
permission_version(Optional[Integer], default:None) –Specifies that you want to list only those associations with resource shares that use this version of the managed permission. If you don't provide a value for this parameter, then the operation returns information about associations with resource shares that use any version of the managed permission.
-
association_status(Optional[ResourceShareAssociationStatus], default:None) –Specifies that you want to list only those associations with resource shares that match this status.
-
resource_type(Optional[String], default:None) –Specifies that you want to list only those associations with resource shares that include at least one resource of this resource type.
-
feature_set(Optional[PermissionFeatureSet], default:None) –Specifies that you want to list only those associations with resource shares that have a
featureSetwith this value. -
default_version(Optional[Boolean], default:None) –When
true, specifies that you want to list only those associations with resource shares that use the default version of the specified managed permission.When
false(the default value), lists associations with resource shares that use any version of the specified managed permission. -
resource_owner(Optional[ResourceOwner], default:None) –Specifies that you want to list only those associations with resource shares owned by a specific entity:
-
SELF– returns only associations with resource shares owned by the calling account. -
OTHER-ACCOUNTS– returns only associations with resource shares owned by other Amazon Web Services accounts.
If you don't specify this parameter, the default is
SELF. -
-
resource_share_arn(Optional[String], default:None) –Specifies the Amazon Resource Name (ARN) of the resource share for which you want to retrieve permission associations.
-
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.
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ram/_services/ram.py
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 | |