permalink |
---|
/s3_object/ |
s3_object
represents the aws_s3_object
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAcl()
fn withBucket()
fn withBucketKeyEnabled()
fn withCacheControl()
fn withChecksumAlgorithm()
fn withContent()
fn withContentBase64()
fn withContentDisposition()
fn withContentEncoding()
fn withContentLanguage()
fn withContentType()
fn withEtag()
fn withForceDestroy()
fn withKey()
fn withKmsKeyId()
fn withMetadata()
fn withObjectLockLegalHoldStatus()
fn withObjectLockMode()
fn withObjectLockRetainUntilDate()
fn withOverrideProvider()
fn withOverrideProviderMixin()
fn withServerSideEncryption()
fn withSource()
fn withSourceHash()
fn withStorageClass()
fn withTags()
fn withTagsAll()
fn withWebsiteRedirect()
obj override_provider
new()
aws.s3_object.new
injects a new aws_s3_object
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
aws.s3_object.new('some_id')
You can get the reference to the id
field of the created aws.s3_object
using the reference:
$._ref.aws_s3_object.some_id.get('id')
This is the same as directly entering "${ aws_s3_object.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.acl
(string
): Set theacl
field on the resulting resource block. Whennull
, theacl
field will be omitted from the resulting object.bucket
(string
): Set thebucket
field on the resulting resource block.bucket_key_enabled
(bool
): Set thebucket_key_enabled
field on the resulting resource block. Whennull
, thebucket_key_enabled
field will be omitted from the resulting object.cache_control
(string
): Set thecache_control
field on the resulting resource block. Whennull
, thecache_control
field will be omitted from the resulting object.checksum_algorithm
(string
): Set thechecksum_algorithm
field on the resulting resource block. Whennull
, thechecksum_algorithm
field will be omitted from the resulting object.content
(string
): Set thecontent
field on the resulting resource block. Whennull
, thecontent
field will be omitted from the resulting object.content_base64
(string
): Set thecontent_base64
field on the resulting resource block. Whennull
, thecontent_base64
field will be omitted from the resulting object.content_disposition
(string
): Set thecontent_disposition
field on the resulting resource block. Whennull
, thecontent_disposition
field will be omitted from the resulting object.content_encoding
(string
): Set thecontent_encoding
field on the resulting resource block. Whennull
, thecontent_encoding
field will be omitted from the resulting object.content_language
(string
): Set thecontent_language
field on the resulting resource block. Whennull
, thecontent_language
field will be omitted from the resulting object.content_type
(string
): Set thecontent_type
field on the resulting resource block. Whennull
, thecontent_type
field will be omitted from the resulting object.etag
(string
): Set theetag
field on the resulting resource block. Whennull
, theetag
field will be omitted from the resulting object.force_destroy
(bool
): Set theforce_destroy
field on the resulting resource block. Whennull
, theforce_destroy
field will be omitted from the resulting object.key
(string
): Set thekey
field on the resulting resource block.kms_key_id
(string
): Set thekms_key_id
field on the resulting resource block. Whennull
, thekms_key_id
field will be omitted from the resulting object.metadata
(obj
): Set themetadata
field on the resulting resource block. Whennull
, themetadata
field will be omitted from the resulting object.object_lock_legal_hold_status
(string
): Set theobject_lock_legal_hold_status
field on the resulting resource block. Whennull
, theobject_lock_legal_hold_status
field will be omitted from the resulting object.object_lock_mode
(string
): Set theobject_lock_mode
field on the resulting resource block. Whennull
, theobject_lock_mode
field will be omitted from the resulting object.object_lock_retain_until_date
(string
): Set theobject_lock_retain_until_date
field on the resulting resource block. Whennull
, theobject_lock_retain_until_date
field will be omitted from the resulting object.server_side_encryption
(string
): Set theserver_side_encryption
field on the resulting resource block. Whennull
, theserver_side_encryption
field will be omitted from the resulting object.source
(string
): Set thesource
field on the resulting resource block. Whennull
, thesource
field will be omitted from the resulting object.source_hash
(string
): Set thesource_hash
field on the resulting resource block. Whennull
, thesource_hash
field will be omitted from the resulting object.storage_class
(string
): Set thestorage_class
field on the resulting resource block. Whennull
, thestorage_class
field will be omitted from the resulting object.tags
(obj
): Set thetags
field on the resulting resource block. Whennull
, thetags
field will be omitted from the resulting object.tags_all
(obj
): Set thetags_all
field on the resulting resource block. Whennull
, thetags_all
field will be omitted from the resulting object.website_redirect
(string
): Set thewebsite_redirect
field on the resulting resource block. Whennull
, thewebsite_redirect
field will be omitted from the resulting object.override_provider
(list[obj]
): Set theoverride_provider
field on the resulting resource block. Whennull
, theoverride_provider
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.s3_object.override_provider.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.s3_object.newAttrs
constructs a new object with attributes and blocks configured for the s3_object
Terraform resource.
Unlike aws.s3_object.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
acl
(string
): Set theacl
field on the resulting object. Whennull
, theacl
field will be omitted from the resulting object.bucket
(string
): Set thebucket
field on the resulting object.bucket_key_enabled
(bool
): Set thebucket_key_enabled
field on the resulting object. Whennull
, thebucket_key_enabled
field will be omitted from the resulting object.cache_control
(string
): Set thecache_control
field on the resulting object. Whennull
, thecache_control
field will be omitted from the resulting object.checksum_algorithm
(string
): Set thechecksum_algorithm
field on the resulting object. Whennull
, thechecksum_algorithm
field will be omitted from the resulting object.content
(string
): Set thecontent
field on the resulting object. Whennull
, thecontent
field will be omitted from the resulting object.content_base64
(string
): Set thecontent_base64
field on the resulting object. Whennull
, thecontent_base64
field will be omitted from the resulting object.content_disposition
(string
): Set thecontent_disposition
field on the resulting object. Whennull
, thecontent_disposition
field will be omitted from the resulting object.content_encoding
(string
): Set thecontent_encoding
field on the resulting object. Whennull
, thecontent_encoding
field will be omitted from the resulting object.content_language
(string
): Set thecontent_language
field on the resulting object. Whennull
, thecontent_language
field will be omitted from the resulting object.content_type
(string
): Set thecontent_type
field on the resulting object. Whennull
, thecontent_type
field will be omitted from the resulting object.etag
(string
): Set theetag
field on the resulting object. Whennull
, theetag
field will be omitted from the resulting object.force_destroy
(bool
): Set theforce_destroy
field on the resulting object. Whennull
, theforce_destroy
field will be omitted from the resulting object.key
(string
): Set thekey
field on the resulting object.kms_key_id
(string
): Set thekms_key_id
field on the resulting object. Whennull
, thekms_key_id
field will be omitted from the resulting object.metadata
(obj
): Set themetadata
field on the resulting object. Whennull
, themetadata
field will be omitted from the resulting object.object_lock_legal_hold_status
(string
): Set theobject_lock_legal_hold_status
field on the resulting object. Whennull
, theobject_lock_legal_hold_status
field will be omitted from the resulting object.object_lock_mode
(string
): Set theobject_lock_mode
field on the resulting object. Whennull
, theobject_lock_mode
field will be omitted from the resulting object.object_lock_retain_until_date
(string
): Set theobject_lock_retain_until_date
field on the resulting object. Whennull
, theobject_lock_retain_until_date
field will be omitted from the resulting object.server_side_encryption
(string
): Set theserver_side_encryption
field on the resulting object. Whennull
, theserver_side_encryption
field will be omitted from the resulting object.source
(string
): Set thesource
field on the resulting object. Whennull
, thesource
field will be omitted from the resulting object.source_hash
(string
): Set thesource_hash
field on the resulting object. Whennull
, thesource_hash
field will be omitted from the resulting object.storage_class
(string
): Set thestorage_class
field on the resulting object. Whennull
, thestorage_class
field will be omitted from the resulting object.tags
(obj
): Set thetags
field on the resulting object. Whennull
, thetags
field will be omitted from the resulting object.tags_all
(obj
): Set thetags_all
field on the resulting object. Whennull
, thetags_all
field will be omitted from the resulting object.website_redirect
(string
): Set thewebsite_redirect
field on the resulting object. Whennull
, thewebsite_redirect
field will be omitted from the resulting object.override_provider
(list[obj]
): Set theoverride_provider
field on the resulting object. Whennull
, theoverride_provider
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.s3_object.override_provider.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
s3_object
resource into the root Terraform configuration.
withAcl()
aws.string.withAcl
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the acl field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theacl
field.
withBucket()
aws.string.withBucket
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the bucket field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thebucket
field.
withBucketKeyEnabled()
aws.bool.withBucketKeyEnabled
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the bucket_key_enabled field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thebucket_key_enabled
field.
withCacheControl()
aws.string.withCacheControl
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the cache_control field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecache_control
field.
withChecksumAlgorithm()
aws.string.withChecksumAlgorithm
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the checksum_algorithm field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thechecksum_algorithm
field.
withContent()
aws.string.withContent
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the content field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecontent
field.
withContentBase64()
aws.string.withContentBase64
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the content_base64 field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecontent_base64
field.
withContentDisposition()
aws.string.withContentDisposition
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the content_disposition field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecontent_disposition
field.
withContentEncoding()
aws.string.withContentEncoding
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the content_encoding field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecontent_encoding
field.
withContentLanguage()
aws.string.withContentLanguage
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the content_language field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecontent_language
field.
withContentType()
aws.string.withContentType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the content_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecontent_type
field.
withEtag()
aws.string.withEtag
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the etag field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theetag
field.
withForceDestroy()
aws.bool.withForceDestroy
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the force_destroy field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theforce_destroy
field.
withKey()
aws.string.withKey
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the key field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thekey
field.
withKmsKeyId()
aws.string.withKmsKeyId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the kms_key_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thekms_key_id
field.
withMetadata()
aws.obj.withMetadata
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the metadata field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for themetadata
field.
withObjectLockLegalHoldStatus()
aws.string.withObjectLockLegalHoldStatus
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the object_lock_legal_hold_status field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theobject_lock_legal_hold_status
field.
withObjectLockMode()
aws.string.withObjectLockMode
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the object_lock_mode field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theobject_lock_mode
field.
withObjectLockRetainUntilDate()
aws.string.withObjectLockRetainUntilDate
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the object_lock_retain_until_date field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theobject_lock_retain_until_date
field.
withOverrideProvider()
aws.list[obj].withOverrideProvider
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the override_provider field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the aws.list[obj].withOverrideProviderMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theoverride_provider
field.
withOverrideProviderMixin()
aws.list[obj].withOverrideProviderMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the override_provider field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the aws.list[obj].withOverrideProvider
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theoverride_provider
field.
withServerSideEncryption()
aws.string.withServerSideEncryption
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the server_side_encryption field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theserver_side_encryption
field.
withSource()
aws.string.withSource
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the source field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thesource
field.
withSourceHash()
aws.string.withSourceHash
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the source_hash field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thesource_hash
field.
withStorageClass()
aws.string.withStorageClass
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the storage_class field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thestorage_class
field.
withTags()
aws.obj.withTags
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags
field.
withTagsAll()
aws.obj.withTagsAll
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags_all field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags_all
field.
withWebsiteRedirect()
aws.string.withWebsiteRedirect
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the website_redirect field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thewebsite_redirect
field.
new()
aws.s3_object.override_provider.new
constructs a new object with attributes and blocks configured for the override_provider
Terraform sub block.
Args:
default_tags
(list[obj]
): Set thedefault_tags
field on the resulting object. Whennull
, thedefault_tags
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.s3_object.override_provider.default_tags.new constructor.
Returns:
- An attribute object that represents the
override_provider
sub block.
new()
aws.s3_object.override_provider.default_tags.new
constructs a new object with attributes and blocks configured for the default_tags
Terraform sub block.
Args:
tags
(obj
): Set thetags
field on the resulting object. Whennull
, thetags
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
default_tags
sub block.