list_sessions
async
¶
list_sessions(
approval_team_arn: ApprovalTeamArn,
*,
config_overrides: Optional[AsyncMPAClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[Token] = None,
filters: Optional[Filters] = None,
) -> ListSessionsResponse
Returns a list of approval sessions. For more information, see Session in the Multi-party approval User Guide.
Parameters:
-
approval_team_arn(ApprovalTeamArn) –Amazon Resource Name (ARN) for the approval team.
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that you can retrieve the remaining results. -
next_token(Optional[Token], default:None) –If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a next call to the operation to get more output. You can repeat this until theNextTokenresponse element returnsnull. -
filters(Optional[Filters], default:None) –An array of
Filterobjects. Contains the filter to apply when listing sessions.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. Check your permissions, and try again.
-
InternalServerException–The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.
-
ResourceNotFoundException–The specified resource doesn't exist. Check the resource ID, and try again.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mpa/_services/async_mpa.py
1573 1574 1575 1576 1577 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 | |