Updates an existing bill estimate.
Parameters:
-
identifier
(ResourceId)
–
The unique identifier of the bill estimate to update.
-
name
(Optional[BillEstimateName], default:
None
)
–
The new name for the bill estimate.
-
expires_at
(Optional[datetime], default:
None
)
–
The new expiration date for the bill estimate.
Raises:
-
AccessDeniedException
–
The request is denied because you don't have sufficient permissions to perform this operation. Verify that you have the required permissions and try again.
-
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 couldn't be processed because the resource is in a conflicting state. Verify the resource's current state and retry the request.
-
DataUnavailableException
–
The requested data is currently unavailable.
-
ResourceNotFoundException
–
The specified resource wasn't 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
| def update_bill_estimate(
self,
identifier: "capo_bcm_pricing_calculator.types.resource_id.ResourceId",
*,
config_overrides: Optional[BCMPricingCalculatorClientConfig] = None,
name: Optional[
"capo_bcm_pricing_calculator.types.bill_estimate_name.BillEstimateName"
] = None,
expires_at: Optional[datetime.datetime] = None,
) -> "capo_bcm_pricing_calculator.types.update_bill_estimate_response.UpdateBillEstimateResponse":
"""<p> Updates an existing bill estimate. </p>
Args:
identifier: <p> The unique identifier of the bill estimate to update. </p>
name: <p> The new name for the bill estimate. </p>
expires_at: <p> The new expiration date for the bill estimate. </p>
Raises:
capo_bcm_pricing_calculator.errors.access_denied_exception.AccessDeniedException: <p> The request is denied because you don't have sufficient permissions to perform this operation. Verify that you have the required permissions and try again. </p>
capo_bcm_pricing_calculator.errors.internal_server_exception.InternalServerException: <p> An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support. </p>
capo_bcm_pricing_calculator.errors.throttling_exception.ThrottlingException: <p> The request was denied due to request throttling. </p>
capo_bcm_pricing_calculator.errors.validation_exception.ValidationException: <p> The input provided fails to satisfy the constraints specified by an Amazon Web Services service. </p>
capo_bcm_pricing_calculator.errors.conflict_exception.ConflictException: <p> The request couldn't be processed because the resource is in a conflicting state. Verify the resource's current state and retry the request. </p>
capo_bcm_pricing_calculator.errors.data_unavailable_exception.DataUnavailableException: <p> The requested data is currently unavailable. </p>
capo_bcm_pricing_calculator.errors.resource_not_found_exception.ResourceNotFoundException: <p> The specified resource wasn't found. </p>
capo_bcm_pricing_calculator.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_bcm_pricing_calculator.types.update_bill_estimate_request.UpdateBillEstimateRequest]",
) -> OperationResponse[
"capo_bcm_pricing_calculator.types.update_bill_estimate_response.UpdateBillEstimateResponse"
]:
import capo_bcm_pricing_calculator._operations.awsbcm_pricing_calculator.update_bill_estimate
output, http_response = (
capo_bcm_pricing_calculator._operations.awsbcm_pricing_calculator.update_bill_estimate.update_bill_estimate(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateBillEstimate")
)
input_: capo_bcm_pricing_calculator.types.update_bill_estimate_request.UpdateBillEstimateRequest = {
"identifier": identifier
}
if name is not None:
input_["name"] = name
if expires_at is not None:
input_["expires_at"] = expires_at
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|