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

com.pulumi.azure.privatelink.kotlin.outputs.GetServiceResult.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.privatelink.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getService.
 * @property alias The alias is a globally unique name for your private link service which Azure generates for you. Your can use this alias to request a connection to your private link service.
 * @property autoApprovalSubscriptionIds The list of subscription(s) globally unique identifiers that will be auto approved to use the private link service.
 * @property enableProxyProtocol Does the Private Link Service support the Proxy Protocol?
 * @property id The provider-assigned unique ID for this managed resource.
 * @property loadBalancerFrontendIpConfigurationIds The list of Standard Load Balancer(SLB) resource IDs. The Private Link service is tied to the frontend IP address of a SLB. All traffic destined for the private link service will reach the frontend of the SLB. You can configure SLB rules to direct this traffic to appropriate backend pools where your applications are running.
 * @property location The supported Azure location where the resource exists.
 * @property name The name of private link service NAT IP configuration.
 * @property natIpConfigurations The `nat_ip_configuration` block as defined below.
 * @property resourceGroupName
 * @property tags A mapping of tags to assign to the resource.
 * @property visibilitySubscriptionIds The list of subscription(s) globally unique identifiers(GUID) that will be able to see the private link service.
 */
public data class GetServiceResult(
    public val alias: String,
    public val autoApprovalSubscriptionIds: List,
    public val enableProxyProtocol: Boolean,
    public val id: String,
    public val loadBalancerFrontendIpConfigurationIds: List,
    public val location: String,
    public val name: String,
    public val natIpConfigurations: List,
    public val resourceGroupName: String,
    public val tags: Map,
    public val visibilitySubscriptionIds: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.privatelink.outputs.GetServiceResult): GetServiceResult = GetServiceResult(
            alias = javaType.alias(),
            autoApprovalSubscriptionIds = javaType.autoApprovalSubscriptionIds().map({ args0 -> args0 }),
            enableProxyProtocol = javaType.enableProxyProtocol(),
            id = javaType.id(),
            loadBalancerFrontendIpConfigurationIds = javaType.loadBalancerFrontendIpConfigurationIds().map({ args0 ->
                args0
            }),
            location = javaType.location(),
            name = javaType.name(),
            natIpConfigurations = javaType.natIpConfigurations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.privatelink.kotlin.outputs.GetServiceNatIpConfiguration.Companion.toKotlin(args0)
                })
            }),
            resourceGroupName = javaType.resourceGroupName(),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            visibilitySubscriptionIds = javaType.visibilitySubscriptionIds().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy