com.pulumi.awsnative.ec2.kotlin.outputs.GetVpcResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property cidrBlockAssociations The association IDs of the IPv4 CIDR blocks for the VPC. For example, [ vpc-cidr-assoc-0280ab6b ].
* @property defaultNetworkAcl The ID of the default network ACL for the VPC. For example, acl-814dafe3.
* @property defaultSecurityGroup The ID of the default security group for the VPC. For example, sg-b178e0d3.
* @property enableDnsHostnames Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs. For more information, see [DNS attributes in your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-support).
* You can only enable DNS hostnames if you've enabled DNS support.
* @property enableDnsSupport Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled. Enabled by default. For more information, see [DNS attributes in your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-support).
* @property instanceTenancy The allowed tenancy of instances launched into the VPC.
* + ``default``: An instance launched into the VPC runs on shared hardware by default, unless you explicitly specify a different tenancy during instance launch.
* + ``dedicated``: An instance launched into the VPC runs on dedicated hardware by default, unless you explicitly specify a tenancy of ``host`` during instance launch. You cannot specify a tenancy of ``default`` during instance launch.
* Updating ``InstanceTenancy`` requires no replacement only if you are updating its value from ``dedicated`` to ``default``. Updating ``InstanceTenancy`` from ``default`` to ``dedicated`` requires replacement.
* @property ipv6CidrBlocks The IPv6 CIDR blocks for the VPC. For example, [ 2001:db8:1234:1a00::/56 ].
* @property tags The tags for the VPC.
* @property vpcId The ID of the VPC.
*/
public data class GetVpcResult(
public val cidrBlockAssociations: List? = null,
public val defaultNetworkAcl: String? = null,
public val defaultSecurityGroup: String? = null,
public val enableDnsHostnames: Boolean? = null,
public val enableDnsSupport: Boolean? = null,
public val instanceTenancy: String? = null,
public val ipv6CidrBlocks: List? = null,
public val tags: List? = null,
public val vpcId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetVpcResult): GetVpcResult =
GetVpcResult(
cidrBlockAssociations = javaType.cidrBlockAssociations().map({ args0 -> args0 }),
defaultNetworkAcl = javaType.defaultNetworkAcl().map({ args0 -> args0 }).orElse(null),
defaultSecurityGroup = javaType.defaultSecurityGroup().map({ args0 -> args0 }).orElse(null),
enableDnsHostnames = javaType.enableDnsHostnames().map({ args0 -> args0 }).orElse(null),
enableDnsSupport = javaType.enableDnsSupport().map({ args0 -> args0 }).orElse(null),
instanceTenancy = javaType.instanceTenancy().map({ args0 -> args0 }).orElse(null),
ipv6CidrBlocks = javaType.ipv6CidrBlocks().map({ args0 -> args0 }),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
vpcId = javaType.vpcId().map({ args0 -> args0 }).orElse(null),
)
}
}