Returns an ACTIVE or DEPRECATED version of a module that you can attach. If you can't attach the module, or the version is in another status, the operation returns ResourceNotFoundException, the same as for a missing one.
Parameters:
Raises:
Examples:
Get a module version
Gets a version of a module that you can attach, with what it can do and the parameters it accepts.
>>> await client.get_available_module_version(module_id='module-8kq2p9wx3fnv1c5htj7bd0ral', version='1.2.0')
Source code in docs_src/capo_rtbfabric/_services/async_rtb_fabric.py
| async def get_available_module_version(
self,
module_id: "capo_rtbfabric.types.module_id.ModuleId",
version: "capo_rtbfabric.types.semantic_version.SemanticVersion",
*,
config_overrides: Optional[AsyncRTBFabricClientConfig] = None,
) -> "capo_rtbfabric.types.get_available_module_version_response.GetAvailableModuleVersionResponse":
"""<p>Returns an ACTIVE or DEPRECATED version of a module that you can attach. If you can't attach the module, or the version is in another status, the operation returns ResourceNotFoundException, the same as for a missing one.</p>
Args:
module_id: <p>The module's ID.</p>
version: <p>The version.</p>
Raises:
capo_rtbfabric.errors.access_denied_exception.AccessDeniedException: <p>The request could not be completed because you do not have sufficient access to perform this action.</p>
capo_rtbfabric.errors.internal_server_exception.InternalServerException: <p>The request could not be completed because of an internal server error. Try your call again.</p>
capo_rtbfabric.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request could not be completed because the resource does not exist.</p>
capo_rtbfabric.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_rtbfabric.errors.validation_exception.ValidationException: <p>The request could not be completed because it fails satisfy the constraints specified by the service.</p>
capo_rtbfabric.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Get a module version
Gets a version of a module that you can attach, with what it can do and the parameters it accepts.
>>> await client.get_available_module_version(module_id='module-8kq2p9wx3fnv1c5htj7bd0ral', version='1.2.0')
"""
async def _handler(
req: "AsyncOperationRequest[capo_rtbfabric.types.get_available_module_version_request.GetAvailableModuleVersionRequest]",
) -> AsyncOperationResponse[
"capo_rtbfabric.types.get_available_module_version_response.GetAvailableModuleVersionResponse"
]:
import capo_rtbfabric._operations.rtb_fabric.get_available_module_version
(
output,
http_response,
) = await capo_rtbfabric._operations.rtb_fabric.get_available_module_version.async_get_available_module_version(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAvailableModuleVersion")
)
input_: capo_rtbfabric.types.get_available_module_version_request.GetAvailableModuleVersionRequest = {
"module_id": module_id,
"version": version,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|