create_agreement_request
async
¶
create_agreement_request(
intent: Intent,
requested_terms: RequestedTermList,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
client_token: Optional[ClientToken] = None,
source_agreement_identifier: Optional[ResourceId] = None,
agreement_proposal_identifier: Optional[AgreementProposalId] = None,
tax_configuration: Optional[TaxConfiguration] = 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.
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/async_marketplace_agreement.py
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 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 | |