Gets the fine grained logging options.
Requires permission to access the GetV2LoggingOptions action.
Parameters:
-
verbose
(Optional[VerboseFlag], default:
None
)
–
The flag is used to get all the event types and their respective configuration that event-based logging supports.
Raises:
Source code in docs_src/capo_iot/_services/io_t.py
| def get_v2_logging_options(
self,
*,
config_overrides: Optional[IoTClientConfig] = None,
verbose: Optional["capo_iot.types.verbose_flag.VerboseFlag"] = None,
) -> "capo_iot.types.get_v2_logging_options_response.GetV2LoggingOptionsResponse":
"""<p>Gets the fine grained logging options.</p> <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetV2LoggingOptions</a> action.</p>
Args:
verbose: <p> The flag is used to get all the event types and their respective configuration that event-based logging supports. </p>
Raises:
capo_iot.errors.internal_exception.InternalException: <p>An unexpected error has occurred.</p>
capo_iot.errors.not_configured_exception.NotConfiguredException: <p>The resource is not configured.</p>
capo_iot.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is temporarily unavailable.</p>
capo_iot.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iot.types.get_v2_logging_options_request.GetV2LoggingOptionsRequest]",
) -> OperationResponse[
"capo_iot.types.get_v2_logging_options_response.GetV2LoggingOptionsResponse"
]:
import capo_iot._operations.aws_iot_service.get_v2_logging_options
output, http_response = (
capo_iot._operations.aws_iot_service.get_v2_logging_options.get_v2_logging_options(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetV2LoggingOptions")
)
input_: capo_iot.types.get_v2_logging_options_request.GetV2LoggingOptionsRequest = {}
if verbose is not None:
input_["verbose"] = verbose
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|