Skip to content

Latest commit

 

History

History
1786 lines (1113 loc) · 75.7 KB

spot_instance_request.md

File metadata and controls

1786 lines (1113 loc) · 75.7 KB
permalink
/spot_instance_request/

spot_instance_request

spot_instance_request represents the aws_spot_instance_request Terraform resource.

This package contains functions and utilities for setting up the resource using Jsonnet code.

Index

Fields

fn new

new()

aws.spot_instance_request.new injects a new aws_spot_instance_request 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.spot_instance_request.new('some_id')

You can get the reference to the id field of the created aws.spot_instance_request using the reference:

$._ref.aws_spot_instance_request.some_id.get('id')

This is the same as directly entering "${ aws_spot_instance_request.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.
  • ami (string): Set the ami field on the resulting resource block. When null, the ami field will be omitted from the resulting object.
  • associate_public_ip_address (bool): Set the associate_public_ip_address field on the resulting resource block. When null, the associate_public_ip_address field will be omitted from the resulting object.
  • availability_zone (string): Set the availability_zone field on the resulting resource block. When null, the availability_zone field will be omitted from the resulting object.
  • block_duration_minutes (number): Set the block_duration_minutes field on the resulting resource block. When null, the block_duration_minutes field will be omitted from the resulting object.
  • cpu_core_count (number): Set the cpu_core_count field on the resulting resource block. When null, the cpu_core_count field will be omitted from the resulting object.
  • cpu_threads_per_core (number): Set the cpu_threads_per_core field on the resulting resource block. When null, the cpu_threads_per_core field will be omitted from the resulting object.
  • disable_api_stop (bool): Set the disable_api_stop field on the resulting resource block. When null, the disable_api_stop field will be omitted from the resulting object.
  • disable_api_termination (bool): Set the disable_api_termination field on the resulting resource block. When null, the disable_api_termination field will be omitted from the resulting object.
  • ebs_optimized (bool): Set the ebs_optimized field on the resulting resource block. When null, the ebs_optimized field will be omitted from the resulting object.
  • get_password_data (bool): Set the get_password_data field on the resulting resource block. When null, the get_password_data field will be omitted from the resulting object.
  • hibernation (bool): Set the hibernation field on the resulting resource block. When null, the hibernation field will be omitted from the resulting object.
  • host_id (string): Set the host_id field on the resulting resource block. When null, the host_id field will be omitted from the resulting object.
  • host_resource_group_arn (string): Set the host_resource_group_arn field on the resulting resource block. When null, the host_resource_group_arn field will be omitted from the resulting object.
  • iam_instance_profile (string): Set the iam_instance_profile field on the resulting resource block. When null, the iam_instance_profile field will be omitted from the resulting object.
  • instance_initiated_shutdown_behavior (string): Set the instance_initiated_shutdown_behavior field on the resulting resource block. When null, the instance_initiated_shutdown_behavior field will be omitted from the resulting object.
  • instance_interruption_behavior (string): Set the instance_interruption_behavior field on the resulting resource block. When null, the instance_interruption_behavior field will be omitted from the resulting object.
  • instance_type (string): Set the instance_type field on the resulting resource block. When null, the instance_type field will be omitted from the resulting object.
  • ipv6_address_count (number): Set the ipv6_address_count field on the resulting resource block. When null, the ipv6_address_count field will be omitted from the resulting object.
  • ipv6_addresses (list): Set the ipv6_addresses field on the resulting resource block. When null, the ipv6_addresses field will be omitted from the resulting object.
  • key_name (string): Set the key_name field on the resulting resource block. When null, the key_name field will be omitted from the resulting object.
  • launch_group (string): Set the launch_group field on the resulting resource block. When null, the launch_group field will be omitted from the resulting object.
  • monitoring (bool): Set the monitoring field on the resulting resource block. When null, the monitoring field will be omitted from the resulting object.
  • placement_group (string): Set the placement_group field on the resulting resource block. When null, the placement_group field will be omitted from the resulting object.
  • placement_partition_number (number): Set the placement_partition_number field on the resulting resource block. When null, the placement_partition_number field will be omitted from the resulting object.
  • private_ip (string): Set the private_ip field on the resulting resource block. When null, the private_ip field will be omitted from the resulting object.
  • secondary_private_ips (list): Set the secondary_private_ips field on the resulting resource block. When null, the secondary_private_ips field will be omitted from the resulting object.
  • security_groups (list): Set the security_groups field on the resulting resource block. When null, the security_groups field will be omitted from the resulting object.
  • source_dest_check (bool): Set the source_dest_check field on the resulting resource block. When null, the source_dest_check field will be omitted from the resulting object.
  • spot_price (string): Set the spot_price field on the resulting resource block. When null, the spot_price field will be omitted from the resulting object.
  • spot_type (string): Set the spot_type field on the resulting resource block. When null, the spot_type field will be omitted from the resulting object.
  • subnet_id (string): Set the subnet_id field on the resulting resource block. When null, the subnet_id field will be omitted from the resulting object.
  • tags (obj): Set the tags field on the resulting resource block. When null, the tags field will be omitted from the resulting object.
  • tags_all (obj): Set the tags_all field on the resulting resource block. When null, the tags_all field will be omitted from the resulting object.
  • tenancy (string): Set the tenancy field on the resulting resource block. When null, the tenancy field will be omitted from the resulting object.
  • user_data (string): Set the user_data field on the resulting resource block. When null, the user_data field will be omitted from the resulting object.
  • user_data_base64 (string): Set the user_data_base64 field on the resulting resource block. When null, the user_data_base64 field will be omitted from the resulting object.
  • user_data_replace_on_change (bool): Set the user_data_replace_on_change field on the resulting resource block. When null, the user_data_replace_on_change field will be omitted from the resulting object.
  • valid_from (string): Set the valid_from field on the resulting resource block. When null, the valid_from field will be omitted from the resulting object.
  • valid_until (string): Set the valid_until field on the resulting resource block. When null, the valid_until field will be omitted from the resulting object.
  • volume_tags (obj): Set the volume_tags field on the resulting resource block. When null, the volume_tags field will be omitted from the resulting object.
  • vpc_security_group_ids (list): Set the vpc_security_group_ids field on the resulting resource block. When null, the vpc_security_group_ids field will be omitted from the resulting object.
  • wait_for_fulfillment (bool): Set the wait_for_fulfillment field on the resulting resource block. When null, the wait_for_fulfillment field will be omitted from the resulting object.
  • capacity_reservation_specification (list[obj]): Set the capacity_reservation_specification field on the resulting resource block. When null, the capacity_reservation_specification sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.capacity_reservation_specification.new constructor.
  • cpu_options (list[obj]): Set the cpu_options field on the resulting resource block. When null, the cpu_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.cpu_options.new constructor.
  • credit_specification (list[obj]): Set the credit_specification field on the resulting resource block. When null, the credit_specification sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.credit_specification.new constructor.
  • ebs_block_device (list[obj]): Set the ebs_block_device field on the resulting resource block. When null, the ebs_block_device sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.ebs_block_device.new constructor.
  • enclave_options (list[obj]): Set the enclave_options field on the resulting resource block. When null, the enclave_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.enclave_options.new constructor.
  • ephemeral_block_device (list[obj]): Set the ephemeral_block_device field on the resulting resource block. When null, the ephemeral_block_device sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.ephemeral_block_device.new constructor.
  • launch_template (list[obj]): Set the launch_template field on the resulting resource block. When null, the launch_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.spot_instance_request.launch_template.new constructor.
  • maintenance_options (list[obj]): Set the maintenance_options field on the resulting resource block. When null, the maintenance_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.maintenance_options.new constructor.
  • metadata_options (list[obj]): Set the metadata_options field on the resulting resource block. When null, the metadata_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.metadata_options.new constructor.
  • network_interface (list[obj]): Set the network_interface field on the resulting resource block. When null, the network_interface sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.network_interface.new constructor.
  • private_dns_name_options (list[obj]): Set the private_dns_name_options field on the resulting resource block. When null, the private_dns_name_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.private_dns_name_options.new constructor.
  • root_block_device (list[obj]): Set the root_block_device field on the resulting resource block. When null, the root_block_device sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.root_block_device.new constructor.
  • timeouts (obj): Set the timeouts field on the resulting resource block. When null, the timeouts sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.timeouts.new constructor.

Returns:

  • A mixin object that injects the new resource into the root Terraform configuration.

fn newAttrs

newAttrs()

aws.spot_instance_request.newAttrs constructs a new object with attributes and blocks configured for the spot_instance_request Terraform resource.

Unlike aws.spot_instance_request.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:

  • ami (string): Set the ami field on the resulting object. When null, the ami field will be omitted from the resulting object.
  • associate_public_ip_address (bool): Set the associate_public_ip_address field on the resulting object. When null, the associate_public_ip_address field will be omitted from the resulting object.
  • availability_zone (string): Set the availability_zone field on the resulting object. When null, the availability_zone field will be omitted from the resulting object.
  • block_duration_minutes (number): Set the block_duration_minutes field on the resulting object. When null, the block_duration_minutes field will be omitted from the resulting object.
  • cpu_core_count (number): Set the cpu_core_count field on the resulting object. When null, the cpu_core_count field will be omitted from the resulting object.
  • cpu_threads_per_core (number): Set the cpu_threads_per_core field on the resulting object. When null, the cpu_threads_per_core field will be omitted from the resulting object.
  • disable_api_stop (bool): Set the disable_api_stop field on the resulting object. When null, the disable_api_stop field will be omitted from the resulting object.
  • disable_api_termination (bool): Set the disable_api_termination field on the resulting object. When null, the disable_api_termination field will be omitted from the resulting object.
  • ebs_optimized (bool): Set the ebs_optimized field on the resulting object. When null, the ebs_optimized field will be omitted from the resulting object.
  • get_password_data (bool): Set the get_password_data field on the resulting object. When null, the get_password_data field will be omitted from the resulting object.
  • hibernation (bool): Set the hibernation field on the resulting object. When null, the hibernation field will be omitted from the resulting object.
  • host_id (string): Set the host_id field on the resulting object. When null, the host_id field will be omitted from the resulting object.
  • host_resource_group_arn (string): Set the host_resource_group_arn field on the resulting object. When null, the host_resource_group_arn field will be omitted from the resulting object.
  • iam_instance_profile (string): Set the iam_instance_profile field on the resulting object. When null, the iam_instance_profile field will be omitted from the resulting object.
  • instance_initiated_shutdown_behavior (string): Set the instance_initiated_shutdown_behavior field on the resulting object. When null, the instance_initiated_shutdown_behavior field will be omitted from the resulting object.
  • instance_interruption_behavior (string): Set the instance_interruption_behavior field on the resulting object. When null, the instance_interruption_behavior field will be omitted from the resulting object.
  • instance_type (string): Set the instance_type field on the resulting object. When null, the instance_type field will be omitted from the resulting object.
  • ipv6_address_count (number): Set the ipv6_address_count field on the resulting object. When null, the ipv6_address_count field will be omitted from the resulting object.
  • ipv6_addresses (list): Set the ipv6_addresses field on the resulting object. When null, the ipv6_addresses field will be omitted from the resulting object.
  • key_name (string): Set the key_name field on the resulting object. When null, the key_name field will be omitted from the resulting object.
  • launch_group (string): Set the launch_group field on the resulting object. When null, the launch_group field will be omitted from the resulting object.
  • monitoring (bool): Set the monitoring field on the resulting object. When null, the monitoring field will be omitted from the resulting object.
  • placement_group (string): Set the placement_group field on the resulting object. When null, the placement_group field will be omitted from the resulting object.
  • placement_partition_number (number): Set the placement_partition_number field on the resulting object. When null, the placement_partition_number field will be omitted from the resulting object.
  • private_ip (string): Set the private_ip field on the resulting object. When null, the private_ip field will be omitted from the resulting object.
  • secondary_private_ips (list): Set the secondary_private_ips field on the resulting object. When null, the secondary_private_ips field will be omitted from the resulting object.
  • security_groups (list): Set the security_groups field on the resulting object. When null, the security_groups field will be omitted from the resulting object.
  • source_dest_check (bool): Set the source_dest_check field on the resulting object. When null, the source_dest_check field will be omitted from the resulting object.
  • spot_price (string): Set the spot_price field on the resulting object. When null, the spot_price field will be omitted from the resulting object.
  • spot_type (string): Set the spot_type field on the resulting object. When null, the spot_type field will be omitted from the resulting object.
  • subnet_id (string): Set the subnet_id field on the resulting object. When null, the subnet_id field will be omitted from the resulting object.
  • tags (obj): Set the tags field on the resulting object. When null, the tags field will be omitted from the resulting object.
  • tags_all (obj): Set the tags_all field on the resulting object. When null, the tags_all field will be omitted from the resulting object.
  • tenancy (string): Set the tenancy field on the resulting object. When null, the tenancy field will be omitted from the resulting object.
  • user_data (string): Set the user_data field on the resulting object. When null, the user_data field will be omitted from the resulting object.
  • user_data_base64 (string): Set the user_data_base64 field on the resulting object. When null, the user_data_base64 field will be omitted from the resulting object.
  • user_data_replace_on_change (bool): Set the user_data_replace_on_change field on the resulting object. When null, the user_data_replace_on_change field will be omitted from the resulting object.
  • valid_from (string): Set the valid_from field on the resulting object. When null, the valid_from field will be omitted from the resulting object.
  • valid_until (string): Set the valid_until field on the resulting object. When null, the valid_until field will be omitted from the resulting object.
  • volume_tags (obj): Set the volume_tags field on the resulting object. When null, the volume_tags field will be omitted from the resulting object.
  • vpc_security_group_ids (list): Set the vpc_security_group_ids field on the resulting object. When null, the vpc_security_group_ids field will be omitted from the resulting object.
  • wait_for_fulfillment (bool): Set the wait_for_fulfillment field on the resulting object. When null, the wait_for_fulfillment field will be omitted from the resulting object.
  • capacity_reservation_specification (list[obj]): Set the capacity_reservation_specification field on the resulting object. When null, the capacity_reservation_specification sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.capacity_reservation_specification.new constructor.
  • cpu_options (list[obj]): Set the cpu_options field on the resulting object. When null, the cpu_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.cpu_options.new constructor.
  • credit_specification (list[obj]): Set the credit_specification field on the resulting object. When null, the credit_specification sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.credit_specification.new constructor.
  • ebs_block_device (list[obj]): Set the ebs_block_device field on the resulting object. When null, the ebs_block_device sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.ebs_block_device.new constructor.
  • enclave_options (list[obj]): Set the enclave_options field on the resulting object. When null, the enclave_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.enclave_options.new constructor.
  • ephemeral_block_device (list[obj]): Set the ephemeral_block_device field on the resulting object. When null, the ephemeral_block_device sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.ephemeral_block_device.new constructor.
  • launch_template (list[obj]): Set the launch_template field on the resulting object. When null, the launch_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.spot_instance_request.launch_template.new constructor.
  • maintenance_options (list[obj]): Set the maintenance_options field on the resulting object. When null, the maintenance_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.maintenance_options.new constructor.
  • metadata_options (list[obj]): Set the metadata_options field on the resulting object. When null, the metadata_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.metadata_options.new constructor.
  • network_interface (list[obj]): Set the network_interface field on the resulting object. When null, the network_interface sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.network_interface.new constructor.
  • private_dns_name_options (list[obj]): Set the private_dns_name_options field on the resulting object. When null, the private_dns_name_options sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.private_dns_name_options.new constructor.
  • root_block_device (list[obj]): Set the root_block_device field on the resulting object. When null, the root_block_device sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.root_block_device.new constructor.
  • timeouts (obj): Set the timeouts field on the resulting object. When null, the timeouts sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.timeouts.new constructor.

Returns:

  • An attribute object that can be used with tf.withResource to construct a new spot_instance_request resource into the root Terraform configuration.

fn withAmi

withAmi()

aws.string.withAmi constructs a mixin object that can be merged into the string Terraform resource block to set or update the ami field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the ami field.

fn withAssociatePublicIpAddress

withAssociatePublicIpAddress()

aws.bool.withAssociatePublicIpAddress constructs a mixin object that can be merged into the bool Terraform resource block to set or update the associate_public_ip_address field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the associate_public_ip_address field.

fn withAvailabilityZone

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 the availability_zone field.

fn withBlockDurationMinutes

withBlockDurationMinutes()

aws.number.withBlockDurationMinutes constructs a mixin object that can be merged into the number Terraform resource block to set or update the block_duration_minutes field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (number): The value to set for the block_duration_minutes field.

fn withCapacityReservationSpecification

withCapacityReservationSpecification()

aws.list[obj].withCapacityReservationSpecification constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the capacity_reservation_specification 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].withCapacityReservationSpecificationMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the capacity_reservation_specification field.

fn withCapacityReservationSpecificationMixin

withCapacityReservationSpecificationMixin()

aws.list[obj].withCapacityReservationSpecificationMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the capacity_reservation_specification 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].withCapacityReservationSpecification function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the capacity_reservation_specification field.

fn withCpuCoreCount

withCpuCoreCount()

aws.number.withCpuCoreCount constructs a mixin object that can be merged into the number Terraform resource block to set or update the cpu_core_count field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (number): The value to set for the cpu_core_count field.

fn withCpuOptions

withCpuOptions()

aws.list[obj].withCpuOptions constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the cpu_options 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].withCpuOptionsMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the cpu_options field.

fn withCpuOptionsMixin

withCpuOptionsMixin()

aws.list[obj].withCpuOptionsMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the cpu_options 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].withCpuOptions function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the cpu_options field.

fn withCpuThreadsPerCore

withCpuThreadsPerCore()

aws.number.withCpuThreadsPerCore constructs a mixin object that can be merged into the number Terraform resource block to set or update the cpu_threads_per_core field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (number): The value to set for the cpu_threads_per_core field.

fn withCreditSpecification

withCreditSpecification()

aws.list[obj].withCreditSpecification constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the credit_specification 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].withCreditSpecificationMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the credit_specification field.

fn withCreditSpecificationMixin

withCreditSpecificationMixin()

aws.list[obj].withCreditSpecificationMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the credit_specification 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].withCreditSpecification function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the credit_specification field.

fn withDisableApiStop

withDisableApiStop()

aws.bool.withDisableApiStop constructs a mixin object that can be merged into the bool Terraform resource block to set or update the disable_api_stop field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the disable_api_stop field.

fn withDisableApiTermination

withDisableApiTermination()

aws.bool.withDisableApiTermination constructs a mixin object that can be merged into the bool Terraform resource block to set or update the disable_api_termination field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the disable_api_termination field.

fn withEbsBlockDevice

withEbsBlockDevice()

aws.list[obj].withEbsBlockDevice constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the ebs_block_device 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].withEbsBlockDeviceMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the ebs_block_device field.

fn withEbsBlockDeviceMixin

withEbsBlockDeviceMixin()

aws.list[obj].withEbsBlockDeviceMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the ebs_block_device 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].withEbsBlockDevice function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the ebs_block_device field.

fn withEbsOptimized

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 the ebs_optimized field.

fn withEnclaveOptions

withEnclaveOptions()

aws.list[obj].withEnclaveOptions constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the enclave_options 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].withEnclaveOptionsMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the enclave_options field.

fn withEnclaveOptionsMixin

withEnclaveOptionsMixin()

aws.list[obj].withEnclaveOptionsMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the enclave_options 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].withEnclaveOptions function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the enclave_options field.

fn withEphemeralBlockDevice

withEphemeralBlockDevice()

aws.list[obj].withEphemeralBlockDevice constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the ephemeral_block_device 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].withEphemeralBlockDeviceMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the ephemeral_block_device field.

fn withEphemeralBlockDeviceMixin

withEphemeralBlockDeviceMixin()

aws.list[obj].withEphemeralBlockDeviceMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the ephemeral_block_device 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].withEphemeralBlockDevice function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the ephemeral_block_device field.

fn withGetPasswordData

withGetPasswordData()

aws.bool.withGetPasswordData constructs a mixin object that can be merged into the bool Terraform resource block to set or update the get_password_data field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the get_password_data field.

fn withHibernation

withHibernation()

aws.bool.withHibernation constructs a mixin object that can be merged into the bool Terraform resource block to set or update the hibernation field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the hibernation field.

fn withHostId

withHostId()

aws.string.withHostId constructs a mixin object that can be merged into the string Terraform resource block to set or update the host_id field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the host_id field.

fn withHostResourceGroupArn

withHostResourceGroupArn()

aws.string.withHostResourceGroupArn constructs a mixin object that can be merged into the string Terraform resource block to set or update the host_resource_group_arn field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the host_resource_group_arn field.

fn withIamInstanceProfile

withIamInstanceProfile()

aws.string.withIamInstanceProfile constructs a mixin object that can be merged into the string Terraform resource block to set or update the iam_instance_profile field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the iam_instance_profile field.

fn withInstanceInitiatedShutdownBehavior

withInstanceInitiatedShutdownBehavior()

aws.string.withInstanceInitiatedShutdownBehavior constructs a mixin object that can be merged into the string Terraform resource block to set or update the instance_initiated_shutdown_behavior field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the instance_initiated_shutdown_behavior field.

fn withInstanceInterruptionBehavior

withInstanceInterruptionBehavior()

aws.string.withInstanceInterruptionBehavior constructs a mixin object that can be merged into the string Terraform resource block to set or update the instance_interruption_behavior field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the instance_interruption_behavior field.

fn withInstanceType

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 the instance_type field.

fn withIpv6AddressCount

withIpv6AddressCount()

aws.number.withIpv6AddressCount constructs a mixin object that can be merged into the number Terraform resource block to set or update the ipv6_address_count field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (number): The value to set for the ipv6_address_count field.

fn withIpv6Addresses

withIpv6Addresses()

aws.list.withIpv6Addresses constructs a mixin object that can be merged into the list Terraform resource block to set or update the ipv6_addresses field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list): The value to set for the ipv6_addresses field.

fn withKeyName

withKeyName()

aws.string.withKeyName constructs a mixin object that can be merged into the string Terraform resource block to set or update the key_name field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the key_name field.

fn withLaunchGroup

withLaunchGroup()

aws.string.withLaunchGroup constructs a mixin object that can be merged into the string Terraform resource block to set or update the launch_group field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the launch_group field.

fn withLaunchTemplate

withLaunchTemplate()

aws.list[obj].withLaunchTemplate constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the launch_template 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].withLaunchTemplateMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the launch_template field.

fn withLaunchTemplateMixin

withLaunchTemplateMixin()

aws.list[obj].withLaunchTemplateMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the launch_template 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].withLaunchTemplate function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the launch_template field.

fn withMaintenanceOptions

withMaintenanceOptions()

aws.list[obj].withMaintenanceOptions constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the maintenance_options 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].withMaintenanceOptionsMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the maintenance_options field.

fn withMaintenanceOptionsMixin

withMaintenanceOptionsMixin()

aws.list[obj].withMaintenanceOptionsMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the maintenance_options 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].withMaintenanceOptions function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the maintenance_options field.

fn withMetadataOptions

withMetadataOptions()

aws.list[obj].withMetadataOptions constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the metadata_options 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].withMetadataOptionsMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the metadata_options field.

fn withMetadataOptionsMixin

withMetadataOptionsMixin()

aws.list[obj].withMetadataOptionsMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the metadata_options 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].withMetadataOptions function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the metadata_options field.

fn withMonitoring

withMonitoring()

aws.bool.withMonitoring constructs a mixin object that can be merged into the bool Terraform resource block to set or update the monitoring field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the monitoring field.

fn withNetworkInterface

withNetworkInterface()

aws.list[obj].withNetworkInterface constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the network_interface 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].withNetworkInterfaceMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the network_interface field.

fn withNetworkInterfaceMixin

withNetworkInterfaceMixin()

aws.list[obj].withNetworkInterfaceMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the network_interface 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].withNetworkInterface function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the network_interface field.

fn withPlacementGroup

withPlacementGroup()

aws.string.withPlacementGroup constructs a mixin object that can be merged into the string Terraform resource block to set or update the placement_group field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the placement_group field.

fn withPlacementPartitionNumber

withPlacementPartitionNumber()

aws.number.withPlacementPartitionNumber constructs a mixin object that can be merged into the number Terraform resource block to set or update the placement_partition_number field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (number): The value to set for the placement_partition_number field.

fn withPrivateDnsNameOptions

withPrivateDnsNameOptions()

aws.list[obj].withPrivateDnsNameOptions constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the private_dns_name_options 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].withPrivateDnsNameOptionsMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the private_dns_name_options field.

fn withPrivateDnsNameOptionsMixin

withPrivateDnsNameOptionsMixin()

aws.list[obj].withPrivateDnsNameOptionsMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the private_dns_name_options 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].withPrivateDnsNameOptions function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the private_dns_name_options field.

fn withPrivateIp

withPrivateIp()

aws.string.withPrivateIp constructs a mixin object that can be merged into the string Terraform resource block to set or update the private_ip field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the private_ip field.

fn withRootBlockDevice

withRootBlockDevice()

aws.list[obj].withRootBlockDevice constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the root_block_device 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].withRootBlockDeviceMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the root_block_device field.

fn withRootBlockDeviceMixin

withRootBlockDeviceMixin()

aws.list[obj].withRootBlockDeviceMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the root_block_device 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].withRootBlockDevice function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the root_block_device field.

fn withSecondaryPrivateIps

withSecondaryPrivateIps()

aws.list.withSecondaryPrivateIps constructs a mixin object that can be merged into the list Terraform resource block to set or update the secondary_private_ips field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list): The value to set for the secondary_private_ips field.

fn withSecurityGroups

withSecurityGroups()

aws.list.withSecurityGroups constructs a mixin object that can be merged into the list Terraform resource block to set or update the security_groups field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list): The value to set for the security_groups field.

fn withSourceDestCheck

withSourceDestCheck()

aws.bool.withSourceDestCheck constructs a mixin object that can be merged into the bool Terraform resource block to set or update the source_dest_check field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the source_dest_check field.

fn withSpotPrice

withSpotPrice()

aws.string.withSpotPrice constructs a mixin object that can be merged into the string Terraform resource block to set or update the spot_price field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the spot_price field.

fn withSpotType

withSpotType()

aws.string.withSpotType constructs a mixin object that can be merged into the string Terraform resource block to set or update the spot_type field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the spot_type field.

fn withSubnetId

withSubnetId()

aws.string.withSubnetId constructs a mixin object that can be merged into the string Terraform resource block to set or update the subnet_id field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the subnet_id field.

fn withTags

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 the tags field.

fn withTagsAll

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 the tags_all field.

fn withTenancy

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 the tenancy field.

fn withTimeouts

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 the timeouts field.

fn withTimeoutsMixin

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 the timeouts field.

fn withUserData

withUserData()

aws.string.withUserData constructs a mixin object that can be merged into the string Terraform resource block to set or update the user_data field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the user_data field.

fn withUserDataBase64

withUserDataBase64()

aws.string.withUserDataBase64 constructs a mixin object that can be merged into the string Terraform resource block to set or update the user_data_base64 field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the user_data_base64 field.

fn withUserDataReplaceOnChange

withUserDataReplaceOnChange()

aws.bool.withUserDataReplaceOnChange constructs a mixin object that can be merged into the bool Terraform resource block to set or update the user_data_replace_on_change field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the user_data_replace_on_change field.

fn withValidFrom

withValidFrom()

aws.string.withValidFrom constructs a mixin object that can be merged into the string Terraform resource block to set or update the valid_from field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the valid_from field.

fn withValidUntil

withValidUntil()

aws.string.withValidUntil constructs a mixin object that can be merged into the string Terraform resource block to set or update the valid_until field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the valid_until field.

fn withVolumeTags

withVolumeTags()

aws.obj.withVolumeTags constructs a mixin object that can be merged into the obj Terraform resource block to set or update the volume_tags field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (obj): The value to set for the volume_tags field.

fn withVpcSecurityGroupIds

withVpcSecurityGroupIds()

aws.list.withVpcSecurityGroupIds constructs a mixin object that can be merged into the list Terraform resource block to set or update the vpc_security_group_ids field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list): The value to set for the vpc_security_group_ids field.

fn withWaitForFulfillment

withWaitForFulfillment()

aws.bool.withWaitForFulfillment constructs a mixin object that can be merged into the bool Terraform resource block to set or update the wait_for_fulfillment field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (bool): The value to set for the wait_for_fulfillment field.

obj capacity_reservation_specification

fn capacity_reservation_specification.new

new()

aws.spot_instance_request.capacity_reservation_specification.new constructs a new object with attributes and blocks configured for the capacity_reservation_specification Terraform sub block.

Args:

  • capacity_reservation_preference (string): Set the capacity_reservation_preference field on the resulting object. When null, the capacity_reservation_preference field will be omitted from the resulting object.
  • capacity_reservation_target (list[obj]): Set the capacity_reservation_target field on the resulting object. When null, the capacity_reservation_target sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.spot_instance_request.capacity_reservation_specification.capacity_reservation_target.new constructor.

Returns:

  • An attribute object that represents the capacity_reservation_specification sub block.

obj capacity_reservation_specification.capacity_reservation_target

fn capacity_reservation_specification.capacity_reservation_target.new

new()

aws.spot_instance_request.capacity_reservation_specification.capacity_reservation_target.new constructs a new object with attributes and blocks configured for the capacity_reservation_target Terraform sub block.

Args:

  • capacity_reservation_id (string): Set the capacity_reservation_id field on the resulting object. When null, the capacity_reservation_id field will be omitted from the resulting object.
  • capacity_reservation_resource_group_arn (string): Set the capacity_reservation_resource_group_arn field on the resulting object. When null, the capacity_reservation_resource_group_arn field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the capacity_reservation_target sub block.

obj cpu_options

fn cpu_options.new

new()

aws.spot_instance_request.cpu_options.new constructs a new object with attributes and blocks configured for the cpu_options Terraform sub block.

Args:

  • amd_sev_snp (string): Set the amd_sev_snp field on the resulting object. When null, the amd_sev_snp field will be omitted from the resulting object.
  • core_count (number): Set the core_count field on the resulting object. When null, the core_count field will be omitted from the resulting object.
  • threads_per_core (number): Set the threads_per_core field on the resulting object. When null, the threads_per_core field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the cpu_options sub block.

obj credit_specification

fn credit_specification.new

new()

aws.spot_instance_request.credit_specification.new constructs a new object with attributes and blocks configured for the credit_specification Terraform sub block.

Args:

  • cpu_credits (string): Set the cpu_credits field on the resulting object. When null, the cpu_credits field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the credit_specification sub block.

obj ebs_block_device

fn ebs_block_device.new

new()

aws.spot_instance_request.ebs_block_device.new constructs a new object with attributes and blocks configured for the ebs_block_device Terraform sub block.

Args:

  • delete_on_termination (bool): Set the delete_on_termination field on the resulting object. When null, the delete_on_termination field will be omitted from the resulting object.
  • device_name (string): Set the device_name field on the resulting object.
  • encrypted (bool): Set the encrypted field on the resulting object. When null, the encrypted field will be omitted from the resulting object.
  • iops (number): Set the iops field on the resulting object. When null, the iops field will be omitted from the resulting object.
  • kms_key_id (string): Set the kms_key_id field on the resulting object. When null, the kms_key_id field will be omitted from the resulting object.
  • snapshot_id (string): Set the snapshot_id field on the resulting object. When null, the snapshot_id field will be omitted from the resulting object.
  • tags (obj): Set the tags field on the resulting object. When null, the tags field will be omitted from the resulting object.
  • throughput (number): Set the throughput field on the resulting object. When null, the throughput field will be omitted from the resulting object.
  • volume_size (number): Set the volume_size field on the resulting object. When null, the volume_size field will be omitted from the resulting object.
  • volume_type (string): Set the volume_type field on the resulting object. When null, the volume_type field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the ebs_block_device sub block.

obj enclave_options

fn enclave_options.new

new()

aws.spot_instance_request.enclave_options.new constructs a new object with attributes and blocks configured for the enclave_options Terraform sub block.

Args:

  • enabled (bool): Set the enabled field on the resulting object. When null, the enabled field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the enclave_options sub block.

obj ephemeral_block_device

fn ephemeral_block_device.new

new()

aws.spot_instance_request.ephemeral_block_device.new constructs a new object with attributes and blocks configured for the ephemeral_block_device Terraform sub block.

Args:

  • device_name (string): Set the device_name field on the resulting object.
  • no_device (bool): Set the no_device field on the resulting object. When null, the no_device field will be omitted from the resulting object.
  • virtual_name (string): Set the virtual_name field on the resulting object. When null, the virtual_name field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the ephemeral_block_device sub block.

obj launch_template

fn launch_template.new

new()

aws.spot_instance_request.launch_template.new constructs a new object with attributes and blocks configured for the launch_template Terraform sub block.

Args:

  • name (string): Set the name field on the resulting object. When null, the name field will be omitted from the resulting object.
  • version (string): Set the version field on the resulting object. When null, the version field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the launch_template sub block.

obj maintenance_options

fn maintenance_options.new

new()

aws.spot_instance_request.maintenance_options.new constructs a new object with attributes and blocks configured for the maintenance_options Terraform sub block.

Args:

  • auto_recovery (string): Set the auto_recovery field on the resulting object. When null, the auto_recovery field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the maintenance_options sub block.

obj metadata_options

fn metadata_options.new

new()

aws.spot_instance_request.metadata_options.new constructs a new object with attributes and blocks configured for the metadata_options Terraform sub block.

Args:

  • http_endpoint (string): Set the http_endpoint field on the resulting object. When null, the http_endpoint field will be omitted from the resulting object.
  • http_protocol_ipv6 (string): Set the http_protocol_ipv6 field on the resulting object. When null, the http_protocol_ipv6 field will be omitted from the resulting object.
  • http_put_response_hop_limit (number): Set the http_put_response_hop_limit field on the resulting object. When null, the http_put_response_hop_limit field will be omitted from the resulting object.
  • http_tokens (string): Set the http_tokens field on the resulting object. When null, the http_tokens field will be omitted from the resulting object.
  • instance_metadata_tags (string): Set the instance_metadata_tags field on the resulting object. When null, the instance_metadata_tags field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the metadata_options sub block.

obj network_interface

fn network_interface.new

new()

aws.spot_instance_request.network_interface.new constructs a new object with attributes and blocks configured for the network_interface Terraform sub block.

Args:

  • delete_on_termination (bool): Set the delete_on_termination field on the resulting object. When null, the delete_on_termination field will be omitted from the resulting object.
  • device_index (number): Set the device_index field on the resulting object.
  • network_card_index (number): Set the network_card_index field on the resulting object. When null, the network_card_index field will be omitted from the resulting object.
  • network_interface_id (string): Set the network_interface_id field on the resulting object.

Returns:

  • An attribute object that represents the network_interface sub block.

obj private_dns_name_options

fn private_dns_name_options.new

new()

aws.spot_instance_request.private_dns_name_options.new constructs a new object with attributes and blocks configured for the private_dns_name_options Terraform sub block.

Args:

  • enable_resource_name_dns_a_record (bool): Set the enable_resource_name_dns_a_record field on the resulting object. When null, the enable_resource_name_dns_a_record field will be omitted from the resulting object.
  • enable_resource_name_dns_aaaa_record (bool): Set the enable_resource_name_dns_aaaa_record field on the resulting object. When null, the enable_resource_name_dns_aaaa_record field will be omitted from the resulting object.
  • hostname_type (string): Set the hostname_type field on the resulting object. When null, the hostname_type field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the private_dns_name_options sub block.

obj root_block_device

fn root_block_device.new

new()

aws.spot_instance_request.root_block_device.new constructs a new object with attributes and blocks configured for the root_block_device Terraform sub block.

Args:

  • delete_on_termination (bool): Set the delete_on_termination field on the resulting object. When null, the delete_on_termination field will be omitted from the resulting object.
  • encrypted (bool): Set the encrypted field on the resulting object. When null, the encrypted field will be omitted from the resulting object.
  • iops (number): Set the iops field on the resulting object. When null, the iops field will be omitted from the resulting object.
  • kms_key_id (string): Set the kms_key_id field on the resulting object. When null, the kms_key_id field will be omitted from the resulting object.
  • tags (obj): Set the tags field on the resulting object. When null, the tags field will be omitted from the resulting object.
  • throughput (number): Set the throughput field on the resulting object. When null, the throughput field will be omitted from the resulting object.
  • volume_size (number): Set the volume_size field on the resulting object. When null, the volume_size field will be omitted from the resulting object.
  • volume_type (string): Set the volume_type field on the resulting object. When null, the volume_type field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the root_block_device sub block.

obj timeouts

fn timeouts.new

new()

aws.spot_instance_request.timeouts.new constructs a new object with attributes and blocks configured for the timeouts Terraform sub block.

Args:

  • create (string): Set the create field on the resulting object. When null, the create field will be omitted from the resulting object.
  • delete (string): Set the delete field on the resulting object. When null, the delete field will be omitted from the resulting object.

Returns:

  • An attribute object that represents the timeouts sub block.