MultipartyApproval / Client / list_approval_teams
list_approval_teams¶
- MultipartyApproval.Client.list_approval_teams(**kwargs)¶
Returns a list of approval teams.
See also: AWS API Documentation
Request Syntax
response = client.list_approval_teams( MaxResults=123, NextToken='string' )
- Parameters:
MaxResults (integer) – The maximum number of items to return in the response. If more results exist than the specified
MaxResults
value, a token is included in the response so that you can retrieve the remaining results.NextToken (string) – If present, indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a next call to the operation to get more output. You can repeat this until theNextToken
response element returnsnull
.
- Return type:
dict
- Returns:
Response Syntax
{ 'NextToken': 'string', 'ApprovalTeams': [ { 'CreationTime': datetime(2015, 1, 1), 'ApprovalStrategy': { 'MofN': { 'MinApprovalsRequired': 123 } }, 'NumberOfApprovers': 123, 'Arn': 'string', 'Name': 'string', 'Description': 'string', 'Status': 'ACTIVE'|'INACTIVE'|'DELETING'|'PENDING', 'StatusCode': 'VALIDATING'|'PENDING_ACTIVATION'|'FAILED_VALIDATION'|'FAILED_ACTIVATION'|'UPDATE_PENDING_APPROVAL'|'UPDATE_PENDING_ACTIVATION'|'UPDATE_FAILED_APPROVAL'|'UPDATE_FAILED_ACTIVATION'|'UPDATE_FAILED_VALIDATION'|'DELETE_PENDING_APPROVAL'|'DELETE_FAILED_APPROVAL'|'DELETE_FAILED_VALIDATION', 'StatusMessage': 'string' }, ] }
Response Structure
(dict) –
NextToken (string) –
If present, indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a next call to the operation to get more output. You can repeat this until theNextToken
response element returnsnull
.ApprovalTeams (list) –
An array of
ListApprovalTeamsResponseApprovalTeam
objects. Contains details for approval teams.(dict) –
Contains details for an approval team
CreationTime (datetime) –
Timestamp when the team was created.
ApprovalStrategy (dict) –
An
ApprovalStrategyResponse
object. Contains details for how an approval team grants approval.Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
MofN
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
MofN (dict) –
Minimum number of approvals (M) required for a total number of approvers (N).
MinApprovalsRequired (integer) –
Minimum number of approvals (M) required for a total number of approvers (N).
NumberOfApprovers (integer) –
Total number of approvers in the team.
Arn (string) –
Amazon Resource Name (ARN) for the team.
Name (string) –
Name of the team.
Description (string) –
Description for the team.
Status (string) –
Status for the team. For more information, see Team health in the Multi-party approval User Guide.
StatusCode (string) –
Status code for the team. For more information, see Team health in the Multi-party approval User Guide.
StatusMessage (string) –
Message describing the status for the team.
Exceptions