Method: Aws::IoTEvents::Client#put_logging_options

Defined in:
lib/aws-sdk-iotevents/client.rb

#put_logging_options(params = {}) ⇒ Struct

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.

Examples:

Request syntax with placeholder values


resp = client.put_logging_options({
  logging_options: { # required
    role_arn: "AmazonResourceName", # required
    level: "ERROR", # required, accepts ERROR, INFO, DEBUG
    enabled: false, # required
    detector_debug_options: [
      {
        detector_model_name: "DetectorModelName", # required
        key_value: "KeyValue",
      },
    ],
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :logging_options (required, Types::LoggingOptions)

    The new values of the AWS IoT Events logging options.

Returns:

  • (Struct)

    Returns an empty response.


2197
2198
2199
2200
# File 'lib/aws-sdk-iotevents/client.rb', line 2197

def put_logging_options(params = {}, options = {})
  req = build_request(:put_logging_options, params)
  req.send_request(options)
end