- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
PutLoggingOptionsCommand
Creates or updates the logging option.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { IoTFleetWiseClient, PutLoggingOptionsCommand } from "@aws-sdk/client-iotfleetwise"; // ES Modules import
// const { IoTFleetWiseClient, PutLoggingOptionsCommand } = require("@aws-sdk/client-iotfleetwise"); // CommonJS import
const client = new IoTFleetWiseClient(config);
const input = { // PutLoggingOptionsRequest
cloudWatchLogDelivery: { // CloudWatchLogDeliveryOptions
logType: "OFF" || "ERROR", // required
logGroupName: "STRING_VALUE",
},
};
const command = new PutLoggingOptionsCommand(input);
const response = await client.send(command);
// {};
PutLoggingOptionsCommand Input
See PutLoggingOptionsCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
cloudWatchLogDelivery Required | CloudWatchLogDeliveryOptions | undefined | Creates or updates the log delivery option to Amazon CloudWatch Logs. |
PutLoggingOptionsCommand Output
See PutLoggingOptionsCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You don't have sufficient permission to perform this action. |
ConflictException | client | The request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time. |
ResourceNotFoundException | client | The resource wasn't found. |
ThrottlingException | client | The request couldn't be completed due to throttling. |
ValidationException | client | The input fails to satisfy the constraints specified by an Amazon Web Services service. |
InternalServerException | server | The request couldn't be completed because the server temporarily failed. |
IoTFleetWiseServiceException | Base exception class for all service exceptions from IoTFleetWise service. |