list_memberships
¶
list_memberships(
principal_id: IdentityCenterPrincipalId,
*,
config_overrides: Optional[deadlineClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
identity_store_id: Optional[IdentityStoreId] = None,
identity_center_region: Optional[Region] = None,
resource_types: Optional[MembershipResourceTypes] = None,
) -> ListMembershipsResponse
Lists the Deadline Cloud resource memberships associated with a specified IAM Identity Center principal, optionally filtered by the requested resource types.
Parameters:
-
next_token(Optional[NextToken], default:None) –The token for the next set of results, or
nullto start from the beginning. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to return. Use this parameter with
NextTokento get results as a set of sequential pages. -
principal_id(IdentityCenterPrincipalId) –The ID of the IAM Identity Center principal whose Deadline Cloud resource memberships you want to list.
-
identity_store_id(Optional[IdentityStoreId], default:None) –The identity store ID that contains the principal. This parameter is required for callers that do not use a monitor session.
-
identity_center_region(Optional[Region], default:None) –The Region of the IAM Identity Center instance. If not provided, the service defaults to the Amazon Web Services Region in which you make the request.
-
resource_types(Optional[MembershipResourceTypes], default:None) –The resource types to include when listing the principal's memberships. If not specified, memberships for all supported resource types are returned.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List memberships using a cross-region identity store
>>> client.list_memberships(principal_id='12345678-1234-1234-1234-123456789abc', identity_store_id='d-1234567890', identity_center_region='us-east-1', resource_types=['QUEUE', 'JOB'])
List a Monitor user's memberships of every resource type
Source code in docs_src/capo_deadline/_services/deadline.py
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 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 | |