permalink |
---|
/dns_record_set/ |
dns_record_set
represents the google_dns_record_set
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withManagedZone()
fn withName()
fn withProject()
fn withRoutingPolicy()
fn withRoutingPolicyMixin()
fn withRrdatas()
fn withTtl()
fn withType()
obj routing_policy
new()
google.dns_record_set.new
injects a new google_dns_record_set
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
google.dns_record_set.new('some_id')
You can get the reference to the id
field of the created google.dns_record_set
using the reference:
$._ref.google_dns_record_set.some_id.get('id')
This is the same as directly entering "${ google_dns_record_set.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.managed_zone
(string
): The name of the zone in which this record set will reside.name
(string
): The DNS name this record set will apply to.project
(string
): The ID of the project in which the resource belongs. If it is not provided, the provider project is used. Whennull
, theproject
field will be omitted from the resulting object.rrdatas
(list
): The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding " if you don't want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add "" inside the Terraform configuration string (e.g. "first255characters""morecharacters"). Whennull
, therrdatas
field will be omitted from the resulting object.ttl
(number
): The time-to-live of this record set (seconds). Whennull
, thettl
field will be omitted from the resulting object.type
(string
): The DNS record set type.routing_policy
(list[obj]
): The configuration for steering traffic based on query. You can specify either Weighted Round Robin(WRR) type or Geolocation(GEO) type. Whennull
, therouting_policy
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.dns_record_set.newAttrs
constructs a new object with attributes and blocks configured for the dns_record_set
Terraform resource.
Unlike google.dns_record_set.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:
managed_zone
(string
): The name of the zone in which this record set will reside.name
(string
): The DNS name this record set will apply to.project
(string
): The ID of the project in which the resource belongs. If it is not provided, the provider project is used. Whennull
, theproject
field will be omitted from the resulting object.rrdatas
(list
): The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding " if you don't want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add "" inside the Terraform configuration string (e.g. "first255characters""morecharacters"). Whennull
, therrdatas
field will be omitted from the resulting object.ttl
(number
): The time-to-live of this record set (seconds). Whennull
, thettl
field will be omitted from the resulting object.type
(string
): The DNS record set type.routing_policy
(list[obj]
): The configuration for steering traffic based on query. You can specify either Weighted Round Robin(WRR) type or Geolocation(GEO) type. Whennull
, therouting_policy
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
dns_record_set
resource into the root Terraform configuration.
withManagedZone()
google.string.withManagedZone
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the managed_zone field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themanaged_zone
field.
withName()
google.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.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withRoutingPolicy()
google.list[obj].withRoutingPolicy
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the routing_policy 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 google.list[obj].withRoutingPolicyMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therouting_policy
field.
withRoutingPolicyMixin()
google.list[obj].withRoutingPolicyMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the routing_policy 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 google.list[obj].withRoutingPolicy
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therouting_policy
field.
withRrdatas()
google.list.withRrdatas
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the rrdatas field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for therrdatas
field.
withTtl()
google.number.withTtl
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the ttl field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for thettl
field.
withType()
google.string.withType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetype
field.
new()
google.dns_record_set.routing_policy.new
constructs a new object with attributes and blocks configured for the routing_policy
Terraform sub block.
Args:
enable_geo_fencing
(bool
): Specifies whether to enable fencing for geo queries. Whennull
, theenable_geo_fencing
field will be omitted from the resulting object.geo
(list[obj]
): The configuration for Geo location based routing policy. Whennull
, thegeo
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.geo.new constructor.primary_backup
(list[obj]
): The configuration for a primary-backup policy with global to regional failover. Queries are responded to with the global primary targets, but if none of the primary targets are healthy, then we fallback to a regional failover policy. Whennull
, theprimary_backup
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.primary_backup.new constructor.wrr
(list[obj]
): The configuration for Weighted Round Robin based routing policy. Whennull
, thewrr
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.wrr.new constructor.
Returns:
- An attribute object that represents the
routing_policy
sub block.
new()
google.dns_record_set.routing_policy.geo.new
constructs a new object with attributes and blocks configured for the geo
Terraform sub block.
Args:
location
(string
): The location name defined in Google Cloud.rrdatas
(list
): Set therrdatas
field on the resulting object. Whennull
, therrdatas
field will be omitted from the resulting object.health_checked_targets
(list[obj]
): For A and AAAA types only. The list of targets to be health checked. These can be specified along withrrdatas
within this item. Whennull
, thehealth_checked_targets
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.geo.health_checked_targets.new constructor.
Returns:
- An attribute object that represents the
geo
sub block.
new()
google.dns_record_set.routing_policy.geo.health_checked_targets.new
constructs a new object with attributes and blocks configured for the health_checked_targets
Terraform sub block.
Args:
internal_load_balancers
(list[obj]
): The list of internal load balancers to health check. Whennull
, theinternal_load_balancers
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.geo.health_checked_targets.internal_load_balancers.new constructor.
Returns:
- An attribute object that represents the
health_checked_targets
sub block.
new()
google.dns_record_set.routing_policy.geo.health_checked_targets.internal_load_balancers.new
constructs a new object with attributes and blocks configured for the internal_load_balancers
Terraform sub block.
Args:
ip_address
(string
): The frontend IP address of the load balancer.ip_protocol
(string
): The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]load_balancer_type
(string
): The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]network_url
(string
): The fully qualified url of the network in which the load balancer belongs. This should be formatted likehttps://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
.port
(string
): The configured port of the load balancer.project
(string
): The ID of the project in which the load balancer belongs.region
(string
): The region of the load balancer. Only needed for regional load balancers. Whennull
, theregion
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
internal_load_balancers
sub block.
new()
google.dns_record_set.routing_policy.primary_backup.new
constructs a new object with attributes and blocks configured for the primary_backup
Terraform sub block.
Args:
enable_geo_fencing_for_backups
(bool
): Specifies whether to enable fencing for backup geo queries. Whennull
, theenable_geo_fencing_for_backups
field will be omitted from the resulting object.trickle_ratio
(number
): Specifies the percentage of traffic to send to the backup targets even when the primary targets are healthy. Whennull
, thetrickle_ratio
field will be omitted from the resulting object.backup_geo
(list[obj]
): The backup geo targets, which provide a regional failover policy for the otherwise global primary targets. Whennull
, thebackup_geo
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.primary_backup.backup_geo.new constructor.primary
(list[obj]
): The list of global primary targets to be health checked. Whennull
, theprimary
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.primary_backup.primary.new constructor.
Returns:
- An attribute object that represents the
primary_backup
sub block.
new()
google.dns_record_set.routing_policy.primary_backup.backup_geo.new
constructs a new object with attributes and blocks configured for the backup_geo
Terraform sub block.
Args:
location
(string
): The location name defined in Google Cloud.rrdatas
(list
): Set therrdatas
field on the resulting object. Whennull
, therrdatas
field will be omitted from the resulting object.health_checked_targets
(list[obj]
): For A and AAAA types only. The list of targets to be health checked. These can be specified along withrrdatas
within this item. Whennull
, thehealth_checked_targets
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.primary_backup.backup_geo.health_checked_targets.new constructor.
Returns:
- An attribute object that represents the
backup_geo
sub block.
new()
google.dns_record_set.routing_policy.primary_backup.backup_geo.health_checked_targets.new
constructs a new object with attributes and blocks configured for the health_checked_targets
Terraform sub block.
Args:
internal_load_balancers
(list[obj]
): The list of internal load balancers to health check. Whennull
, theinternal_load_balancers
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.primary_backup.backup_geo.health_checked_targets.internal_load_balancers.new constructor.
Returns:
- An attribute object that represents the
health_checked_targets
sub block.
new()
google.dns_record_set.routing_policy.primary_backup.backup_geo.health_checked_targets.internal_load_balancers.new
constructs a new object with attributes and blocks configured for the internal_load_balancers
Terraform sub block.
Args:
ip_address
(string
): The frontend IP address of the load balancer.ip_protocol
(string
): The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]load_balancer_type
(string
): The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]network_url
(string
): The fully qualified url of the network in which the load balancer belongs. This should be formatted likehttps://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
.port
(string
): The configured port of the load balancer.project
(string
): The ID of the project in which the load balancer belongs.region
(string
): The region of the load balancer. Only needed for regional load balancers. Whennull
, theregion
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
internal_load_balancers
sub block.
new()
google.dns_record_set.routing_policy.primary_backup.primary.new
constructs a new object with attributes and blocks configured for the primary
Terraform sub block.
Args:
internal_load_balancers
(list[obj]
): The list of internal load balancers to health check. Whennull
, theinternal_load_balancers
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.primary_backup.primary.internal_load_balancers.new constructor.
Returns:
- An attribute object that represents the
primary
sub block.
new()
google.dns_record_set.routing_policy.primary_backup.primary.internal_load_balancers.new
constructs a new object with attributes and blocks configured for the internal_load_balancers
Terraform sub block.
Args:
ip_address
(string
): The frontend IP address of the load balancer.ip_protocol
(string
): The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]load_balancer_type
(string
): The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]network_url
(string
): The fully qualified url of the network in which the load balancer belongs. This should be formatted likehttps://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
.port
(string
): The configured port of the load balancer.project
(string
): The ID of the project in which the load balancer belongs.region
(string
): The region of the load balancer. Only needed for regional load balancers. Whennull
, theregion
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
internal_load_balancers
sub block.
new()
google.dns_record_set.routing_policy.wrr.new
constructs a new object with attributes and blocks configured for the wrr
Terraform sub block.
Args:
rrdatas
(list
): Set therrdatas
field on the resulting object. Whennull
, therrdatas
field will be omitted from the resulting object.weight
(number
): The ratio of traffic routed to the target.health_checked_targets
(list[obj]
): The list of targets to be health checked. Note that if DNSSEC is enabled for this zone, only one ofrrdatas
orhealth_checked_targets
can be set. Whennull
, thehealth_checked_targets
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.wrr.health_checked_targets.new constructor.
Returns:
- An attribute object that represents the
wrr
sub block.
new()
google.dns_record_set.routing_policy.wrr.health_checked_targets.new
constructs a new object with attributes and blocks configured for the health_checked_targets
Terraform sub block.
Args:
internal_load_balancers
(list[obj]
): The list of internal load balancers to health check. Whennull
, theinternal_load_balancers
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dns_record_set.routing_policy.wrr.health_checked_targets.internal_load_balancers.new constructor.
Returns:
- An attribute object that represents the
health_checked_targets
sub block.
new()
google.dns_record_set.routing_policy.wrr.health_checked_targets.internal_load_balancers.new
constructs a new object with attributes and blocks configured for the internal_load_balancers
Terraform sub block.
Args:
ip_address
(string
): The frontend IP address of the load balancer.ip_protocol
(string
): The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]load_balancer_type
(string
): The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]network_url
(string
): The fully qualified url of the network in which the load balancer belongs. This should be formatted likehttps://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
.port
(string
): The configured port of the load balancer.project
(string
): The ID of the project in which the load balancer belongs.region
(string
): The region of the load balancer. Only needed for regional load balancers. Whennull
, theregion
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
internal_load_balancers
sub block.