permalink |
---|
/ec2_capacity_reservation/ |
ec2_capacity_reservation
represents the aws_ec2_capacity_reservation
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAvailabilityZone()
fn withEbsOptimized()
fn withEndDate()
fn withEndDateType()
fn withEphemeralStorage()
fn withInstanceCount()
fn withInstanceMatchCriteria()
fn withInstancePlatform()
fn withInstanceType()
fn withOutpostArn()
fn withPlacementGroupArn()
fn withTags()
fn withTagsAll()
fn withTenancy()
new()
aws.ec2_capacity_reservation.new
injects a new aws_ec2_capacity_reservation
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.ec2_capacity_reservation.new('some_id')
You can get the reference to the id
field of the created aws.ec2_capacity_reservation
using the reference:
$._ref.aws_ec2_capacity_reservation.some_id.get('id')
This is the same as directly entering "${ aws_ec2_capacity_reservation.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.availability_zone
(string
): Set theavailability_zone
field on the resulting resource block.ebs_optimized
(bool
): Set theebs_optimized
field on the resulting resource block. Whennull
, theebs_optimized
field will be omitted from the resulting object.end_date
(string
): Set theend_date
field on the resulting resource block. Whennull
, theend_date
field will be omitted from the resulting object.end_date_type
(string
): Set theend_date_type
field on the resulting resource block. Whennull
, theend_date_type
field will be omitted from the resulting object.ephemeral_storage
(bool
): Set theephemeral_storage
field on the resulting resource block. Whennull
, theephemeral_storage
field will be omitted from the resulting object.instance_count
(number
): Set theinstance_count
field on the resulting resource block.instance_match_criteria
(string
): Set theinstance_match_criteria
field on the resulting resource block. Whennull
, theinstance_match_criteria
field will be omitted from the resulting object.instance_platform
(string
): Set theinstance_platform
field on the resulting resource block.instance_type
(string
): Set theinstance_type
field on the resulting resource block.outpost_arn
(string
): Set theoutpost_arn
field on the resulting resource block. Whennull
, theoutpost_arn
field will be omitted from the resulting object.placement_group_arn
(string
): Set theplacement_group_arn
field on the resulting resource block. Whennull
, theplacement_group_arn
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.tenancy
(string
): Set thetenancy
field on the resulting resource block. Whennull
, thetenancy
field will be omitted from the resulting object.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.ec2_capacity_reservation.newAttrs
constructs a new object with attributes and blocks configured for the ec2_capacity_reservation
Terraform resource.
Unlike aws.ec2_capacity_reservation.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:
availability_zone
(string
): Set theavailability_zone
field on the resulting object.ebs_optimized
(bool
): Set theebs_optimized
field on the resulting object. Whennull
, theebs_optimized
field will be omitted from the resulting object.end_date
(string
): Set theend_date
field on the resulting object. Whennull
, theend_date
field will be omitted from the resulting object.end_date_type
(string
): Set theend_date_type
field on the resulting object. Whennull
, theend_date_type
field will be omitted from the resulting object.ephemeral_storage
(bool
): Set theephemeral_storage
field on the resulting object. Whennull
, theephemeral_storage
field will be omitted from the resulting object.instance_count
(number
): Set theinstance_count
field on the resulting object.instance_match_criteria
(string
): Set theinstance_match_criteria
field on the resulting object. Whennull
, theinstance_match_criteria
field will be omitted from the resulting object.instance_platform
(string
): Set theinstance_platform
field on the resulting object.instance_type
(string
): Set theinstance_type
field on the resulting object.outpost_arn
(string
): Set theoutpost_arn
field on the resulting object. Whennull
, theoutpost_arn
field will be omitted from the resulting object.placement_group_arn
(string
): Set theplacement_group_arn
field on the resulting object. Whennull
, theplacement_group_arn
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.tenancy
(string
): Set thetenancy
field on the resulting object. Whennull
, thetenancy
field will be omitted from the resulting object.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
ec2_capacity_reservation
resource into the root Terraform configuration.
withAvailabilityZone()
aws.string.withAvailabilityZone
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the availability_zone field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theavailability_zone
field.
withEbsOptimized()
aws.bool.withEbsOptimized
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the ebs_optimized field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theebs_optimized
field.
withEndDate()
aws.string.withEndDate
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the end_date field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theend_date
field.
withEndDateType()
aws.string.withEndDateType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the end_date_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theend_date_type
field.
withEphemeralStorage()
aws.bool.withEphemeralStorage
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the ephemeral_storage field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theephemeral_storage
field.
withInstanceCount()
aws.number.withInstanceCount
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the instance_count field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for theinstance_count
field.
withInstanceMatchCriteria()
aws.string.withInstanceMatchCriteria
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the instance_match_criteria field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theinstance_match_criteria
field.
withInstancePlatform()
aws.string.withInstancePlatform
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the instance_platform field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theinstance_platform
field.
withInstanceType()
aws.string.withInstanceType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the instance_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theinstance_type
field.
withOutpostArn()
aws.string.withOutpostArn
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the outpost_arn field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theoutpost_arn
field.
withPlacementGroupArn()
aws.string.withPlacementGroupArn
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the placement_group_arn field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theplacement_group_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.
withTenancy()
aws.string.withTenancy
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the tenancy field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetenancy
field.