Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class GetContainerPolicyCommandProtected

Retrieves the access policy for the specified container. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.

Example

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

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

Param

GetContainerPolicyCommandInput

Returns

GetContainerPolicyCommandOutput

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

PolicyNotFoundException (client fault)

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

Throws

MediaStoreServiceException

Base exception class for all service exceptions from MediaStore service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods