permalink |
---|
/s3_bucket_inventory/ |
s3_bucket_inventory
represents the aws_s3_bucket_inventory
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withBucket()
fn withDestination()
fn withDestinationMixin()
fn withEnabled()
fn withFilter()
fn withFilterMixin()
fn withIncludedObjectVersions()
fn withName()
fn withOptionalFields()
fn withSchedule()
fn withScheduleMixin()
obj destination
obj filter
obj schedule
new()
aws.s3_bucket_inventory.new
injects a new aws_s3_bucket_inventory
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_bucket_inventory.new('some_id')
You can get the reference to the id
field of the created aws.s3_bucket_inventory
using the reference:
$._ref.aws_s3_bucket_inventory.some_id.get('id')
This is the same as directly entering "${ aws_s3_bucket_inventory.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.bucket
(string
): Set thebucket
field on the resulting resource block.enabled
(bool
): Set theenabled
field on the resulting resource block. Whennull
, theenabled
field will be omitted from the resulting object.included_object_versions
(string
): Set theincluded_object_versions
field on the resulting resource block.name
(string
): Set thename
field on the resulting resource block.optional_fields
(list
): Set theoptional_fields
field on the resulting resource block. Whennull
, theoptional_fields
field will be omitted from the resulting object.destination
(list[obj]
): Set thedestination
field on the resulting resource block. Whennull
, thedestination
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_bucket_inventory.destination.new constructor.filter
(list[obj]
): Set thefilter
field on the resulting resource block. Whennull
, thefilter
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_bucket_inventory.filter.new constructor.schedule
(list[obj]
): Set theschedule
field on the resulting resource block. Whennull
, theschedule
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_bucket_inventory.schedule.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.s3_bucket_inventory.newAttrs
constructs a new object with attributes and blocks configured for the s3_bucket_inventory
Terraform resource.
Unlike aws.s3_bucket_inventory.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:
bucket
(string
): Set thebucket
field on the resulting object.enabled
(bool
): Set theenabled
field on the resulting object. Whennull
, theenabled
field will be omitted from the resulting object.included_object_versions
(string
): Set theincluded_object_versions
field on the resulting object.name
(string
): Set thename
field on the resulting object.optional_fields
(list
): Set theoptional_fields
field on the resulting object. Whennull
, theoptional_fields
field will be omitted from the resulting object.destination
(list[obj]
): Set thedestination
field on the resulting object. Whennull
, thedestination
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_bucket_inventory.destination.new constructor.filter
(list[obj]
): Set thefilter
field on the resulting object. Whennull
, thefilter
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_bucket_inventory.filter.new constructor.schedule
(list[obj]
): Set theschedule
field on the resulting object. Whennull
, theschedule
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_bucket_inventory.schedule.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
s3_bucket_inventory
resource into the root Terraform configuration.
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.
withDestination()
aws.list[obj].withDestination
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the destination 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].withDestinationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thedestination
field.
withDestinationMixin()
aws.list[obj].withDestinationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the destination 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].withDestination
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thedestination
field.
withEnabled()
aws.bool.withEnabled
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enabled field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenabled
field.
withFilter()
aws.list[obj].withFilter
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the filter 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].withFilterMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thefilter
field.
withFilterMixin()
aws.list[obj].withFilterMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the filter 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].withFilter
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thefilter
field.
withIncludedObjectVersions()
aws.string.withIncludedObjectVersions
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the included_object_versions field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theincluded_object_versions
field.
withName()
aws.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withOptionalFields()
aws.list.withOptionalFields
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the optional_fields field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theoptional_fields
field.
withSchedule()
aws.list[obj].withSchedule
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the schedule 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].withScheduleMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theschedule
field.
withScheduleMixin()
aws.list[obj].withScheduleMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the schedule 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].withSchedule
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theschedule
field.
new()
aws.s3_bucket_inventory.destination.new
constructs a new object with attributes and blocks configured for the destination
Terraform sub block.
Args:
bucket
(list[obj]
): Set thebucket
field on the resulting object. Whennull
, thebucket
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_bucket_inventory.destination.bucket.new constructor.
Returns:
- An attribute object that represents the
destination
sub block.
new()
aws.s3_bucket_inventory.destination.bucket.new
constructs a new object with attributes and blocks configured for the bucket
Terraform sub block.
Args:
account_id
(string
): Set theaccount_id
field on the resulting object. Whennull
, theaccount_id
field will be omitted from the resulting object.bucket_arn
(string
): Set thebucket_arn
field on the resulting object.format
(string
): Set theformat
field on the resulting object.prefix
(string
): Set theprefix
field on the resulting object. Whennull
, theprefix
field will be omitted from the resulting object.encryption
(list[obj]
): Set theencryption
field on the resulting object. Whennull
, theencryption
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_bucket_inventory.destination.bucket.encryption.new constructor.
Returns:
- An attribute object that represents the
bucket
sub block.
new()
aws.s3_bucket_inventory.destination.bucket.encryption.new
constructs a new object with attributes and blocks configured for the encryption
Terraform sub block.
Args:
sse_kms
(list[obj]
): Set thesse_kms
field on the resulting object. Whennull
, thesse_kms
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_bucket_inventory.destination.bucket.encryption.sse_kms.new constructor.sse_s3
(list[obj]
): Set thesse_s3
field on the resulting object. Whennull
, thesse_s3
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_bucket_inventory.destination.bucket.encryption.sse_s3.new constructor.
Returns:
- An attribute object that represents the
encryption
sub block.
new()
aws.s3_bucket_inventory.destination.bucket.encryption.sse_kms.new
constructs a new object with attributes and blocks configured for the sse_kms
Terraform sub block.
Args:
key_id
(string
): Set thekey_id
field on the resulting object.
Returns:
- An attribute object that represents the
sse_kms
sub block.
new()
aws.s3_bucket_inventory.destination.bucket.encryption.sse_s3.new
constructs a new object with attributes and blocks configured for the sse_s3
Terraform sub block.
Returns:
- An attribute object that represents the
sse_s3
sub block.
new()
aws.s3_bucket_inventory.filter.new
constructs a new object with attributes and blocks configured for the filter
Terraform sub block.
Args:
prefix
(string
): Set theprefix
field on the resulting object. Whennull
, theprefix
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
filter
sub block.
new()
aws.s3_bucket_inventory.schedule.new
constructs a new object with attributes and blocks configured for the schedule
Terraform sub block.
Args:
frequency
(string
): Set thefrequency
field on the resulting object.
Returns:
- An attribute object that represents the
schedule
sub block.