MultipartyApproval / Client / get_session
get_session¶
- MultipartyApproval.Client.get_session(**kwargs)¶
- Returns details for an approval session. For more information, see Session in the Multi-party approval User Guide. - See also: AWS API Documentation - Request Syntax- response = client.get_session( SessionArn='string' ) - Parameters:
- SessionArn (string) – - [REQUIRED] - Amazon Resource Name (ARN) for the session. 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'SessionArn': 'string', 'ApprovalTeamArn': 'string', 'ApprovalTeamName': 'string', 'ProtectedResourceArn': 'string', 'ApprovalStrategy': { 'MofN': { 'MinApprovalsRequired': 123 } }, 'NumberOfApprovers': 123, 'InitiationTime': datetime(2015, 1, 1), 'ExpirationTime': datetime(2015, 1, 1), 'CompletionTime': datetime(2015, 1, 1), 'Description': 'string', 'Metadata': { 'string': 'string' }, 'Status': 'PENDING'|'CANCELLED'|'APPROVED'|'FAILED'|'CREATING', 'StatusCode': 'REJECTED'|'EXPIRED'|'CONFIGURATION_CHANGED', 'StatusMessage': 'string', 'ExecutionStatus': 'EXECUTED'|'FAILED'|'PENDING', 'ActionName': 'string', 'RequesterServicePrincipal': 'string', 'RequesterPrincipalArn': 'string', 'RequesterAccountId': 'string', 'RequesterRegion': 'string', 'RequesterComment': 'string', 'ActionCompletionStrategy': 'AUTO_COMPLETION_UPON_APPROVAL', 'ApproverResponses': [ { 'ApproverId': 'string', 'IdentitySourceArn': 'string', 'IdentityId': 'string', 'Response': 'APPROVED'|'REJECTED'|'NO_RESPONSE', 'ResponseTime': datetime(2015, 1, 1) }, ] } - Response Structure- (dict) – - SessionArn (string) – - Amazon Resource Name (ARN) for the session. 
- ApprovalTeamArn (string) – - Amazon Resource Name (ARN) for the approval team. 
- ApprovalTeamName (string) – - Name of the approval team. 
- ProtectedResourceArn (string) – - Amazon Resource Name (ARN) for the protected operation. 
- ApprovalStrategy (dict) – - An - ApprovalStrategyResponseobject. Contains details for how the 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 set- SDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure of- SDK_UNKNOWN_MEMBERis 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 session. 
- InitiationTime (datetime) – - Timestamp when the session was initiated. 
- ExpirationTime (datetime) – - Timestamp when the session will expire. 
- CompletionTime (datetime) – - Timestamp when the session completed. 
- Description (string) – - Description for the session. 
- Metadata (dict) – - Metadata for the session. - (string) – - (string) – 
 
 
- Status (string) – - Status for the session. For example, if the team has approved the requested operation. 
- StatusCode (string) – - Status code of the session. 
- StatusMessage (string) – - Message describing the status for session. 
- ExecutionStatus (string) – - Status for the protected operation. For example, if the operation is - PENDING.
- ActionName (string) – - Name of the protected operation. 
- RequesterServicePrincipal (string) – - Service principal for the service associated with the protected operation. 
- RequesterPrincipalArn (string) – - IAM principal that made the operation request. 
- RequesterAccountId (string) – - ID for the account that made the operation request. 
- RequesterRegion (string) – - Amazon Web Services Region where the operation request originated. 
- RequesterComment (string) – - Message from the account that made the operation request 
- ActionCompletionStrategy (string) – - Strategy for executing the protected operation. - AUTO_COMPLETION_UPON_APPROVALmeans the operation is automatically executed using the requester’s permissions, if approved.
- ApproverResponses (list) – - An array of - GetSessionResponseApproverResponseobjects. Contains details for approver responses in the session.- (dict) – - Contains details for an approver response in an approval session. - ApproverId (string) – - ID for the approver. 
- IdentitySourceArn (string) – - Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers. 
- IdentityId (string) – - ID for the identity source. The identity source manages the user authentication for approvers. 
- Response (string) – - Response to the operation request. 
- ResponseTime (datetime) – - Timestamp when a approver responded to the operation request. 
 
 
 
 
 - Exceptions