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.
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);
PutLifecyclePolicyCommandInput for command's input shape.
input
PutLifecyclePolicyCommandOutput for command's response shape.
response
config for MediaStoreClient's config shape.
config
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.
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);
PutLifecyclePolicyCommandInput for command's
input
shape.PutLifecyclePolicyCommandOutput for command's
response
shape.config for MediaStoreClient's
config
shape.