permalink |
---|
/dns_policy/ |
dns_policy
represents the google_dns_policy
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAlternativeNameServerConfig()
fn withAlternativeNameServerConfigMixin()
fn withDescription()
fn withEnableInboundForwarding()
fn withEnableLogging()
fn withName()
fn withNetworks()
fn withNetworksMixin()
fn withProject()
fn withTimeouts()
fn withTimeoutsMixin()
obj alternative_name_server_config
obj networks
obj timeouts
new()
google.dns_policy.new
injects a new google_dns_policy
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_policy.new('some_id')
You can get the reference to the id
field of the created google.dns_policy
using the reference:
$._ref.google_dns_policy.some_id.get('id')
This is the same as directly entering "${ google_dns_policy.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.description
(string
): A textual description field. Defaults to 'Managed by Terraform'. Whennull
, thedescription
field will be omitted from the resulting object.enable_inbound_forwarding
(bool
): Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address will be allocated from each of the sub-networks that are bound to this policy. Whennull
, theenable_inbound_forwarding
field will be omitted from the resulting object.enable_logging
(bool
): Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set. Whennull
, theenable_logging
field will be omitted from the resulting object.name
(string
): User assigned name for this policy.project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
field will be omitted from the resulting object.alternative_name_server_config
(list[obj]
): Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified. Whennull
, thealternative_name_server_config
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_policy.alternative_name_server_config.new constructor.networks
(list[obj]
): List of network names specifying networks to which this policy is applied. Whennull
, thenetworks
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_policy.networks.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 google.dns_policy.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.dns_policy.newAttrs
constructs a new object with attributes and blocks configured for the dns_policy
Terraform resource.
Unlike google.dns_policy.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:
description
(string
): A textual description field. Defaults to 'Managed by Terraform'. Whennull
, thedescription
field will be omitted from the resulting object.enable_inbound_forwarding
(bool
): Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address will be allocated from each of the sub-networks that are bound to this policy. Whennull
, theenable_inbound_forwarding
field will be omitted from the resulting object.enable_logging
(bool
): Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set. Whennull
, theenable_logging
field will be omitted from the resulting object.name
(string
): User assigned name for this policy.project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
field will be omitted from the resulting object.alternative_name_server_config
(list[obj]
): Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified. Whennull
, thealternative_name_server_config
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_policy.alternative_name_server_config.new constructor.networks
(list[obj]
): List of network names specifying networks to which this policy is applied. Whennull
, thenetworks
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_policy.networks.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 google.dns_policy.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
dns_policy
resource into the root Terraform configuration.
withAlternativeNameServerConfig()
google.list[obj].withAlternativeNameServerConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the alternative_name_server_config 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].withAlternativeNameServerConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thealternative_name_server_config
field.
withAlternativeNameServerConfigMixin()
google.list[obj].withAlternativeNameServerConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the alternative_name_server_config 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].withAlternativeNameServerConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thealternative_name_server_config
field.
withDescription()
google.string.withDescription
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the description field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedescription
field.
withEnableInboundForwarding()
google.bool.withEnableInboundForwarding
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_inbound_forwarding field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_inbound_forwarding
field.
withEnableLogging()
google.bool.withEnableLogging
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_logging field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_logging
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.
withNetworks()
google.list[obj].withNetworks
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the networks 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].withNetworksMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetworks
field.
withNetworksMixin()
google.list[obj].withNetworksMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the networks 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].withNetworks
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetworks
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.
withTimeouts()
google.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 google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.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 google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
new()
google.dns_policy.alternative_name_server_config.new
constructs a new object with attributes and blocks configured for the alternative_name_server_config
Terraform sub block.
Args:
target_name_servers
(list[obj]
): Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified. Whennull
, thetarget_name_servers
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_policy.alternative_name_server_config.target_name_servers.new constructor.
Returns:
- An attribute object that represents the
alternative_name_server_config
sub block.
new()
google.dns_policy.alternative_name_server_config.target_name_servers.new
constructs a new object with attributes and blocks configured for the target_name_servers
Terraform sub block.
Args:
forwarding_path
(string
): Forwarding path for this TargetNameServer. If unset or 'default' Cloud DNS will make forwarding decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the Internet. When set to 'private', Cloud DNS will always send queries through VPC for this target Possible values: ["default", "private"] Whennull
, theforwarding_path
field will be omitted from the resulting object.ipv4_address
(string
): IPv4 address to forward to.
Returns:
- An attribute object that represents the
target_name_servers
sub block.
new()
google.dns_policy.networks.new
constructs a new object with attributes and blocks configured for the networks
Terraform sub block.
Args:
network_url
(string
): The id or fully qualified URL of the VPC network to forward queries to. This should be formatted like 'projects/{project}/global/networks/{network}' or 'https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}'
Returns:
- An attribute object that represents the
networks
sub block.
new()
google.dns_policy.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.