permalink |
---|
/alb/ |
alb
represents the aws_alb
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAccessLogs()
fn withAccessLogsMixin()
fn withCustomerOwnedIpv4Pool()
fn withDesyncMitigationMode()
fn withDnsRecordClientRoutingPolicy()
fn withDropInvalidHeaderFields()
fn withEnableCrossZoneLoadBalancing()
fn withEnableDeletionProtection()
fn withEnableHttp2()
fn withEnableTlsVersionAndCipherSuiteHeaders()
fn withEnableWafFailOpen()
fn withEnableXffClientPort()
fn withIdleTimeout()
fn withInternal()
fn withIpAddressType()
fn withLoadBalancerType()
fn withName()
fn withNamePrefix()
fn withPreserveHostHeader()
fn withSecurityGroups()
fn withSubnetMapping()
fn withSubnetMappingMixin()
fn withSubnets()
fn withTags()
fn withTagsAll()
fn withTimeouts()
fn withTimeoutsMixin()
fn withXffHeaderProcessingMode()
obj access_logs
obj subnet_mapping
obj timeouts
new()
aws.alb.new
injects a new aws_alb
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.alb.new('some_id')
You can get the reference to the id
field of the created aws.alb
using the reference:
$._ref.aws_alb.some_id.get('id')
This is the same as directly entering "${ aws_alb.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.customer_owned_ipv4_pool
(string
): Set thecustomer_owned_ipv4_pool
field on the resulting resource block. Whennull
, thecustomer_owned_ipv4_pool
field will be omitted from the resulting object.desync_mitigation_mode
(string
): Set thedesync_mitigation_mode
field on the resulting resource block. Whennull
, thedesync_mitigation_mode
field will be omitted from the resulting object.dns_record_client_routing_policy
(string
): Set thedns_record_client_routing_policy
field on the resulting resource block. Whennull
, thedns_record_client_routing_policy
field will be omitted from the resulting object.drop_invalid_header_fields
(bool
): Set thedrop_invalid_header_fields
field on the resulting resource block. Whennull
, thedrop_invalid_header_fields
field will be omitted from the resulting object.enable_cross_zone_load_balancing
(bool
): Set theenable_cross_zone_load_balancing
field on the resulting resource block. Whennull
, theenable_cross_zone_load_balancing
field will be omitted from the resulting object.enable_deletion_protection
(bool
): Set theenable_deletion_protection
field on the resulting resource block. Whennull
, theenable_deletion_protection
field will be omitted from the resulting object.enable_http2
(bool
): Set theenable_http2
field on the resulting resource block. Whennull
, theenable_http2
field will be omitted from the resulting object.enable_tls_version_and_cipher_suite_headers
(bool
): Set theenable_tls_version_and_cipher_suite_headers
field on the resulting resource block. Whennull
, theenable_tls_version_and_cipher_suite_headers
field will be omitted from the resulting object.enable_waf_fail_open
(bool
): Set theenable_waf_fail_open
field on the resulting resource block. Whennull
, theenable_waf_fail_open
field will be omitted from the resulting object.enable_xff_client_port
(bool
): Set theenable_xff_client_port
field on the resulting resource block. Whennull
, theenable_xff_client_port
field will be omitted from the resulting object.idle_timeout
(number
): Set theidle_timeout
field on the resulting resource block. Whennull
, theidle_timeout
field will be omitted from the resulting object.internal
(bool
): Set theinternal
field on the resulting resource block. Whennull
, theinternal
field will be omitted from the resulting object.ip_address_type
(string
): Set theip_address_type
field on the resulting resource block. Whennull
, theip_address_type
field will be omitted from the resulting object.load_balancer_type
(string
): Set theload_balancer_type
field on the resulting resource block. Whennull
, theload_balancer_type
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting resource block. Whennull
, thename
field will be omitted from the resulting object.name_prefix
(string
): Set thename_prefix
field on the resulting resource block. Whennull
, thename_prefix
field will be omitted from the resulting object.preserve_host_header
(bool
): Set thepreserve_host_header
field on the resulting resource block. Whennull
, thepreserve_host_header
field will be omitted from the resulting object.security_groups
(list
): Set thesecurity_groups
field on the resulting resource block. Whennull
, thesecurity_groups
field will be omitted from the resulting object.subnets
(list
): Set thesubnets
field on the resulting resource block. Whennull
, thesubnets
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.xff_header_processing_mode
(string
): Set thexff_header_processing_mode
field on the resulting resource block. Whennull
, thexff_header_processing_mode
field will be omitted from the resulting object.access_logs
(list[obj]
): Set theaccess_logs
field on the resulting resource block. Whennull
, theaccess_logs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.alb.access_logs.new constructor.subnet_mapping
(list[obj]
): Set thesubnet_mapping
field on the resulting resource block. Whennull
, thesubnet_mapping
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.alb.subnet_mapping.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.alb.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.alb.newAttrs
constructs a new object with attributes and blocks configured for the alb
Terraform resource.
Unlike aws.alb.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:
customer_owned_ipv4_pool
(string
): Set thecustomer_owned_ipv4_pool
field on the resulting object. Whennull
, thecustomer_owned_ipv4_pool
field will be omitted from the resulting object.desync_mitigation_mode
(string
): Set thedesync_mitigation_mode
field on the resulting object. Whennull
, thedesync_mitigation_mode
field will be omitted from the resulting object.dns_record_client_routing_policy
(string
): Set thedns_record_client_routing_policy
field on the resulting object. Whennull
, thedns_record_client_routing_policy
field will be omitted from the resulting object.drop_invalid_header_fields
(bool
): Set thedrop_invalid_header_fields
field on the resulting object. Whennull
, thedrop_invalid_header_fields
field will be omitted from the resulting object.enable_cross_zone_load_balancing
(bool
): Set theenable_cross_zone_load_balancing
field on the resulting object. Whennull
, theenable_cross_zone_load_balancing
field will be omitted from the resulting object.enable_deletion_protection
(bool
): Set theenable_deletion_protection
field on the resulting object. Whennull
, theenable_deletion_protection
field will be omitted from the resulting object.enable_http2
(bool
): Set theenable_http2
field on the resulting object. Whennull
, theenable_http2
field will be omitted from the resulting object.enable_tls_version_and_cipher_suite_headers
(bool
): Set theenable_tls_version_and_cipher_suite_headers
field on the resulting object. Whennull
, theenable_tls_version_and_cipher_suite_headers
field will be omitted from the resulting object.enable_waf_fail_open
(bool
): Set theenable_waf_fail_open
field on the resulting object. Whennull
, theenable_waf_fail_open
field will be omitted from the resulting object.enable_xff_client_port
(bool
): Set theenable_xff_client_port
field on the resulting object. Whennull
, theenable_xff_client_port
field will be omitted from the resulting object.idle_timeout
(number
): Set theidle_timeout
field on the resulting object. Whennull
, theidle_timeout
field will be omitted from the resulting object.internal
(bool
): Set theinternal
field on the resulting object. Whennull
, theinternal
field will be omitted from the resulting object.ip_address_type
(string
): Set theip_address_type
field on the resulting object. Whennull
, theip_address_type
field will be omitted from the resulting object.load_balancer_type
(string
): Set theload_balancer_type
field on the resulting object. Whennull
, theload_balancer_type
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting object. Whennull
, thename
field will be omitted from the resulting object.name_prefix
(string
): Set thename_prefix
field on the resulting object. Whennull
, thename_prefix
field will be omitted from the resulting object.preserve_host_header
(bool
): Set thepreserve_host_header
field on the resulting object. Whennull
, thepreserve_host_header
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. Whennull
, thesubnets
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.xff_header_processing_mode
(string
): Set thexff_header_processing_mode
field on the resulting object. Whennull
, thexff_header_processing_mode
field will be omitted from the resulting object.access_logs
(list[obj]
): Set theaccess_logs
field on the resulting object. Whennull
, theaccess_logs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.alb.access_logs.new constructor.subnet_mapping
(list[obj]
): Set thesubnet_mapping
field on the resulting object. Whennull
, thesubnet_mapping
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.alb.subnet_mapping.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.alb.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
alb
resource into the root Terraform configuration.
withAccessLogs()
aws.list[obj].withAccessLogs
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the access_logs 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].withAccessLogsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theaccess_logs
field.
withAccessLogsMixin()
aws.list[obj].withAccessLogsMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the access_logs 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].withAccessLogs
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theaccess_logs
field.
withCustomerOwnedIpv4Pool()
aws.string.withCustomerOwnedIpv4Pool
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the customer_owned_ipv4_pool field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecustomer_owned_ipv4_pool
field.
withDesyncMitigationMode()
aws.string.withDesyncMitigationMode
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the desync_mitigation_mode field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedesync_mitigation_mode
field.
withDnsRecordClientRoutingPolicy()
aws.string.withDnsRecordClientRoutingPolicy
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the dns_record_client_routing_policy field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedns_record_client_routing_policy
field.
withDropInvalidHeaderFields()
aws.bool.withDropInvalidHeaderFields
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the drop_invalid_header_fields field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thedrop_invalid_header_fields
field.
withEnableCrossZoneLoadBalancing()
aws.bool.withEnableCrossZoneLoadBalancing
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_cross_zone_load_balancing field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_cross_zone_load_balancing
field.
withEnableDeletionProtection()
aws.bool.withEnableDeletionProtection
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_deletion_protection field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_deletion_protection
field.
withEnableHttp2()
aws.bool.withEnableHttp2
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_http2 field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_http2
field.
withEnableTlsVersionAndCipherSuiteHeaders()
aws.bool.withEnableTlsVersionAndCipherSuiteHeaders
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_tls_version_and_cipher_suite_headers field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_tls_version_and_cipher_suite_headers
field.
withEnableWafFailOpen()
aws.bool.withEnableWafFailOpen
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_waf_fail_open field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_waf_fail_open
field.
withEnableXffClientPort()
aws.bool.withEnableXffClientPort
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_xff_client_port field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_xff_client_port
field.
withIdleTimeout()
aws.number.withIdleTimeout
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the idle_timeout field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for theidle_timeout
field.
withInternal()
aws.bool.withInternal
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the internal field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theinternal
field.
withIpAddressType()
aws.string.withIpAddressType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the ip_address_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theip_address_type
field.
withLoadBalancerType()
aws.string.withLoadBalancerType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the load_balancer_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theload_balancer_type
field.
withName()
aws.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withNamePrefix()
aws.string.withNamePrefix
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name_prefix field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename_prefix
field.
withPreserveHostHeader()
aws.bool.withPreserveHostHeader
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the preserve_host_header field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thepreserve_host_header
field.
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 thesecurity_groups
field.
withSubnetMapping()
aws.list[obj].withSubnetMapping
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the subnet_mapping 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].withSubnetMappingMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thesubnet_mapping
field.
withSubnetMappingMixin()
aws.list[obj].withSubnetMappingMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the subnet_mapping 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].withSubnetMapping
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thesubnet_mapping
field.
withSubnets()
aws.list.withSubnets
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the subnets field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for thesubnets
field.
withTags()
aws.obj.withTags
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags
field.
withTagsAll()
aws.obj.withTagsAll
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags_all field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags_all
field.
withTimeouts()
aws.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the aws.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
aws.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the aws.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withXffHeaderProcessingMode()
aws.string.withXffHeaderProcessingMode
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the xff_header_processing_mode field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thexff_header_processing_mode
field.
new()
aws.alb.access_logs.new
constructs a new object with attributes and blocks configured for the access_logs
Terraform sub block.
Args:
bucket
(string
): Set thebucket
field on the resulting object.enabled
(bool
): Set theenabled
field on the resulting object. Whennull
, theenabled
field will be omitted from the resulting object.prefix
(string
): Set theprefix
field on the resulting object. Whennull
, theprefix
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
access_logs
sub block.
new()
aws.alb.subnet_mapping.new
constructs a new object with attributes and blocks configured for the subnet_mapping
Terraform sub block.
Args:
allocation_id
(string
): Set theallocation_id
field on the resulting object. Whennull
, theallocation_id
field will be omitted from the resulting object.ipv6_address
(string
): Set theipv6_address
field on the resulting object. Whennull
, theipv6_address
field will be omitted from the resulting object.private_ipv4_address
(string
): Set theprivate_ipv4_address
field on the resulting object. Whennull
, theprivate_ipv4_address
field will be omitted from the resulting object.subnet_id
(string
): Set thesubnet_id
field on the resulting object.
Returns:
- An attribute object that represents the
subnet_mapping
sub block.
new()
aws.alb.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.