associate_contract
async
¶
associate_contract(
contract_arn: ArnString,
contract_document_id: ContractDocumentId,
*,
config_overrides: Optional[AsyncBillingClientConfig] = None,
) -> AssociateContractResponse
Private Pricing contracts let eligible payer accounts manage private pricing agreements with Amazon Web Services. This operation associates a private pricing contract with the caller's Amazon Web Services account. The caller must be a payer (management) account listed on the contract. This operation is idempotent, so retrying a request that already succeeded is safe.
Parameters:
-
contract_arn(ArnString) –The Amazon Resource Name (ARN) of the contract to associate with your account.
-
contract_document_id(ContractDocumentId) –The contract ID from the contract document. It can be found in the top right corner of your contract's pages. This value confirms that you have access to the contract you are associating.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
InternalServerException–The request processing failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The specified ARN in the request doesn't exist.
-
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.
Examples:
Invoke AssociateContract
>>> await client.associate_contract(contract_arn='arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333', contract_document_id='CC OTH XXXXXXXX XXXX TR')