
com.pulumi.awsnative.lightsail.kotlin.outputs.InstancePort.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lightsail.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Port of the Instance.
* @property accessDirection Access Direction for Protocol of the Instance(inbound/outbound).
* @property accessFrom Access From Protocol of the Instance.
* @property accessType Access Type Protocol of the Instance.
* @property cidrListAliases An alias that defines access for a preconfigured range of IP addresses.
* The only alias currently supported is `lightsail-connect` , which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.
* @property cidrs The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.
* > The `ipv6Cidrs` parameter lists the IPv6 addresses that are allowed to connect to an instance.
* Examples:
* - To allow the IP address `192.0.2.44` , specify `192.0.2.44` or `192.0.2.44/32` .
* - To allow the IP addresses `192.0.2.0` to `192.0.2.255` , specify `192.0.2.0/24` .
* @property commonName CommonName for Protocol of the Instance.
* @property fromPort From Port of the Instance.
* @property ipv6Cidrs The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.
* > The `cidrs` parameter lists the IPv4 addresses that are allowed to connect to an instance.
* @property protocol Port Protocol of the Instance.
* @property toPort To Port of the Instance.
*/
public data class InstancePort(
public val accessDirection: String? = null,
public val accessFrom: String? = null,
public val accessType: String? = null,
public val cidrListAliases: List? = null,
public val cidrs: List? = null,
public val commonName: String? = null,
public val fromPort: Int? = null,
public val ipv6Cidrs: List? = null,
public val protocol: String? = null,
public val toPort: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lightsail.outputs.InstancePort): InstancePort = InstancePort(
accessDirection = javaType.accessDirection().map({ args0 -> args0 }).orElse(null),
accessFrom = javaType.accessFrom().map({ args0 -> args0 }).orElse(null),
accessType = javaType.accessType().map({ args0 -> args0 }).orElse(null),
cidrListAliases = javaType.cidrListAliases().map({ args0 -> args0 }),
cidrs = javaType.cidrs().map({ args0 -> args0 }),
commonName = javaType.commonName().map({ args0 -> args0 }).orElse(null),
fromPort = javaType.fromPort().map({ args0 -> args0 }).orElse(null),
ipv6Cidrs = javaType.ipv6Cidrs().map({ args0 -> args0 }),
protocol = javaType.protocol().map({ args0 -> args0 }).orElse(null),
toPort = javaType.toPort().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy