Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class StartAccessLoggingCommandProtected

Starts access logging on the specified container. When you enable access logging on a container, MediaStore delivers access logs for objects stored in that container to Amazon CloudWatch Logs.

Example

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

import { MediaStoreClient, StartAccessLoggingCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
// const { MediaStoreClient, StartAccessLoggingCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
const client = new MediaStoreClient(config);
const input = { // StartAccessLoggingInput
ContainerName: "STRING_VALUE", // required
};
const command = new StartAccessLoggingCommand(input);
const response = await client.send(command);
// {};

Param

StartAccessLoggingCommandInput

Returns

StartAccessLoggingCommandOutput

See

Throws

ContainerInUseException (client fault)

The container that you specified in the request already exists or is being updated.

Throws

ContainerNotFoundException (client fault)

The container that you specified in the request does not exist.

Throws

InternalServerError (server fault)

The service is temporarily unavailable.

Throws

MediaStoreServiceException

Base exception class for all service exceptions from MediaStore service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods