permalink |
---|
/codecommit_trigger/ |
codecommit_trigger
represents the aws_codecommit_trigger
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
new()
aws.codecommit_trigger.new
injects a new aws_codecommit_trigger
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.codecommit_trigger.new('some_id')
You can get the reference to the id
field of the created aws.codecommit_trigger
using the reference:
$._ref.aws_codecommit_trigger.some_id.get('id')
This is the same as directly entering "${ aws_codecommit_trigger.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.repository_name
(string
): Set therepository_name
field on the resulting resource block.trigger
(list[obj]
): Set thetrigger
field on the resulting resource block. Whennull
, thetrigger
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.codecommit_trigger.trigger.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.codecommit_trigger.newAttrs
constructs a new object with attributes and blocks configured for the codecommit_trigger
Terraform resource.
Unlike aws.codecommit_trigger.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:
repository_name
(string
): Set therepository_name
field on the resulting object.trigger
(list[obj]
): Set thetrigger
field on the resulting object. Whennull
, thetrigger
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.codecommit_trigger.trigger.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
codecommit_trigger
resource into the root Terraform configuration.
withRepositoryName()
aws.string.withRepositoryName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the repository_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for therepository_name
field.
withTrigger()
aws.list[obj].withTrigger
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the trigger 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].withTriggerMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetrigger
field.
withTriggerMixin()
aws.list[obj].withTriggerMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the trigger 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].withTrigger
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetrigger
field.
new()
aws.codecommit_trigger.trigger.new
constructs a new object with attributes and blocks configured for the trigger
Terraform sub block.
Args:
branches
(list
): Set thebranches
field on the resulting object. Whennull
, thebranches
field will be omitted from the resulting object.custom_data
(string
): Set thecustom_data
field on the resulting object. Whennull
, thecustom_data
field will be omitted from the resulting object.destination_arn
(string
): Set thedestination_arn
field on the resulting object.events
(list
): Set theevents
field on the resulting object.name
(string
): Set thename
field on the resulting object.
Returns:
- An attribute object that represents the
trigger
sub block.