permalink |
---|
/sfn_state_machine/ |
sfn_state_machine
represents the aws_sfn_state_machine
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withDefinition()
fn withLoggingConfiguration()
fn withLoggingConfigurationMixin()
fn withName()
fn withNamePrefix()
fn withPublish()
fn withRoleArn()
fn withTags()
fn withTagsAll()
fn withTimeouts()
fn withTimeoutsMixin()
fn withTracingConfiguration()
fn withTracingConfigurationMixin()
fn withType()
obj logging_configuration
obj timeouts
obj tracing_configuration
new()
aws.sfn_state_machine.new
injects a new aws_sfn_state_machine
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.sfn_state_machine.new('some_id')
You can get the reference to the id
field of the created aws.sfn_state_machine
using the reference:
$._ref.aws_sfn_state_machine.some_id.get('id')
This is the same as directly entering "${ aws_sfn_state_machine.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.definition
(string
): Set thedefinition
field on the resulting resource block.name
(string
): Set thename
field on the resulting resource block. Whennull
, thename
field will be omitted from the resulting object.name_prefix
(string
): Set thename_prefix
field on the resulting resource block. Whennull
, thename_prefix
field will be omitted from the resulting object.publish
(bool
): Set thepublish
field on the resulting resource block. Whennull
, thepublish
field will be omitted from the resulting object.role_arn
(string
): Set therole_arn
field on the resulting resource block.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.type
(string
): Set thetype
field on the resulting resource block. Whennull
, thetype
field will be omitted from the resulting object.logging_configuration
(list[obj]
): Set thelogging_configuration
field on the resulting resource block. Whennull
, thelogging_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.sfn_state_machine.logging_configuration.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.sfn_state_machine.timeouts.new constructor.tracing_configuration
(list[obj]
): Set thetracing_configuration
field on the resulting resource block. Whennull
, thetracing_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.sfn_state_machine.tracing_configuration.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.sfn_state_machine.newAttrs
constructs a new object with attributes and blocks configured for the sfn_state_machine
Terraform resource.
Unlike aws.sfn_state_machine.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:
definition
(string
): Set thedefinition
field on the resulting object.name
(string
): Set thename
field on the resulting object. Whennull
, thename
field will be omitted from the resulting object.name_prefix
(string
): Set thename_prefix
field on the resulting object. Whennull
, thename_prefix
field will be omitted from the resulting object.publish
(bool
): Set thepublish
field on the resulting object. Whennull
, thepublish
field will be omitted from the resulting object.role_arn
(string
): Set therole_arn
field on 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.type
(string
): Set thetype
field on the resulting object. Whennull
, thetype
field will be omitted from the resulting object.logging_configuration
(list[obj]
): Set thelogging_configuration
field on the resulting object. Whennull
, thelogging_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.sfn_state_machine.logging_configuration.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.sfn_state_machine.timeouts.new constructor.tracing_configuration
(list[obj]
): Set thetracing_configuration
field on the resulting object. Whennull
, thetracing_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.sfn_state_machine.tracing_configuration.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
sfn_state_machine
resource into the root Terraform configuration.
withDefinition()
aws.string.withDefinition
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the definition field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedefinition
field.
withLoggingConfiguration()
aws.list[obj].withLoggingConfiguration
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the logging_configuration 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].withLoggingConfigurationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelogging_configuration
field.
withLoggingConfigurationMixin()
aws.list[obj].withLoggingConfigurationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the logging_configuration 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].withLoggingConfiguration
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelogging_configuration
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.
withNamePrefix()
aws.string.withNamePrefix
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name_prefix field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename_prefix
field.
withPublish()
aws.bool.withPublish
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the publish field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thepublish
field.
withRoleArn()
aws.string.withRoleArn
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the role_arn field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for therole_arn
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.
withTimeouts()
aws.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the aws.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
aws.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the aws.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTracingConfiguration()
aws.list[obj].withTracingConfiguration
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the tracing_configuration 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].withTracingConfigurationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetracing_configuration
field.
withTracingConfigurationMixin()
aws.list[obj].withTracingConfigurationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the tracing_configuration 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].withTracingConfiguration
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetracing_configuration
field.
withType()
aws.string.withType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetype
field.
new()
aws.sfn_state_machine.logging_configuration.new
constructs a new object with attributes and blocks configured for the logging_configuration
Terraform sub block.
Args:
include_execution_data
(bool
): Set theinclude_execution_data
field on the resulting object. Whennull
, theinclude_execution_data
field will be omitted from the resulting object.level
(string
): Set thelevel
field on the resulting object. Whennull
, thelevel
field will be omitted from the resulting object.log_destination
(string
): Set thelog_destination
field on the resulting object. Whennull
, thelog_destination
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
logging_configuration
sub block.
new()
aws.sfn_state_machine.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.
new()
aws.sfn_state_machine.tracing_configuration.new
constructs a new object with attributes and blocks configured for the tracing_configuration
Terraform sub block.
Args:
enabled
(bool
): Set theenabled
field on the resulting object. Whennull
, theenabled
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
tracing_configuration
sub block.