Menu
AWS IoT
Developer Guide

SetLoggingOptions

Sets the logging options.

Request syntax:

POST /loggingOptions Content-type: application/json { "loggingOptionsPayload": { "roleArn": "string", "logLevel": "string" } }

Request Body Parameters:

Name

Type

Req?

Description

loggingOptionsPayload

LoggingOptionsPayload

yes

The logging options payload.

Errors:

InternalException

An unexpected error has occurred.

HTTP response code: 500

InvalidRequestException

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

HTTP response code: 400

ServiceUnavailableException

The service is temporarily unavailable.

HTTP response code: 503

CLI

Synopsis:

aws iot set-logging-options \ --logging-options-payload <value> \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

{ "loggingOptionsPayload": { "roleArn": "string", "logLevel": "string" } }

cli-input-json fields:

Name

Type

Description

loggingOptionsPayload

LoggingOptionsPayload

The logging options payload.

roleArn

string

The ARN of the IAM role that grants access.

logLevel

string

enum: DEBUG | INFO | ERROR | WARN | DISABLED

java class: iot.goldeneye.service.LogLevel

The log level.

Output:

None

On this page: