batch_create_workload_estimate_usage
¶
batch_create_workload_estimate_usage(
workload_estimate_id: ResourceId,
usage: BatchCreateWorkloadEstimateUsageEntries,
*,
config_overrides: Optional[BCMPricingCalculatorClientConfig] = 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/bcm_pricing_calculator.py
2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 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 | |