com.pulumi.alicloud.pvtz.kotlin.EndpointArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-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.alicloud.pvtz.kotlin
import com.pulumi.alicloud.pvtz.EndpointArgs.builder
import com.pulumi.alicloud.pvtz.kotlin.inputs.EndpointIpConfigArgs
import com.pulumi.alicloud.pvtz.kotlin.inputs.EndpointIpConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Provides a Private Zone Endpoint resource.
* For information about Private Zone Endpoint and how to use it, see [What is Endpoint](https://www.alibabacloud.com/help/en/privatezone/latest/add-endpoint).
* > **NOTE:** Available since v1.143.0.
* ## Import
* Private Zone Endpoint can be imported using the id, e.g.
* ```sh
* $ pulumi import alicloud:pvtz/endpoint:Endpoint example
* ```
* @property endpointName The name of the resource.
* @property ipConfigs The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
* @property securityGroupId The ID of the Security Group.
* @property vpcId The VPC ID.
* @property vpcRegionId The Region of the VPC.
*/
public data class EndpointArgs(
public val endpointName: Output? = null,
public val ipConfigs: Output>? = null,
public val securityGroupId: Output? = null,
public val vpcId: Output? = null,
public val vpcRegionId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.pvtz.EndpointArgs =
com.pulumi.alicloud.pvtz.EndpointArgs.builder()
.endpointName(endpointName?.applyValue({ args0 -> args0 }))
.ipConfigs(
ipConfigs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.securityGroupId(securityGroupId?.applyValue({ args0 -> args0 }))
.vpcId(vpcId?.applyValue({ args0 -> args0 }))
.vpcRegionId(vpcRegionId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointArgs].
*/
@PulumiTagMarker
public class EndpointArgsBuilder internal constructor() {
private var endpointName: Output? = null
private var ipConfigs: Output>? = null
private var securityGroupId: Output? = null
private var vpcId: Output? = null
private var vpcRegionId: Output? = null
/**
* @param value The name of the resource.
*/
@JvmName("bqhkvibpdjixdhab")
public suspend fun endpointName(`value`: Output) {
this.endpointName = value
}
/**
* @param value The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
*/
@JvmName("yrxoionhxyswvvyv")
public suspend fun ipConfigs(`value`: Output>) {
this.ipConfigs = value
}
@JvmName("rfmlhuqksjongaoh")
public suspend fun ipConfigs(vararg values: Output) {
this.ipConfigs = Output.all(values.asList())
}
/**
* @param values The Ip Configs. See `ip_configs` below. **NOTE:** In order to ensure high availability, add at least 2 and up to 6.
*/
@JvmName("mvvmaiwcxqqlwssu")
public suspend fun ipConfigs(values: List