Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class UpdateLoggingConfigurationCommandProtected

Updates a specified logging configuration.

Example

Use a bare-bones client and the command you need to make an API call.

import { IvschatClient, UpdateLoggingConfigurationCommand } from "@aws-sdk/client-ivschat"; // ES Modules import
// const { IvschatClient, UpdateLoggingConfigurationCommand } = require("@aws-sdk/client-ivschat"); // CommonJS import
const client = new IvschatClient(config);
const input = { // UpdateLoggingConfigurationRequest
identifier: "STRING_VALUE", // required
name: "STRING_VALUE",
destinationConfiguration: { // DestinationConfiguration Union: only one key present
s3: { // S3DestinationConfiguration
bucketName: "STRING_VALUE", // required
},
cloudWatchLogs: { // CloudWatchLogsDestinationConfiguration
logGroupName: "STRING_VALUE", // required
},
firehose: { // FirehoseDestinationConfiguration
deliveryStreamName: "STRING_VALUE", // required
},
},
};
const command = new UpdateLoggingConfigurationCommand(input);
const response = await client.send(command);
// { // UpdateLoggingConfigurationResponse
// arn: "STRING_VALUE",
// id: "STRING_VALUE",
// createTime: new Date("TIMESTAMP"),
// updateTime: new Date("TIMESTAMP"),
// name: "STRING_VALUE",
// destinationConfiguration: { // DestinationConfiguration Union: only one key present
// s3: { // S3DestinationConfiguration
// bucketName: "STRING_VALUE", // required
// },
// cloudWatchLogs: { // CloudWatchLogsDestinationConfiguration
// logGroupName: "STRING_VALUE", // required
// },
// firehose: { // FirehoseDestinationConfiguration
// deliveryStreamName: "STRING_VALUE", // required
// },
// },
// state: "STRING_VALUE",
// tags: { // Tags
// "<keys>": "STRING_VALUE",
// },
// };

Param

UpdateLoggingConfigurationCommandInput

Returns

UpdateLoggingConfigurationCommandOutput

See

Throws

AccessDeniedException (client fault)

Throws

ConflictException (client fault)

Throws

PendingVerification (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ValidationException (client fault)

Throws

IvschatServiceException

Base exception class for all service exceptions from Ivschat service.

Hierarchy

Constructors

Properties

Methods