Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutMetricPolicyCommand

The metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.

example

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

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

PutMetricPolicyCommandInput for command's input shape.

see

PutMetricPolicyCommandOutput for command's response shape.

see

config for MediaStoreClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PutMetricPolicyCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<PutMetricPolicyCommandInput, PutMetricPolicyCommandOutput>