Get the runtime configuration of a thing.
Parameters:
Raises:
Source code in docs_src/capo_greengrass/_services/async_greengrass.py
| async def get_thing_runtime_configuration(
self,
thing_name: "capo_greengrass.types.__string.__string",
*,
config_overrides: Optional[AsyncGreengrassClientConfig] = None,
) -> "capo_greengrass.types.get_thing_runtime_configuration_response.GetThingRuntimeConfigurationResponse":
"""Get the runtime configuration of a thing.
Args:
thing_name: The thing name.
Raises:
capo_greengrass.errors.bad_request_exception.BadRequestException: General error information.
capo_greengrass.errors.internal_server_error_exception.InternalServerErrorException: General error information.
capo_greengrass.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_greengrass.types.get_thing_runtime_configuration_request.GetThingRuntimeConfigurationRequest]",
) -> AsyncOperationResponse[
"capo_greengrass.types.get_thing_runtime_configuration_response.GetThingRuntimeConfigurationResponse"
]:
import capo_greengrass._operations.greengrass.get_thing_runtime_configuration
(
output,
http_response,
) = await capo_greengrass._operations.greengrass.get_thing_runtime_configuration.async_get_thing_runtime_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetThingRuntimeConfiguration")
)
input_: capo_greengrass.types.get_thing_runtime_configuration_request.GetThingRuntimeConfigurationRequest = {
"thing_name": thing_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|