Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateLoggingConfigurationCommandProtected

Creates a logging configuration that allows clients to store and record sent messages.

Example

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

import { IvschatClient, CreateLoggingConfigurationCommand } from "@aws-sdk/client-ivschat"; // ES Modules import
// const { IvschatClient, CreateLoggingConfigurationCommand } = require("@aws-sdk/client-ivschat"); // CommonJS import
const client = new IvschatClient(config);
const input = { // CreateLoggingConfigurationRequest
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
},
},
tags: { // Tags
"<keys>": "STRING_VALUE",
},
};
const command = new CreateLoggingConfigurationCommand(input);
const response = await client.send(command);
// { // CreateLoggingConfigurationResponse
// 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

CreateLoggingConfigurationCommandInput

Returns

CreateLoggingConfigurationCommandOutput

See

Throws

AccessDeniedException (client fault)

Throws

ConflictException (client fault)

Throws

PendingVerification (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ServiceQuotaExceededException (client fault)

Throws

ValidationException (client fault)

Throws

IvschatServiceException

Base exception class for all service exceptions from Ivschat service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods