Skip to content

Commit

Permalink
feat(client-bcm-pricing-calculator): Added ConflictException error ty…
Browse files Browse the repository at this point in the history
…pe in DeleteBillScenario, BatchDeleteBillScenarioCommitmentModification, BatchDeleteBillScenarioUsageModification, BatchUpdateBillScenarioUsageModification, and BatchUpdateBillScenarioCommitmentModification API operations.
  • Loading branch information
awstools committed Jan 29, 2025
1 parent 5738642 commit 19c246d
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export interface BatchCreateBillScenarioCommitmentModificationCommandOutput
* <p>
* Create Compute Savings Plans, EC2 Instance Savings Plans, or EC2 Reserved Instances commitments that you want to model in a Bill Scenario.
* </p>
* <note>
* <p>The <code>BatchCreateBillScenarioCommitmentModification</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:CreateBillScenarioCommitmentModification</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export interface BatchCreateBillScenarioUsageModificationCommandOutput
* <p>
* Create Amazon Web Services service usage that you want to model in a Bill Scenario.
* </p>
* <note>
* <p>The <code>BatchCreateBillScenarioUsageModification</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:CreateBillScenarioUsageModification</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export interface BatchCreateWorkloadEstimateUsageCommandOutput
* <p>
* Create Amazon Web Services service usage that you want to model in a Workload Estimate.
* </p>
* <note>
* <p>The <code>BatchCreateWorkloadEstimateUsage</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:CreateWorkloadEstimateUsage</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export interface BatchDeleteBillScenarioCommitmentModificationCommandOutput
* <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AWSBCMPricingCalculator_BatchCreateBillScenarioUsageModification.html">
* BatchCreateBillScenarioCommitmentModification</a> operation.
* </p>
* <note>
* <p>The <code>BatchDeleteBillScenarioCommitmentModification</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:DeleteBillScenarioCommitmentModification</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -81,6 +85,11 @@ export interface BatchDeleteBillScenarioCommitmentModificationCommandOutput
* @see {@link BatchDeleteBillScenarioCommitmentModificationCommandOutput} for command's `response` shape.
* @see {@link BCMPricingCalculatorClientResolvedConfig | config} for BCMPricingCalculatorClient's `config` shape.
*
* @throws {@link ConflictException} (client fault)
* <p>
* The request could not be processed because of conflict in the current state of the resource.
* </p>
*
* @throws {@link DataUnavailableException} (client fault)
* <p>
* The requested data is currently unavailable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export interface BatchDeleteBillScenarioUsageModificationCommandOutput
* <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AWSBCMPricingCalculator_BatchUpdateBillScenarioUsageModification.html">
* BatchUpdateBillScenarioUsageModification</a>.
* </p>
* <note>
* <p>The <code>BatchDeleteBillScenarioUsageModification</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:DeleteBillScenarioUsageModification</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -79,6 +83,11 @@ export interface BatchDeleteBillScenarioUsageModificationCommandOutput
* @see {@link BatchDeleteBillScenarioUsageModificationCommandOutput} for command's `response` shape.
* @see {@link BCMPricingCalculatorClientResolvedConfig | config} for BCMPricingCalculatorClient's `config` shape.
*
* @throws {@link ConflictException} (client fault)
* <p>
* The request could not be processed because of conflict in the current state of the resource.
* </p>
*
* @throws {@link DataUnavailableException} (client fault)
* <p>
* The requested data is currently unavailable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export interface BatchDeleteWorkloadEstimateUsageCommandOutput
* <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AWSBCMPricingCalculator_BatchUpdateWorkloadEstimateUsage.html">
* BatchUpdateWorkloadEstimateUsage</a>.
* </p>
* <note>
* <p>The <code>BatchDeleteWorkloadEstimateUsage</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:DeleteWorkloadEstimateUsage</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export interface BatchUpdateBillScenarioCommitmentModificationCommandOutput
* <p>
* Update a newly added or existing commitment. You can update the commitment group based on a commitment ID and a Bill scenario ID.
* </p>
* <note>
* <p>The <code>BatchUpdateBillScenarioCommitmentModification</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:UpdateBillScenarioCommitmentModification</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -102,6 +106,11 @@ export interface BatchUpdateBillScenarioCommitmentModificationCommandOutput
* @see {@link BatchUpdateBillScenarioCommitmentModificationCommandOutput} for command's `response` shape.
* @see {@link BCMPricingCalculatorClientResolvedConfig | config} for BCMPricingCalculatorClient's `config` shape.
*
* @throws {@link ConflictException} (client fault)
* <p>
* The request could not be processed because of conflict in the current state of the resource.
* </p>
*
* @throws {@link DataUnavailableException} (client fault)
* <p>
* The requested data is currently unavailable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export interface BatchUpdateBillScenarioUsageModificationCommandOutput
* <p>
* Update a newly added or existing usage lines. You can update the usage amounts, usage hour, and usage group based on a usage ID and a Bill scenario ID.
* </p>
* <note>
* <p>The <code>BatchUpdateBillScenarioUsageModification</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:UpdateBillScenarioUsageModification</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -168,6 +172,11 @@ export interface BatchUpdateBillScenarioUsageModificationCommandOutput
* @see {@link BatchUpdateBillScenarioUsageModificationCommandOutput} for command's `response` shape.
* @see {@link BCMPricingCalculatorClientResolvedConfig | config} for BCMPricingCalculatorClient's `config` shape.
*
* @throws {@link ConflictException} (client fault)
* <p>
* The request could not be processed because of conflict in the current state of the resource.
* </p>
*
* @throws {@link DataUnavailableException} (client fault)
* <p>
* The requested data is currently unavailable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export interface BatchUpdateWorkloadEstimateUsageCommandOutput
* <p>
* Update a newly added or existing usage lines. You can update the usage amounts and usage group based on a usage ID and a Workload estimate ID.
* </p>
* <note>
* <p>The <code>BatchUpdateWorkloadEstimateUsage</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals,
* include the permission <code>bcm-pricing-calculator:UpdateWorkloadEstimateUsage</code> in your policies.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export interface DeleteBillScenarioCommandOutput extends DeleteBillScenarioRespo
* @see {@link DeleteBillScenarioCommandOutput} for command's `response` shape.
* @see {@link BCMPricingCalculatorClientResolvedConfig | config} for BCMPricingCalculatorClient's `config` shape.
*
* @throws {@link ConflictException} (client fault)
* <p>
* The request could not be processed because of conflict in the current state of the resource.
* </p>
*
* @throws {@link DataUnavailableException} (client fault)
* <p>
* The requested data is currently unavailable.
Expand Down
12 changes: 6 additions & 6 deletions clients/client-bcm-pricing-calculator/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1577,15 +1577,15 @@ export interface ListBillEstimatesRequest {

/**
* <p>
* Filter bill estimates based on their creation date.
* Filter bill estimates based on the creation date.
* </p>
* @public
*/
createdAtFilter?: FilterTimestamp | undefined;

/**
* <p>
* Filter bill estimates based on their expiration date.
* Filter bill estimates based on the expiration date.
* </p>
* @public
*/
Expand Down Expand Up @@ -2869,15 +2869,15 @@ export interface ListBillScenariosRequest {

/**
* <p>
* Filter bill scenarios based on their creation date.
* Filter bill scenarios based on the creation date.
* </p>
* @public
*/
createdAtFilter?: FilterTimestamp | undefined;

/**
* <p>
* Filter bill scenarios based on their expiration date.
* Filter bill scenarios based on the expiration date.
* </p>
* @public
*/
Expand Down Expand Up @@ -3558,15 +3558,15 @@ export interface ListWorkloadEstimatesFilter {
export interface ListWorkloadEstimatesRequest {
/**
* <p>
* Filter workload estimates based on their creation date.
* Filter workload estimates based on the creation date.
* </p>
* @public
*/
createdAtFilter?: FilterTimestamp | undefined;

/**
* <p>
* Filter workload estimates based on their expiration date.
* Filter workload estimates based on the expiration date.
* </p>
* @public
*/
Expand Down
Loading

0 comments on commit 19c246d

Please sign in to comment.