Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteCorsPolicyCommand

Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.

To use this operation, you must have permission to perform the MediaStore:DeleteCorsPolicy action. The container owner has this permission by default and can grant this permission to others.

example

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

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

DeleteCorsPolicyCommandInput for command's input shape.

see

DeleteCorsPolicyCommandOutput for command's response shape.

see

config for MediaStoreClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteCorsPolicyCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions