Amazon.S3.Util.AmazonS3Util.SetServerSideEncryption C# (CSharp) Method

SetServerSideEncryption() public static method

Sets the server side encryption method for the S3 Object to the value specified.
public static SetServerSideEncryption ( IAmazonS3 s3Client, string bucketName, string key, ServerSideEncryptionMethod method ) : void
s3Client IAmazonS3 The Amazon S3 Client to use for S3 specific operations.
bucketName string The name of the bucket in which the key is stored
key string The key of the S3 Object
method ServerSideEncryptionMethod The server side encryption method
return void
        public static void SetServerSideEncryption(IAmazonS3 s3Client, string bucketName, string key, ServerSideEncryptionMethod method)
        {
            SetServerSideEncryption(s3Client, bucketName, key, null, method);
        }

Same methods

AmazonS3Util::SetServerSideEncryption ( IAmazonS3 s3Client, string bucketName, string key, string version, ServerSideEncryptionMethod method ) : void