Menu
AWS IoT
Developer Guide

SetLoggingOptions

SetLoggingOptions

Sets the logging options.

https

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

The log level.

enum: DEBUG | INFO | ERROR | WARN | DISABLED

Output:

None

Errors:

InternalException

An unexpected error has occurred.

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.

ServiceUnavailableException

The service is temporarily unavailable.