permalink |
---|
/batch_compute_environment/ |
batch_compute_environment
represents the aws_batch_compute_environment
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withComputeEnvironmentName()
fn withComputeEnvironmentNamePrefix()
fn withComputeResources()
fn withComputeResourcesMixin()
fn withEksConfiguration()
fn withEksConfigurationMixin()
fn withServiceRole()
fn withState()
fn withTags()
fn withTagsAll()
fn withType()
obj compute_resources
obj eks_configuration
new()
aws.batch_compute_environment.new
injects a new aws_batch_compute_environment
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.batch_compute_environment.new('some_id')
You can get the reference to the id
field of the created aws.batch_compute_environment
using the reference:
$._ref.aws_batch_compute_environment.some_id.get('id')
This is the same as directly entering "${ aws_batch_compute_environment.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.compute_environment_name
(string
): Set thecompute_environment_name
field on the resulting resource block. Whennull
, thecompute_environment_name
field will be omitted from the resulting object.compute_environment_name_prefix
(string
): Set thecompute_environment_name_prefix
field on the resulting resource block. Whennull
, thecompute_environment_name_prefix
field will be omitted from the resulting object.service_role
(string
): Set theservice_role
field on the resulting resource block. Whennull
, theservice_role
field will be omitted from the resulting object.state
(string
): Set thestate
field on the resulting resource block. Whennull
, thestate
field will be omitted from the resulting object.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.compute_resources
(list[obj]
): Set thecompute_resources
field on the resulting resource block. Whennull
, thecompute_resources
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.batch_compute_environment.compute_resources.new constructor.eks_configuration
(list[obj]
): Set theeks_configuration
field on the resulting resource block. Whennull
, theeks_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.batch_compute_environment.eks_configuration.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.batch_compute_environment.newAttrs
constructs a new object with attributes and blocks configured for the batch_compute_environment
Terraform resource.
Unlike aws.batch_compute_environment.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:
compute_environment_name
(string
): Set thecompute_environment_name
field on the resulting object. Whennull
, thecompute_environment_name
field will be omitted from the resulting object.compute_environment_name_prefix
(string
): Set thecompute_environment_name_prefix
field on the resulting object. Whennull
, thecompute_environment_name_prefix
field will be omitted from the resulting object.service_role
(string
): Set theservice_role
field on the resulting object. Whennull
, theservice_role
field will be omitted from the resulting object.state
(string
): Set thestate
field on the resulting object. Whennull
, thestate
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.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.compute_resources
(list[obj]
): Set thecompute_resources
field on the resulting object. Whennull
, thecompute_resources
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.batch_compute_environment.compute_resources.new constructor.eks_configuration
(list[obj]
): Set theeks_configuration
field on the resulting object. Whennull
, theeks_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.batch_compute_environment.eks_configuration.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
batch_compute_environment
resource into the root Terraform configuration.
withComputeEnvironmentName()
aws.string.withComputeEnvironmentName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the compute_environment_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecompute_environment_name
field.
withComputeEnvironmentNamePrefix()
aws.string.withComputeEnvironmentNamePrefix
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the compute_environment_name_prefix field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecompute_environment_name_prefix
field.
withComputeResources()
aws.list[obj].withComputeResources
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the compute_resources 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].withComputeResourcesMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thecompute_resources
field.
withComputeResourcesMixin()
aws.list[obj].withComputeResourcesMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the compute_resources 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].withComputeResources
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thecompute_resources
field.
withEksConfiguration()
aws.list[obj].withEksConfiguration
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the eks_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].withEksConfigurationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theeks_configuration
field.
withEksConfigurationMixin()
aws.list[obj].withEksConfigurationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the eks_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].withEksConfiguration
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theeks_configuration
field.
withServiceRole()
aws.string.withServiceRole
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the service_role field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theservice_role
field.
withState()
aws.string.withState
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the state field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thestate
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.
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.batch_compute_environment.compute_resources.new
constructs a new object with attributes and blocks configured for the compute_resources
Terraform sub block.
Args:
allocation_strategy
(string
): Set theallocation_strategy
field on the resulting object. Whennull
, theallocation_strategy
field will be omitted from the resulting object.bid_percentage
(number
): Set thebid_percentage
field on the resulting object. Whennull
, thebid_percentage
field will be omitted from the resulting object.desired_vcpus
(number
): Set thedesired_vcpus
field on the resulting object. Whennull
, thedesired_vcpus
field will be omitted from the resulting object.ec2_key_pair
(string
): Set theec2_key_pair
field on the resulting object. Whennull
, theec2_key_pair
field will be omitted from the resulting object.image_id
(string
): Set theimage_id
field on the resulting object. Whennull
, theimage_id
field will be omitted from the resulting object.instance_role
(string
): Set theinstance_role
field on the resulting object. Whennull
, theinstance_role
field will be omitted from the resulting object.instance_type
(list
): Set theinstance_type
field on the resulting object. Whennull
, theinstance_type
field will be omitted from the resulting object.max_vcpus
(number
): Set themax_vcpus
field on the resulting object.min_vcpus
(number
): Set themin_vcpus
field on the resulting object. Whennull
, themin_vcpus
field will be omitted from the resulting object.placement_group
(string
): Set theplacement_group
field on the resulting object. Whennull
, theplacement_group
field will be omitted from the resulting object.security_group_ids
(list
): Set thesecurity_group_ids
field on the resulting object. Whennull
, thesecurity_group_ids
field will be omitted from the resulting object.spot_iam_fleet_role
(string
): Set thespot_iam_fleet_role
field on the resulting object. Whennull
, thespot_iam_fleet_role
field will be omitted from the resulting object.subnets
(list
): Set thesubnets
field on the resulting object.tags
(obj
): Set thetags
field on the resulting object. Whennull
, thetags
field will be omitted from the resulting object.type
(string
): Set thetype
field on the resulting object.ec2_configuration
(list[obj]
): Set theec2_configuration
field on the resulting object. Whennull
, theec2_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.batch_compute_environment.compute_resources.ec2_configuration.new constructor.launch_template
(list[obj]
): Set thelaunch_template
field on the resulting object. Whennull
, thelaunch_template
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.batch_compute_environment.compute_resources.launch_template.new constructor.
Returns:
- An attribute object that represents the
compute_resources
sub block.
new()
aws.batch_compute_environment.compute_resources.ec2_configuration.new
constructs a new object with attributes and blocks configured for the ec2_configuration
Terraform sub block.
Args:
image_id_override
(string
): Set theimage_id_override
field on the resulting object. Whennull
, theimage_id_override
field will be omitted from the resulting object.image_type
(string
): Set theimage_type
field on the resulting object. Whennull
, theimage_type
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
ec2_configuration
sub block.
new()
aws.batch_compute_environment.compute_resources.launch_template.new
constructs a new object with attributes and blocks configured for the launch_template
Terraform sub block.
Args:
launch_template_id
(string
): Set thelaunch_template_id
field on the resulting object. Whennull
, thelaunch_template_id
field will be omitted from the resulting object.launch_template_name
(string
): Set thelaunch_template_name
field on the resulting object. Whennull
, thelaunch_template_name
field will be omitted from the resulting object.version
(string
): Set theversion
field on the resulting object. Whennull
, theversion
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
launch_template
sub block.
new()
aws.batch_compute_environment.eks_configuration.new
constructs a new object with attributes and blocks configured for the eks_configuration
Terraform sub block.
Args:
eks_cluster_arn
(string
): Set theeks_cluster_arn
field on the resulting object.kubernetes_namespace
(string
): Set thekubernetes_namespace
field on the resulting object.
Returns:
- An attribute object that represents the
eks_configuration
sub block.