pub struct BucketObjectv2Result {Show 33 fields
pub acl: Output<String>,
pub arn: Output<String>,
pub bucket: Output<String>,
pub bucket_key_enabled: Output<bool>,
pub cache_control: Output<Option<String>>,
pub checksum_algorithm: Output<Option<String>>,
pub checksum_crc32: Output<String>,
pub checksum_crc32c: Output<String>,
pub checksum_sha1: Output<String>,
pub checksum_sha256: Output<String>,
pub content: Output<Option<String>>,
pub content_base64: Output<Option<String>>,
pub content_disposition: Output<Option<String>>,
pub content_encoding: Output<Option<String>>,
pub content_language: Output<Option<String>>,
pub content_type: Output<String>,
pub etag: Output<String>,
pub force_destroy: Output<Option<bool>>,
pub key: Output<String>,
pub kms_key_id: Output<String>,
pub metadata: Output<Option<HashMap<String, String>>>,
pub object_lock_legal_hold_status: Output<Option<String>>,
pub object_lock_mode: Output<Option<String>>,
pub object_lock_retain_until_date: Output<Option<String>>,
pub override_provider: Output<Option<BucketObjectv2OverrideProvider>>,
pub server_side_encryption: Output<String>,
pub source: Output<Option<String>>,
pub source_hash: Output<Option<String>>,
pub storage_class: Output<String>,
pub tags: Output<Option<HashMap<String, String>>>,
pub tags_all: Output<HashMap<String, String>>,
pub version_id: Output<String>,
pub website_redirect: Output<Option<String>>,
}
Fields§
§acl: Output<String>
Canned ACL to apply. Valid values are private
, public-read
, public-read-write
, aws-exec-read
, authenticated-read
, bucket-owner-read
, and bucket-owner-full-control
.
arn: Output<String>
ARN of the object.
bucket: Output<String>
Name of the bucket to put the file in. Alternatively, an S3 access point ARN can be specified.
bucket_key_enabled: Output<bool>
Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
cache_control: Output<Option<String>>
Caching behavior along the request/reply chain Read w3c cache_control for further details.
checksum_algorithm: Output<Option<String>>
Indicates the algorithm used to create the checksum for the object. If a value is specified and the object is encrypted with KMS, you must have permission to use the kms:Decrypt
action. Valid values: CRC32
, CRC32C
, SHA1
, SHA256
.
checksum_crc32: Output<String>
The base64-encoded, 32-bit CRC32 checksum of the object.
checksum_crc32c: Output<String>
The base64-encoded, 32-bit CRC32C checksum of the object.
checksum_sha1: Output<String>
The base64-encoded, 160-bit SHA-1 digest of the object.
checksum_sha256: Output<String>
The base64-encoded, 256-bit SHA-256 digest of the object.
content: Output<Option<String>>
Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
content_base64: Output<Option<String>>
Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the gzipbase64
function with small text strings. For larger objects, use source
to stream the content from a disk file.
content_disposition: Output<Option<String>>
Presentational information for the object. Read w3c content_disposition for further information.
content_encoding: Output<Option<String>>
Content encodings that 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.
content_language: Output<Option<String>>
Language the content is in e.g., en-US or en-GB.
content_type: Output<String>
Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input.
etag: Output<String>
Triggers updates when the value changes. This attribute is not compatible with KMS encryption, kms_key_id
or server_side_encryption = "aws:kms"
, also if an object is larger than 16 MB, the AWS Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest (see source_hash
instead).
force_destroy: Output<Option<bool>>
Whether to 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.
key: Output<String>
Name of the object once it is in the bucket.
The following arguments are optional:
kms_key_id: Output<String>
ARN of the KMS Key to use for object encryption. If the S3 Bucket has server-side encryption enabled, that value will automatically be used. If referencing the aws.kms.Key
resource, use the arn
attribute. If referencing the aws.kms.Alias
data source or resource, use the target_key_arn
attribute. The provider will only perform drift detection if a configuration value is provided.
metadata: Output<Option<HashMap<String, String>>>
Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-
, note that only lowercase label are currently supported by the AWS Go API).
object_lock_legal_hold_status: Output<Option<String>>
Legal hold status that you want to apply to the specified object. Valid values are ON
and OFF
.
object_lock_mode: Output<Option<String>>
Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE
and COMPLIANCE
.
object_lock_retain_until_date: Output<Option<String>>
Date and time, in RFC3339 format, when this object’s object lock will expire.
override_provider: Output<Option<BucketObjectv2OverrideProvider>>
Override provider-level configuration options. See Override Provider below for more details.
server_side_encryption: Output<String>
Server-side encryption of the object in S3. Valid values are “AES256
” and “aws:kms
”.
source: Output<Option<String>>
Path to a file that will be read and uploaded as raw bytes for the object content.
source_hash: Output<Option<String>>
Triggers updates like etag
but useful to address etag
encryption limitations. (The value is only stored in state and not saved by AWS.)
storage_class: Output<String>
Storage Class for the object. Defaults to “STANDARD
”.
Map of tags to assign to the object. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.
version_id: Output<String>
Unique version ID value for the object, if bucket versioning is enabled.
website_redirect: Output<Option<String>>
Target URL for website redirect.
If no content is provided through source
, content
or content_base64
, then the object will be empty.
Note: The provider ignores all leading
/
s in the object’skey
and treats multiple/
s in the rest of the object’skey
as a single/
, so values of/index.html
andindex.html
correspond to the same S3 object as dofirst//second///third//
andfirst/second/third/
.