Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutContainerPolicyCommand

Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.

For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy twice, the second command modifies the existing policy.

example

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

import { MediaStoreClient, PutContainerPolicyCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
// const { MediaStoreClient, PutContainerPolicyCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
const client = new MediaStoreClient(config);
const command = new PutContainerPolicyCommand(input);
const response = await client.send(command);
see

PutContainerPolicyCommandInput for command's input shape.

see

PutContainerPolicyCommandOutput for command's response shape.

see

config for MediaStoreClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: PutContainerPolicyCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions