batch_create_bill_scenario_commitment_modification
¶
batch_create_bill_scenario_commitment_modification(
bill_scenario_id: ResourceId,
commitment_modifications: BatchCreateBillScenarioCommitmentModificationEntries,
*,
config_overrides: Optional[BCMPricingCalculatorClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> BatchCreateBillScenarioCommitmentModificationResponse
Create Compute Savings Plans, EC2 Instance Savings Plans, or EC2 Reserved Instances commitments that you want to model in a Bill Scenario.
The BatchCreateBillScenarioCommitmentModification operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission bcm-pricing-calculator:CreateBillScenarioCommitmentModification in your policies.
Parameters:
-
bill_scenario_id(ResourceId) –The ID of the Bill Scenario for which you want to create the modeled commitment.
-
commitment_modifications(BatchCreateBillScenarioCommitmentModificationEntries) –List of commitments that you want to model in the Bill Scenario.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
DataUnavailableException–The requested data is currently unavailable.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bcm_pricing_calculator/_services/bcm_pricing_calculator.py
1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 | |