create_agreement_request
¶
create_agreement_request(
intent: Intent,
requested_terms: RequestedTermList,
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = None,
client_token: Optional[ClientToken] = None,
source_agreement_identifier: Optional[ResourceId] = None,
agreement_proposal_identifier: Optional[AgreementProposalId] = None,
tax_configuration: Optional[TaxConfiguration] = None,
acceptor_contact: Optional[AcceptorContact] = None,
) -> CreateAgreementRequestOutput
Creates an agreement request that acts as a quote for the terms you want to accept. The agreement request captures the requested terms, calculates charges, and returns a summary. Use AcceptAgreementRequest with the returned agreementRequestId to finalize the agreement.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
intent(Intent) –The purpose and desired outcome of the agreement request. This is a required parameter that determines how the agreement request is processed.
-
NEW– Creates a new agreement for terms in the request. -
AMEND– Modifies an existing agreement with terms that are accepted in the request. -
REPLACE– Creates a new agreement with accepted terms and replaces the existing agreement.
-
-
requested_terms(RequestedTermList) –A list of terms that define what is being accepted as part of the agreement. Some terms require configuration.
-
source_agreement_identifier(Optional[ResourceId], default:None) –The agreement's identifier that the request acts upon.
This parameter is required for all non-
NEWintents (i.e.,AMENDorREPLACE). Don't provide this parameter if the intent isNEW. -
agreement_proposal_identifier(Optional[AgreementProposalId], default:None) –The agreement proposal signed by the proposer. The proposal includes the requested resources and the terms that outline an agreement outcome.
This parameter is required if the intent is not
AMEND. -
tax_configuration(Optional[TaxConfiguration], default:None) –Configuration for tax estimation in the agreement request response.
-
acceptor_contact(Optional[AcceptorContact], default:None) –The contact information of the acceptor.
Don't provide this parameter if the intent is
AMEND.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–Request was denied due to a resource conflict.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ServiceQuotaExceededException–Request exceeded the maximum allowed limit (quota) for a specific resource or API operation.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_marketplace_agreement/_services/marketplace_agreement.py
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 | |