Skip to content

put_logging_options

put_logging_options(
    logging_options: LoggingOptions,
    *,
    config_overrides: Optional[IoTEventsClientConfig] = None,
) -> None

Sets or updates the AWS IoT Events logging options.

If you update the value of any loggingOptions field, it takes up to one minute for the change to take effect. If you change the policy attached to the role you specified in the roleArn field (for example, to correct an invalid policy), it takes up to five minutes for that change to take effect.

Parameters:

  • logging_options (LoggingOptions) –

    The new values of the AWS IoT Events logging options.

Raises:

Source code in docs_src/capo_iot_events/_services/io_t_events.py
def put_logging_options(
    self,
    logging_options: "capo_iot_events.types.logging_options.LoggingOptions",
    *,
    config_overrides: Optional[IoTEventsClientConfig] = None,
) -> None:
    """<p>Sets or updates the AWS IoT Events logging options.</p> <p>If you update the value of any <code>loggingOptions</code> field, it takes up to one minute for the change to take effect. If you change the policy attached to the role you specified in the <code>roleArn</code> field (for example, to correct an invalid policy), it takes up to five minutes for that change to take effect.</p>

    Args:
        logging_options: <p>The new values of the AWS IoT Events logging options.</p>

    Raises:
        capo_iot_events.errors.internal_failure_exception.InternalFailureException: <p>An internal failure occurred.</p>
        capo_iot_events.errors.invalid_request_exception.InvalidRequestException: <p>The request was invalid.</p>
        capo_iot_events.errors.resource_in_use_exception.ResourceInUseException: <p>The resource is in use.</p>
        capo_iot_events.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
        capo_iot_events.errors.throttling_exception.ThrottlingException: <p>The request could not be completed due to throttling.</p>
        capo_iot_events.errors.unsupported_operation_exception.UnsupportedOperationException: <p>The requested operation is not supported.</p>
        capo_iot_events.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iot_events.types.put_logging_options_request.PutLoggingOptionsRequest]",
    ) -> OperationResponse[None]:
        import capo_iot_events._operations.iot_columbo_service.put_logging_options

        output, http_response = (
            capo_iot_events._operations.iot_columbo_service.put_logging_options.put_logging_options(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutLoggingOptions")
    )
    input_: capo_iot_events.types.put_logging_options_request.PutLoggingOptionsRequest = {
        "logging_options": logging_options
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output