PolicyArgs

data class PolicyArgs(val alternativeNameServerConfig: Output<PolicyAlternativeNameServerConfigArgs>? = null, val clientOperationId: Output<String>? = null, val description: Output<String>? = null, val enableInboundForwarding: Output<Boolean>? = null, val enableLogging: Output<Boolean>? = null, val kind: Output<String>? = null, val name: Output<String>? = null, val networks: Output<List<PolicyNetworkArgs>>? = null, val project: Output<String>? = null) : ConvertibleToJava<PolicyArgs>

Creates a new Policy.

Constructors

Link copied to clipboard
fun PolicyArgs(alternativeNameServerConfig: Output<PolicyAlternativeNameServerConfigArgs>? = null, clientOperationId: Output<String>? = null, description: Output<String>? = null, enableInboundForwarding: Output<Boolean>? = null, enableLogging: Output<Boolean>? = null, kind: Output<String>? = null, name: Output<String>? = null, networks: Output<List<PolicyNetworkArgs>>? = null, project: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PolicyArgs

Properties

Link copied to clipboard

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.

Link copied to clipboard
val clientOperationId: Output<String>? = null

For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.

Link copied to clipboard
val description: Output<String>? = null

A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.

Link copied to clipboard
val enableInboundForwarding: Output<Boolean>? = null

Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.

Link copied to clipboard
val enableLogging: Output<Boolean>? = null

Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.

Link copied to clipboard
val kind: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

User-assigned name for this policy.

Link copied to clipboard
val networks: Output<List<PolicyNetworkArgs>>? = null

List of network names specifying networks to which this policy is applied.

Link copied to clipboard
val project: Output<String>? = null