permalink |
---|
/s3_bucket_notification/ |
s3_bucket_notification
represents the aws_s3_bucket_notification
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withBucket()
fn withEventbridge()
fn withLambdaFunction()
fn withLambdaFunctionMixin()
fn withQueue()
fn withQueueMixin()
fn withTopic()
fn withTopicMixin()
obj lambda_function
obj queue
obj topic
new()
aws.s3_bucket_notification.new
injects a new aws_s3_bucket_notification
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_notification.new('some_id')
You can get the reference to the id
field of the created aws.s3_bucket_notification
using the reference:
$._ref.aws_s3_bucket_notification.some_id.get('id')
This is the same as directly entering "${ aws_s3_bucket_notification.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.eventbridge
(bool
): Set theeventbridge
field on the resulting resource block. Whennull
, theeventbridge
field will be omitted from the resulting object.lambda_function
(list[obj]
): Set thelambda_function
field on the resulting resource block. Whennull
, thelambda_function
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_notification.lambda_function.new constructor.queue
(list[obj]
): Set thequeue
field on the resulting resource block. Whennull
, thequeue
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_notification.queue.new constructor.topic
(list[obj]
): Set thetopic
field on the resulting resource block. Whennull
, thetopic
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_notification.topic.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.s3_bucket_notification.newAttrs
constructs a new object with attributes and blocks configured for the s3_bucket_notification
Terraform resource.
Unlike aws.s3_bucket_notification.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.eventbridge
(bool
): Set theeventbridge
field on the resulting object. Whennull
, theeventbridge
field will be omitted from the resulting object.lambda_function
(list[obj]
): Set thelambda_function
field on the resulting object. Whennull
, thelambda_function
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_notification.lambda_function.new constructor.queue
(list[obj]
): Set thequeue
field on the resulting object. Whennull
, thequeue
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_notification.queue.new constructor.topic
(list[obj]
): Set thetopic
field on the resulting object. Whennull
, thetopic
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_notification.topic.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
s3_bucket_notification
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.
withEventbridge()
aws.bool.withEventbridge
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the eventbridge field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theeventbridge
field.
withLambdaFunction()
aws.list[obj].withLambdaFunction
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the lambda_function 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].withLambdaFunctionMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelambda_function
field.
withLambdaFunctionMixin()
aws.list[obj].withLambdaFunctionMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the lambda_function 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].withLambdaFunction
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelambda_function
field.
withQueue()
aws.list[obj].withQueue
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the queue 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].withQueueMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thequeue
field.
withQueueMixin()
aws.list[obj].withQueueMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the queue 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].withQueue
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thequeue
field.
withTopic()
aws.list[obj].withTopic
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the topic 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].withTopicMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetopic
field.
withTopicMixin()
aws.list[obj].withTopicMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the topic 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].withTopic
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetopic
field.
new()
aws.s3_bucket_notification.lambda_function.new
constructs a new object with attributes and blocks configured for the lambda_function
Terraform sub block.
Args:
events
(list
): Set theevents
field on the resulting object.filter_prefix
(string
): Set thefilter_prefix
field on the resulting object. Whennull
, thefilter_prefix
field will be omitted from the resulting object.filter_suffix
(string
): Set thefilter_suffix
field on the resulting object. Whennull
, thefilter_suffix
field will be omitted from the resulting object.lambda_function_arn
(string
): Set thelambda_function_arn
field on the resulting object. Whennull
, thelambda_function_arn
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
lambda_function
sub block.
new()
aws.s3_bucket_notification.queue.new
constructs a new object with attributes and blocks configured for the queue
Terraform sub block.
Args:
events
(list
): Set theevents
field on the resulting object.filter_prefix
(string
): Set thefilter_prefix
field on the resulting object. Whennull
, thefilter_prefix
field will be omitted from the resulting object.filter_suffix
(string
): Set thefilter_suffix
field on the resulting object. Whennull
, thefilter_suffix
field will be omitted from the resulting object.queue_arn
(string
): Set thequeue_arn
field on the resulting object.
Returns:
- An attribute object that represents the
queue
sub block.
new()
aws.s3_bucket_notification.topic.new
constructs a new object with attributes and blocks configured for the topic
Terraform sub block.
Args:
events
(list
): Set theevents
field on the resulting object.filter_prefix
(string
): Set thefilter_prefix
field on the resulting object. Whennull
, thefilter_prefix
field will be omitted from the resulting object.filter_suffix
(string
): Set thefilter_suffix
field on the resulting object. Whennull
, thefilter_suffix
field will be omitted from the resulting object.topic_arn
(string
): Set thetopic_arn
field on the resulting object.
Returns:
- An attribute object that represents the
topic
sub block.