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

com.pulumi.awsnative.ec2.kotlin.outputs.GetRouteResult.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property carrierGatewayId The ID of the carrier gateway.
 *  You can only use this option when the VPC contains a subnet which is associated with a Wavelength Zone.
 * @property cidrBlock The IPv4 CIDR block.
 * @property coreNetworkArn The Amazon Resource Name (ARN) of the core network.
 * @property egressOnlyInternetGatewayId [IPv6 traffic only] The ID of an egress-only internet gateway.
 * @property gatewayId The ID of an internet gateway or virtual private gateway attached to your VPC.
 * @property instanceId The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
 * @property localGatewayId The ID of the local gateway.
 * @property natGatewayId [IPv4 traffic only] The ID of a NAT gateway.
 * @property networkInterfaceId The ID of a network interface.
 * @property transitGatewayId The ID of a transit gateway.
 * @property vpcEndpointId The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.
 * @property vpcPeeringConnectionId The ID of a VPC peering connection.
 */
public data class GetRouteResult(
    public val carrierGatewayId: String? = null,
    public val cidrBlock: String? = null,
    public val coreNetworkArn: String? = null,
    public val egressOnlyInternetGatewayId: String? = null,
    public val gatewayId: String? = null,
    public val instanceId: String? = null,
    public val localGatewayId: String? = null,
    public val natGatewayId: String? = null,
    public val networkInterfaceId: String? = null,
    public val transitGatewayId: String? = null,
    public val vpcEndpointId: String? = null,
    public val vpcPeeringConnectionId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetRouteResult): GetRouteResult =
            GetRouteResult(
                carrierGatewayId = javaType.carrierGatewayId().map({ args0 -> args0 }).orElse(null),
                cidrBlock = javaType.cidrBlock().map({ args0 -> args0 }).orElse(null),
                coreNetworkArn = javaType.coreNetworkArn().map({ args0 -> args0 }).orElse(null),
                egressOnlyInternetGatewayId = javaType.egressOnlyInternetGatewayId().map({ args0 ->
                    args0
                }).orElse(null),
                gatewayId = javaType.gatewayId().map({ args0 -> args0 }).orElse(null),
                instanceId = javaType.instanceId().map({ args0 -> args0 }).orElse(null),
                localGatewayId = javaType.localGatewayId().map({ args0 -> args0 }).orElse(null),
                natGatewayId = javaType.natGatewayId().map({ args0 -> args0 }).orElse(null),
                networkInterfaceId = javaType.networkInterfaceId().map({ args0 -> args0 }).orElse(null),
                transitGatewayId = javaType.transitGatewayId().map({ args0 -> args0 }).orElse(null),
                vpcEndpointId = javaType.vpcEndpointId().map({ args0 -> args0 }).orElse(null),
                vpcPeeringConnectionId = javaType.vpcPeeringConnectionId().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy