BucketObjectv2State constructor

const BucketObjectv2State({
  1. Input<String?>? acl,
  2. Input<String?>? arn,
  3. Input? bucket,
  4. Input<bool?>? bucketKeyEnabled,
  5. Input<String?>? cacheControl,
  6. Input<String?>? checksumAlgorithm,
  7. Input<String?>? checksumCrc32,
  8. Input<String?>? checksumCrc32c,
  9. Input<String?>? checksumCrc64nvme,
  10. Input<String?>? checksumSha1,
  11. Input<String?>? checksumSha256,
  12. Input<String?>? content,
  13. Input<String?>? contentBase64,
  14. Input<String?>? contentDisposition,
  15. Input<String?>? contentEncoding,
  16. Input<String?>? contentLanguage,
  17. Input<String?>? contentType,
  18. Input<String?>? etag,
  19. Input<bool?>? forceDestroy,
  20. Input<String?>? key,
  21. Input<String?>? kmsKeyId,
  22. Input<Map<String, String>?>? metadata,
  23. Input<String?>? objectLockLegalHoldStatus,
  24. Input<String?>? objectLockMode,
  25. Input<String?>? objectLockRetainUntilDate,
  26. Input<BucketObjectv2OverrideProvider?>? overrideProvider,
  27. Input<String?>? region,
  28. Input<String?>? serverSideEncryption,
  29. Input? source,
  30. Input<String?>? sourceHash,
  31. Input<String?>? storageClass,
  32. Input<Map<String, String>?>? tags,
  33. Input<Map<String, String>?>? tagsAll,
  34. Input<String?>? versionId,
  35. Input<String?>? websiteRedirect,
})

Creates a new BucketObjectv2State. acl 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 ARN of the object. bucket Name of the bucket to put the file in. Alternatively, an S3 access point ARN can be specified. bucketKeyEnabled Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. cacheControl Caching behavior along the request/reply chain Read w3c cacheControl for further details. checksumAlgorithm 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, CRC64NVME, SHA1, SHA256. checksumCrc32 Base64-encoded, 32-bit CRC32 checksum of the object. checksumCrc32c Base64-encoded, 32-bit CRC32C checksum of the object. checksumCrc64nvme Base64-encoded, 64-bit CRC64NVME checksum of the object. checksumSha1 Base64-encoded, 160-bit SHA-1 digest of the object. checksumSha256 Base64-encoded, 256-bit SHA-256 digest of the object. content Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. contentBase64 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. contentDisposition Presentational information for the object. Read w3c contentDisposition for further information. contentEncoding 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. contentLanguage Language the content is in e.g., en-US or en-GB. contentType 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 Triggers updates when the value changes. This attribute is not compatible with KMS encryption, kmsKeyId or serverSideEncryption = "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 sourceHash instead). forceDestroy 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 Name of the object once it is in the bucket. kmsKeyId 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 targetKeyArn attribute. The provider will only perform drift detection if a configuration value is provided. metadata 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). objectLockLegalHoldStatus Legal hold status that you want to apply to the specified object. Valid values are ON and OFF. objectLockMode Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. objectLockRetainUntilDate Date and time, in RFC3339 format, when this object's object lock will expire. overrideProvider Override provider-level configuration options. See overrideProvider Block below for more details. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. serverSideEncryption Server-side encryption of the object in S3. Valid values are "AES256", "aws:kms", "aws:kms:dsse", and "aws:fsx". source Path to a file that will be read and uploaded as raw bytes for the object content. sourceHash Triggers updates like etag but useful to address etag encryption limitations. (The value is only stored in state and not saved by AWS.) storageClass Storage Class for the object. Defaults to "STANDARD". tags Map of tags to assign to the object. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. versionId Unique version ID value for the object, if bucket versioning is enabled. websiteRedirect Target URL for website redirect.

Implementation

const BucketObjectv2State({
  this.acl,
  this.arn,
  this.bucket,
  this.bucketKeyEnabled,
  this.cacheControl,
  this.checksumAlgorithm,
  this.checksumCrc32,
  this.checksumCrc32c,
  this.checksumCrc64nvme,
  this.checksumSha1,
  this.checksumSha256,
  this.content,
  this.contentBase64,
  this.contentDisposition,
  this.contentEncoding,
  this.contentLanguage,
  this.contentType,
  this.etag,
  this.forceDestroy,
  this.key,
  this.kmsKeyId,
  this.metadata,
  this.objectLockLegalHoldStatus,
  this.objectLockMode,
  this.objectLockRetainUntilDate,
  this.overrideProvider,
  this.region,
  this.serverSideEncryption,
  this.source,
  this.sourceHash,
  this.storageClass,
  this.tags,
  this.tagsAll,
  this.versionId,
  this.websiteRedirect,
});