Object Copy Args
Provides a resource for copying an S3 object.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.ObjectCopy;
import com.pulumi.aws.s3.ObjectCopyArgs;
import com.pulumi.aws.s3.inputs.ObjectCopyGrantArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new ObjectCopy("test", ObjectCopyArgs.builder()
.bucket("destination_bucket")
.grants(ObjectCopyGrantArgs.builder()
.permissions("READ")
.type("Group")
.uri("http://acs.amazonaws.com/groups/global/AllUsers")
.build())
.key("destination_key")
.source("source_bucket/source_key")
.build());
}
}
Constructors
Properties
Canned ACL to apply. Defaults to private
. Valid values are private
, public-read
, public-read-write
, authenticated-read
, aws-exec-read
, bucket-owner-read
, and bucket-owner-full-control
. Conflicts with grant
.
Specifies caching behavior along the request/reply chain Read w3c cache_control for further details.
Specifies presentational information for the object. Read w3c content_disposition for further information.
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information.
Language the content is in e.g., en-US or en-GB.
Standard MIME type describing the format of the object data, e.g., application/octet-stream
. All Valid MIME Types are valid for this input.
Copies the object if its entity tag (ETag) matches the specified tag.
Copies the object if it has been modified since the specified time, in RFC3339 format.
Copies the object if its entity tag (ETag) is different than the specified ETag.
Copies the object if it hasn't been modified since the specified time, in RFC3339 format.
Specifies the algorithm to use to when encrypting the object (for example, AES256).
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
Account id of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
Account id of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
Date and time at which the object is no longer cacheable, in RFC3339 format.
Allow the object to be deleted by removing any legal hold on any object version. Default is false
. This value should be set to true
only if the bucket has S3 object lock enabled.
Configuration block for header grants. Documented below. Conflicts with acl
.
Specifies the AWS KMS Encryption Context to use for object encryption. The value is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY
and REPLACE
.
The legal hold status that you want to apply to the specified object. Valid values are ON
and OFF
.
Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE
and COMPLIANCE
.
Date and time, in RFC3339 format, when this object's object lock will expire.
Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 Developer Guide. If included, the only valid value is requester
.
Specifies server-side encryption of the object in S3. Valid values are AES256
and aws:kms
.
Specifies the source object for the copy operation. You specify the value in one of two formats. For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/
). For example, testbucket/test1.json
. For objects accessed through access points, specify the ARN of the object as accessed through the access point, in the format arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key>
. For example, arn:aws:s3:us-west-2:9999912999:accesspoint/my-access-point/object/testbucket/test1.json
. The following arguments are optional:
Specifies the algorithm to use when decrypting the source object (for example, AES256).
Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
Specifies the desired storage class for the object. Defaults to STANDARD
.
Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request. Valid values are COPY
and REPLACE
.
Specifies a target URL for website redirect.