All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.outputs.InstanceFromMachineImageNetworkInterfaceIpv6AccessConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property externalIpv6 The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
 * @property externalIpv6PrefixLength The prefix length of the external IPv6 range.
 * @property name A unique name for the resource, required by GCE.
 * Changing this forces a new resource to be created.
 * @property networkTier The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
 * @property publicPtrDomainName The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
 * @property securityPolicy A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
 */
public data class InstanceFromMachineImageNetworkInterfaceIpv6AccessConfig(
    public val externalIpv6: String? = null,
    public val externalIpv6PrefixLength: String? = null,
    public val name: String? = null,
    public val networkTier: String,
    public val publicPtrDomainName: String? = null,
    public val securityPolicy: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.InstanceFromMachineImageNetworkInterfaceIpv6AccessConfig): InstanceFromMachineImageNetworkInterfaceIpv6AccessConfig =
            InstanceFromMachineImageNetworkInterfaceIpv6AccessConfig(
                externalIpv6 = javaType.externalIpv6().map({ args0 -> args0 }).orElse(null),
                externalIpv6PrefixLength = javaType.externalIpv6PrefixLength().map({ args0 -> args0 }).orElse(null),
                name = javaType.name().map({ args0 -> args0 }).orElse(null),
                networkTier = javaType.networkTier(),
                publicPtrDomainName = javaType.publicPtrDomainName().map({ args0 -> args0 }).orElse(null),
                securityPolicy = javaType.securityPolicy().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy