create_contractual_investment_attestation
¶
create_contractual_investment_attestation(
contract_arn: ArnString,
investment_summary_id: IdentifierString,
investment_id: IdentifierString,
contract_document_id: ContractDocumentId,
approver_details: ApproverDetails,
attestation_details: AttestationDetails,
*,
config_overrides: Optional[BillingClientConfig] = None,
investment_disbursed_at: Optional[datetime] = None,
additional_recipients: Optional[AdditionalRecipients] = None,
client_token: Optional[AttestationClientToken] = None,
) -> CreateContractualInvestmentAttestationResponse
Creates an attestation that claims an investment award for a completed milestone or outcome within a private pricing contract. Supply a clientToken to make the request idempotent so a safe retry does not create a duplicate attestation. This operation starts an asynchronous review and returns an attestationId while the attestation is pending.
Parameters:
-
contract_arn(ArnString) –The Amazon Resource Name (ARN) of the contract that contains the investment being attested.
-
investment_summary_id(IdentifierString) –The identifier of the investment summary being attested. This is the parent to the investmentId.
-
investment_id(IdentifierString) –The identifier of the investment (outcome) being attested.
-
contract_document_id(ContractDocumentId) –The contract ID from the contract document, located in the top-right corner of the private pricing contract pages. This value confirms that you have access to the contract.
-
approver_details(ApproverDetails) –The details of the executive who authorized the attestation, under the terms of the private pricing contract. The executive receives a click-to-accept email to confirm the attestation.
-
investment_disbursed_at(Optional[datetime], default:None) –The date on which the investment is disbursed to the investment accounts. The disbursement date is subject to review timelines.
-
attestation_details(AttestationDetails) –The details of the attestation, including the value being claimed and how the resulting investment is distributed across investment accounts.
-
additional_recipients(Optional[AdditionalRecipients], default:None) –The email addresses to copy as viewers on the executive approval request.
-
client_token(Optional[AttestationClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry completes without performing any further actions.
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 CreateContractualInvestmentAttestation with a direct amount
>>> client.create_contractual_investment_attestation(contract_arn='arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333', investment_summary_id='Example-Investment-Summary-Id', investment_id='Investment-Id', contract_document_id='CC OTH XXXXXXXX XXXX TR', approver_details={'name': 'First-Name Last-Name', 'title': 'Title', 'email': '[email protected]'}, attestation_details={'attestationValue': {'attestationAmount': {'currencyCode': 'USD', 'currencyAmount': '1.00'}}, 'investmentDistributions': [{'accountId': '123456789012', 'investmentAmount': {'currencyCode': 'USD', 'currencyAmount': '1.00'}}]}, investment_disbursed_at=1199923200, additional_recipients=[{'email': '[email protected]'}], client_token='c0ffee00-1234-4abc-9def-0123456789ab')
Invoke CreateContractualInvestmentAttestation with a flat rate multiplier
>>> client.create_contractual_investment_attestation(contract_arn='arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333', investment_summary_id='Example-Investment-Summary-Id', investment_id='Investment-Id', contract_document_id='CC OTH XXXXXXXX XXXX TR', approver_details={'name': 'First-Name Last-Name', 'title': 'Title', 'email': '[email protected]'}, attestation_details={'attestationValue': {'attestationQuantities': [{'attestationVolume': '3', 'attestationUnit': 'Example attestation unit'}]}, 'investmentDistributions': [{'accountId': '123456789012', 'investmentAmount': {'currencyCode': 'USD', 'currencyAmount': '1500.00'}}]}, investment_disbursed_at=1199923200, client_token='c0ffee00-1234-4abc-9def-0123456789ac')
Invoke CreateContractualInvestmentAttestation with a percentage multiplier
>>> client.create_contractual_investment_attestation(contract_arn='arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333', investment_summary_id='Example-Investment-Summary-Id', investment_id='Investment-Id', contract_document_id='CC OTH XXXXXXXX XXXX TR', approver_details={'name': 'First-Name Last-Name', 'title': 'Title', 'email': '[email protected]'}, attestation_details={'attestationValue': {'attestationQuantities': [{'attestationVolume': '1000', 'attestationUnit': 'Example attestation unit'}]}, 'investmentDistributions': [{'accountId': '123456789012', 'investmentAmount': {'currencyCode': 'USD', 'currencyAmount': '150.00'}}]}, investment_disbursed_at=1199923200, client_token='c0ffee00-1234-4abc-9def-0123456789ad')
Source code in docs_src/capo_billing/_services/billing.py
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 | |