create_approval_team
¶
create_approval_team(
approval_strategy: ApprovalStrategy,
approvers: ApprovalTeamRequestApprovers,
description: Description,
policies: PoliciesReferences,
name: ApprovalTeamName,
*,
config_overrides: Optional[MPAClientConfig] = None,
client_token: Optional[Token] = None,
tags: Optional[Tags] = None,
) -> CreateApprovalTeamResponse
Creates a new approval team. For more information, see Approval team in the Multi-party approval User Guide.
Parameters:
-
client_token(Optional[Token], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.
What is idempotency?
When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.
Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
-
approval_strategy(ApprovalStrategy) –An
ApprovalStrategyobject. Contains details for how the team grants approval. -
approvers(ApprovalTeamRequestApprovers) –An array of
ApprovalTeamRequesterApproversobjects. Contains details for the approvers in the team. -
description(Description) –Description for the team.
-
policies(PoliciesReferences) –An array of
PolicyReferenceobjects. Contains a list of policies that define the permissions for team resources. -
name(ApprovalTeamName) –Name of the team.
-
tags(Optional[Tags], default:None) –Tags you want to attach to the team.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. Check your permissions, and try again.
-
ConflictException–The request cannot be completed because it conflicts with the current state of a resource.
-
InternalServerException–The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.
-
ServiceQuotaExceededException–The request exceeds the service quota for your account. Request a quota increase or reduce your request size.
-
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/mpa.py
748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 | |