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,
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. -
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
1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 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 | |