async def get_pricing_plan(
self, *, config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None
) -> "capo_iottwinmaker.types.get_pricing_plan_response.GetPricingPlanResponse":
"""<p>Gets the pricing plan.</p>
Raises:
capo_iottwinmaker.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p>
capo_iottwinmaker.errors.internal_server_exception.InternalServerException: <p>An unexpected error has occurred.</p>
capo_iottwinmaker.errors.throttling_exception.ThrottlingException: <p>The rate exceeds the limit.</p>
capo_iottwinmaker.errors.validation_exception.ValidationException: <p>Failed</p>
capo_iottwinmaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iottwinmaker.types.get_pricing_plan_request.GetPricingPlanRequest]",
) -> AsyncOperationResponse[
"capo_iottwinmaker.types.get_pricing_plan_response.GetPricingPlanResponse"
]:
import capo_iottwinmaker._operations.aws_io_t_twin_maker.get_pricing_plan
(
output,
http_response,
) = await capo_iottwinmaker._operations.aws_io_t_twin_maker.get_pricing_plan.async_get_pricing_plan(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetPricingPlan")
)
input_: capo_iottwinmaker.types.get_pricing_plan_request.GetPricingPlanRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output