permalink |
---|
/data/ecs_task_execution/ |
ecs_task_execution
represents the aws_ecs_task_execution
Terraform data source.
This package contains functions and utilities for setting up the data source using Jsonnet code.
fn new()
fn newAttrs()
fn withCapacityProviderStrategy()
fn withCapacityProviderStrategyMixin()
fn withCluster()
fn withDesiredCount()
fn withEnableEcsManagedTags()
fn withEnableExecuteCommand()
fn withGroup()
fn withLaunchType()
fn withNetworkConfiguration()
fn withNetworkConfigurationMixin()
fn withOverrides()
fn withOverridesMixin()
fn withPlacementConstraints()
fn withPlacementConstraintsMixin()
fn withPlacementStrategy()
fn withPlacementStrategyMixin()
fn withPlatformVersion()
fn withPropagateTags()
fn withReferenceId()
fn withStartedBy()
fn withTags()
fn withTaskDefinition()
obj capacity_provider_strategy
obj network_configuration
obj overrides
obj placement_constraints
obj placement_strategy
new()
aws.data.ecs_task_execution.new
injects a new data_aws_ecs_task_execution
Terraform data source
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.data.ecs_task_execution.new('some_id')
You can get the reference to the id
field of the created aws.data.ecs_task_execution
using the reference:
$._ref.data_aws_ecs_task_execution.some_id.get('id')
This is the same as directly entering "${ data_aws_ecs_task_execution.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:
dataSrcLabel
(string
): The name label of the block.cluster
(string
): Set thecluster
field on the resulting data source block.desired_count
(number
): Set thedesired_count
field on the resulting data source block. Whennull
, thedesired_count
field will be omitted from the resulting object.enable_ecs_managed_tags
(bool
): Set theenable_ecs_managed_tags
field on the resulting data source block. Whennull
, theenable_ecs_managed_tags
field will be omitted from the resulting object.enable_execute_command
(bool
): Set theenable_execute_command
field on the resulting data source block. Whennull
, theenable_execute_command
field will be omitted from the resulting object.group
(string
): Set thegroup
field on the resulting data source block. Whennull
, thegroup
field will be omitted from the resulting object.launch_type
(string
): Set thelaunch_type
field on the resulting data source block. Whennull
, thelaunch_type
field will be omitted from the resulting object.platform_version
(string
): Set theplatform_version
field on the resulting data source block. Whennull
, theplatform_version
field will be omitted from the resulting object.propagate_tags
(string
): Set thepropagate_tags
field on the resulting data source block. Whennull
, thepropagate_tags
field will be omitted from the resulting object.reference_id
(string
): Set thereference_id
field on the resulting data source block. Whennull
, thereference_id
field will be omitted from the resulting object.started_by
(string
): Set thestarted_by
field on the resulting data source block. Whennull
, thestarted_by
field will be omitted from the resulting object.tags
(obj
): Set thetags
field on the resulting data source block. Whennull
, thetags
field will be omitted from the resulting object.task_definition
(string
): Set thetask_definition
field on the resulting data source block.capacity_provider_strategy
(list[obj]
): Set thecapacity_provider_strategy
field on the resulting data source block. Whennull
, thecapacity_provider_strategy
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.capacity_provider_strategy.new constructor.network_configuration
(list[obj]
): Set thenetwork_configuration
field on the resulting data source block. Whennull
, thenetwork_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.data.ecs_task_execution.network_configuration.new constructor.overrides
(list[obj]
): Set theoverrides
field on the resulting data source block. Whennull
, theoverrides
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.overrides.new constructor.placement_constraints
(list[obj]
): Set theplacement_constraints
field on the resulting data source block. Whennull
, theplacement_constraints
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.placement_constraints.new constructor.placement_strategy
(list[obj]
): Set theplacement_strategy
field on the resulting data source block. Whennull
, theplacement_strategy
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.placement_strategy.new constructor.
Returns:
- A mixin object that injects the new data source into the root Terraform configuration.
newAttrs()
aws.data.ecs_task_execution.newAttrs
constructs a new object with attributes and blocks configured for the ecs_task_execution
Terraform data source.
Unlike aws.data.ecs_task_execution.new, this function will not inject the data source
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withData 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:
cluster
(string
): Set thecluster
field on the resulting object.desired_count
(number
): Set thedesired_count
field on the resulting object. Whennull
, thedesired_count
field will be omitted from the resulting object.enable_ecs_managed_tags
(bool
): Set theenable_ecs_managed_tags
field on the resulting object. Whennull
, theenable_ecs_managed_tags
field will be omitted from the resulting object.enable_execute_command
(bool
): Set theenable_execute_command
field on the resulting object. Whennull
, theenable_execute_command
field will be omitted from the resulting object.group
(string
): Set thegroup
field on the resulting object. Whennull
, thegroup
field will be omitted from the resulting object.launch_type
(string
): Set thelaunch_type
field on the resulting object. Whennull
, thelaunch_type
field will be omitted from the resulting object.platform_version
(string
): Set theplatform_version
field on the resulting object. Whennull
, theplatform_version
field will be omitted from the resulting object.propagate_tags
(string
): Set thepropagate_tags
field on the resulting object. Whennull
, thepropagate_tags
field will be omitted from the resulting object.reference_id
(string
): Set thereference_id
field on the resulting object. Whennull
, thereference_id
field will be omitted from the resulting object.started_by
(string
): Set thestarted_by
field on the resulting object. Whennull
, thestarted_by
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.task_definition
(string
): Set thetask_definition
field on the resulting object.capacity_provider_strategy
(list[obj]
): Set thecapacity_provider_strategy
field on the resulting object. Whennull
, thecapacity_provider_strategy
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.capacity_provider_strategy.new constructor.network_configuration
(list[obj]
): Set thenetwork_configuration
field on the resulting object. Whennull
, thenetwork_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.data.ecs_task_execution.network_configuration.new constructor.overrides
(list[obj]
): Set theoverrides
field on the resulting object. Whennull
, theoverrides
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.overrides.new constructor.placement_constraints
(list[obj]
): Set theplacement_constraints
field on the resulting object. Whennull
, theplacement_constraints
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.placement_constraints.new constructor.placement_strategy
(list[obj]
): Set theplacement_strategy
field on the resulting object. Whennull
, theplacement_strategy
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.data.ecs_task_execution.placement_strategy.new constructor.
Returns:
- An attribute object that can be used with tf.withData to construct a new
ecs_task_execution
data source into the root Terraform configuration.
withCapacityProviderStrategy()
aws.list[obj].withCapacityProviderStrategy
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the capacity_provider_strategy 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].withCapacityProviderStrategyMixin function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thecapacity_provider_strategy
field.
withCapacityProviderStrategyMixin()
aws.list[obj].withCapacityProviderStrategyMixin
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the capacity_provider_strategy 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].withCapacityProviderStrategy
function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thecapacity_provider_strategy
field.
withCluster()
aws.string.withCluster
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the cluster field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecluster
field.
withDesiredCount()
aws.number.withDesiredCount
constructs a mixin object that can be merged into the number
Terraform data source block to set or update the desired_count field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(number
): The value to set for thedesired_count
field.
withEnableEcsManagedTags()
aws.bool.withEnableEcsManagedTags
constructs a mixin object that can be merged into the bool
Terraform data source block to set or update the enable_ecs_managed_tags field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_ecs_managed_tags
field.
withEnableExecuteCommand()
aws.bool.withEnableExecuteCommand
constructs a mixin object that can be merged into the bool
Terraform data source block to set or update the enable_execute_command field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_execute_command
field.
withGroup()
aws.string.withGroup
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the group field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for thegroup
field.
withLaunchType()
aws.string.withLaunchType
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the launch_type field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for thelaunch_type
field.
withNetworkConfiguration()
aws.list[obj].withNetworkConfiguration
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the network_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].withNetworkConfigurationMixin function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetwork_configuration
field.
withNetworkConfigurationMixin()
aws.list[obj].withNetworkConfigurationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the network_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].withNetworkConfiguration
function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetwork_configuration
field.
withOverrides()
aws.list[obj].withOverrides
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the overrides 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].withOverridesMixin function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theoverrides
field.
withOverridesMixin()
aws.list[obj].withOverridesMixin
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the overrides 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].withOverrides
function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theoverrides
field.
withPlacementConstraints()
aws.list[obj].withPlacementConstraints
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the placement_constraints 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].withPlacementConstraintsMixin function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theplacement_constraints
field.
withPlacementConstraintsMixin()
aws.list[obj].withPlacementConstraintsMixin
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the placement_constraints 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].withPlacementConstraints
function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theplacement_constraints
field.
withPlacementStrategy()
aws.list[obj].withPlacementStrategy
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the placement_strategy 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].withPlacementStrategyMixin function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theplacement_strategy
field.
withPlacementStrategyMixin()
aws.list[obj].withPlacementStrategyMixin
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the placement_strategy 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].withPlacementStrategy
function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theplacement_strategy
field.
withPlatformVersion()
aws.string.withPlatformVersion
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the platform_version field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for theplatform_version
field.
withPropagateTags()
aws.string.withPropagateTags
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the propagate_tags field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for thepropagate_tags
field.
withReferenceId()
aws.string.withReferenceId
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the reference_id field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for thereference_id
field.
withStartedBy()
aws.string.withStartedBy
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the started_by field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for thestarted_by
field.
withTags()
aws.obj.withTags
constructs a mixin object that can be merged into the obj
Terraform data source block to set or update the tags field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags
field.
withTaskDefinition()
aws.string.withTaskDefinition
constructs a mixin object that can be merged into the string
Terraform data source block to set or update the task_definition field.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetask_definition
field.
new()
aws.ecs_task_execution.capacity_provider_strategy.new
constructs a new object with attributes and blocks configured for the capacity_provider_strategy
Terraform sub block.
Args:
base
(number
): Set thebase
field on the resulting object. Whennull
, thebase
field will be omitted from the resulting object.capacity_provider
(string
): Set thecapacity_provider
field on the resulting object.weight
(number
): Set theweight
field on the resulting object. Whennull
, theweight
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
capacity_provider_strategy
sub block.
new()
aws.ecs_task_execution.network_configuration.new
constructs a new object with attributes and blocks configured for the network_configuration
Terraform sub block.
Args:
assign_public_ip
(bool
): Set theassign_public_ip
field on the resulting object. Whennull
, theassign_public_ip
field will be omitted from the resulting object.security_groups
(list
): Set thesecurity_groups
field on the resulting object. Whennull
, thesecurity_groups
field will be omitted from the resulting object.subnets
(list
): Set thesubnets
field on the resulting object.
Returns:
- An attribute object that represents the
network_configuration
sub block.
new()
aws.ecs_task_execution.overrides.new
constructs a new object with attributes and blocks configured for the overrides
Terraform sub block.
Args:
cpu
(string
): Set thecpu
field on the resulting object. Whennull
, thecpu
field will be omitted from the resulting object.execution_role_arn
(string
): Set theexecution_role_arn
field on the resulting object. Whennull
, theexecution_role_arn
field will be omitted from the resulting object.memory
(string
): Set thememory
field on the resulting object. Whennull
, thememory
field will be omitted from the resulting object.task_role_arn
(string
): Set thetask_role_arn
field on the resulting object. Whennull
, thetask_role_arn
field will be omitted from the resulting object.container_overrides
(list[obj]
): Set thecontainer_overrides
field on the resulting object. Whennull
, thecontainer_overrides
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ecs_task_execution.overrides.container_overrides.new constructor.inference_accelerator_overrides
(list[obj]
): Set theinference_accelerator_overrides
field on the resulting object. Whennull
, theinference_accelerator_overrides
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ecs_task_execution.overrides.inference_accelerator_overrides.new constructor.
Returns:
- An attribute object that represents the
overrides
sub block.
new()
aws.ecs_task_execution.overrides.container_overrides.new
constructs a new object with attributes and blocks configured for the container_overrides
Terraform sub block.
Args:
command
(list
): Set thecommand
field on the resulting object. Whennull
, thecommand
field will be omitted from the resulting object.cpu
(number
): Set thecpu
field on the resulting object. Whennull
, thecpu
field will be omitted from the resulting object.memory
(number
): Set thememory
field on the resulting object. Whennull
, thememory
field will be omitted from the resulting object.memory_reservation
(number
): Set thememory_reservation
field on the resulting object. Whennull
, thememory_reservation
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting object.environment
(list[obj]
): Set theenvironment
field on the resulting object. Whennull
, theenvironment
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ecs_task_execution.overrides.container_overrides.environment.new constructor.resource_requirements
(list[obj]
): Set theresource_requirements
field on the resulting object. Whennull
, theresource_requirements
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ecs_task_execution.overrides.container_overrides.resource_requirements.new constructor.
Returns:
- An attribute object that represents the
container_overrides
sub block.
new()
aws.ecs_task_execution.overrides.container_overrides.environment.new
constructs a new object with attributes and blocks configured for the environment
Terraform sub block.
Args:
key
(string
): Set thekey
field on the resulting object.value
(string
): Set thevalue
field on the resulting object.
Returns:
- An attribute object that represents the
environment
sub block.
new()
aws.ecs_task_execution.overrides.container_overrides.resource_requirements.new
constructs a new object with attributes and blocks configured for the resource_requirements
Terraform sub block.
Args:
type
(string
): Set thetype
field on the resulting object.value
(string
): Set thevalue
field on the resulting object.
Returns:
- An attribute object that represents the
resource_requirements
sub block.
new()
aws.ecs_task_execution.overrides.inference_accelerator_overrides.new
constructs a new object with attributes and blocks configured for the inference_accelerator_overrides
Terraform sub block.
Args:
device_name
(string
): Set thedevice_name
field on the resulting object. Whennull
, thedevice_name
field will be omitted from the resulting object.device_type
(string
): Set thedevice_type
field on the resulting object. Whennull
, thedevice_type
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
inference_accelerator_overrides
sub block.
new()
aws.ecs_task_execution.placement_constraints.new
constructs a new object with attributes and blocks configured for the placement_constraints
Terraform sub block.
Args:
expression
(string
): Set theexpression
field on the resulting object. Whennull
, theexpression
field will be omitted from the resulting object.type
(string
): Set thetype
field on the resulting object.
Returns:
- An attribute object that represents the
placement_constraints
sub block.
new()
aws.ecs_task_execution.placement_strategy.new
constructs a new object with attributes and blocks configured for the placement_strategy
Terraform sub block.
Args:
field
(string
): Set thefield
field on the resulting object. Whennull
, thefield
field will be omitted from the resulting object.type
(string
): Set thetype
field on the resulting object.
Returns:
- An attribute object that represents the
placement_strategy
sub block.