UNPKG

@aws-sdk/client-s3

Version:

AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native

31 lines (30 loc) 1.62 kB
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; import { PutObjectRetentionOutput, PutObjectRetentionRequest } from "../models/models_0"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types"; export declare type PutObjectRetentionCommandInput = PutObjectRetentionRequest; export declare type PutObjectRetentionCommandOutput = PutObjectRetentionOutput & __MetadataBearer; /** * <p>Places an Object Retention configuration on an object.</p> * <p>This action is not supported by Amazon S3 on Outposts.</p> * <p class="title"> * <b>Related Resources</b> * </p> * <ul> * <li> * <p> * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a> * </p> * </li> * </ul> */ export declare class PutObjectRetentionCommand extends $Command<PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput, S3ClientResolvedConfig> { readonly input: PutObjectRetentionCommandInput; constructor(input: PutObjectRetentionCommandInput); /** * @internal */ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput>; private serialize; private deserialize; }