batch_create_workload_estimate_usage
async
¶
batch_create_workload_estimate_usage(
workload_estimate_id: ResourceId,
usage: BatchCreateWorkloadEstimateUsageEntries,
*,
config_overrides: Optional[AsyncBCMPricingCalculatorClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> BatchCreateWorkloadEstimateUsageResponse
Create Amazon Web Services service usage that you want to model in a Workload Estimate.
The BatchCreateWorkloadEstimateUsage operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission bcm-pricing-calculator:CreateWorkloadEstimateUsage in your policies.
Parameters:
-
workload_estimate_id(ResourceId) –The ID of the Workload estimate for which you want to create the modeled usage.
-
usage(BatchCreateWorkloadEstimateUsageEntries) –List of usage that you want to model in the Workload estimate.
-
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.
-
ServiceQuotaExceededException–The request would cause you to exceed your service quota.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bcm_pricing_calculator/_services/async_bcm_pricing_calculator.py
2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 | |