Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutLifecyclePolicyCommand

Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.

For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy.

example

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

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

PutLifecyclePolicyCommandInput for command's input shape.

see

PutLifecyclePolicyCommandOutput for command's response shape.

see

config for MediaStoreClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PutLifecyclePolicyCommandInput

Readonly middlewareStack