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

com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs.GetLoadBalancerResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property canonicalHostedZoneId The ID of the Amazon Route 53 hosted zone associated with the load balancer. For example, `Z2P70J7EXAMPLE` .
 * @property dnsName The DNS name for the load balancer. For example, `my-load-balancer-424835706.us-west-2.elb.amazonaws.com` .
 * @property enforceSecurityGroupInboundRulesOnPrivateLinkTraffic Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through privatelink.
 * @property ipAddressType Note: Internal load balancers must use the ``ipv4`` IP address type.
 *  [Application Load Balancers] The IP address type. The possible values are ``ipv4`` (for only IPv4 addresses), ``dualstack`` (for IPv4 and IPv6 addresses), and ``dualstack-without-public-ipv4`` (for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
 *  Note: Application Load Balancer authentication only supports IPv4 addresses when connecting to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load balancer cannot complete the authentication process, resulting in HTTP 500 errors.
 *  [Network Load Balancers] The IP address type. The possible values are ``ipv4`` (for only IPv4 addresses) and ``dualstack`` (for IPv4 and IPv6 addresses). You can’t specify ``dualstack`` for a load balancer with a UDP or TCP_UDP listener.
 *  [Gateway Load Balancers] The IP address type. The possible values are ``ipv4`` (for only IPv4 addresses) and ``dualstack`` (for IPv4 and IPv6 addresses).
 * @property loadBalancerArn The Amazon Resource Name (ARN) of the load balancer.
 * @property loadBalancerAttributes The load balancer attributes.
 * @property loadBalancerFullName The full name of the load balancer. For example, `app/my-load-balancer/50dc6c495c0c9188` .
 * @property loadBalancerName The name of the load balancer. For example, `my-load-balancer` .
 * @property securityGroups [Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
 * @property subnetMappings The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both.
 *  [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
 *  [Application Load Balancers on Outposts] You must specify one Outpost subnet.
 *  [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
 *  [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
 *  [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.
 * @property subnets The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets.
 *  [Application Load Balancers] You must specify subnets from at least two Availability Zones.
 *  [Application Load Balancers on Outposts] You must specify one Outpost subnet.
 *  [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
 *  [Network Load Balancers] You can specify subnets from one or more Availability Zones.
 *  [Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
 * @property tags The tags to assign to the load balancer.
 */
public data class GetLoadBalancerResult(
    public val canonicalHostedZoneId: String? = null,
    public val dnsName: String? = null,
    public val enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: String? = null,
    public val ipAddressType: String? = null,
    public val loadBalancerArn: String? = null,
    public val loadBalancerAttributes: List? = null,
    public val loadBalancerFullName: String? = null,
    public val loadBalancerName: String? = null,
    public val securityGroups: List? = null,
    public val subnetMappings: List? = null,
    public val subnets: List? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.elasticloadbalancingv2.outputs.GetLoadBalancerResult): GetLoadBalancerResult = GetLoadBalancerResult(
            canonicalHostedZoneId = javaType.canonicalHostedZoneId().map({ args0 -> args0 }).orElse(null),
            dnsName = javaType.dnsName().map({ args0 -> args0 }).orElse(null),
            enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = javaType.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic().map({ args0 ->
                args0
            }).orElse(null),
            ipAddressType = javaType.ipAddressType().map({ args0 -> args0 }).orElse(null),
            loadBalancerArn = javaType.loadBalancerArn().map({ args0 -> args0 }).orElse(null),
            loadBalancerAttributes = javaType.loadBalancerAttributes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs.LoadBalancerAttribute.Companion.toKotlin(args0)
                })
            }),
            loadBalancerFullName = javaType.loadBalancerFullName().map({ args0 -> args0 }).orElse(null),
            loadBalancerName = javaType.loadBalancerName().map({ args0 -> args0 }).orElse(null),
            securityGroups = javaType.securityGroups().map({ args0 -> args0 }),
            subnetMappings = javaType.subnetMappings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs.LoadBalancerSubnetMapping.Companion.toKotlin(args0)
                })
            }),
            subnets = javaType.subnets().map({ args0 -> args0 }),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy