com.pulumi.gcp.securesourcemanager.kotlin.inputs.InstancePrivateConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.securesourcemanager.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securesourcemanager.inputs.InstancePrivateConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property caPool CA pool resource, resource must in the format of `projects/{project}/locations/{location}/caPools/{ca_pool}`.
* @property httpServiceAttachment (Output)
* Service Attachment for HTTP, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
* @property isPrivate 'Indicate if it's private instance.'
* @property sshServiceAttachment (Output)
* Service Attachment for SSH, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*/
public data class InstancePrivateConfigArgs(
public val caPool: Output,
public val httpServiceAttachment: Output? = null,
public val isPrivate: Output,
public val sshServiceAttachment: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.securesourcemanager.inputs.InstancePrivateConfigArgs =
com.pulumi.gcp.securesourcemanager.inputs.InstancePrivateConfigArgs.builder()
.caPool(caPool.applyValue({ args0 -> args0 }))
.httpServiceAttachment(httpServiceAttachment?.applyValue({ args0 -> args0 }))
.isPrivate(isPrivate.applyValue({ args0 -> args0 }))
.sshServiceAttachment(sshServiceAttachment?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstancePrivateConfigArgs].
*/
@PulumiTagMarker
public class InstancePrivateConfigArgsBuilder internal constructor() {
private var caPool: Output? = null
private var httpServiceAttachment: Output? = null
private var isPrivate: Output? = null
private var sshServiceAttachment: Output? = null
/**
* @param value CA pool resource, resource must in the format of `projects/{project}/locations/{location}/caPools/{ca_pool}`.
*/
@JvmName("viunmhjykvgsvden")
public suspend fun caPool(`value`: Output) {
this.caPool = value
}
/**
* @param value (Output)
* Service Attachment for HTTP, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*/
@JvmName("mbqtwgrrtxyenyle")
public suspend fun httpServiceAttachment(`value`: Output) {
this.httpServiceAttachment = value
}
/**
* @param value 'Indicate if it's private instance.'
*/
@JvmName("sasqjfopclmwctvs")
public suspend fun isPrivate(`value`: Output) {
this.isPrivate = value
}
/**
* @param value (Output)
* Service Attachment for SSH, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*/
@JvmName("gfnhxjrsnnodnhpu")
public suspend fun sshServiceAttachment(`value`: Output) {
this.sshServiceAttachment = value
}
/**
* @param value CA pool resource, resource must in the format of `projects/{project}/locations/{location}/caPools/{ca_pool}`.
*/
@JvmName("gwbuadhhsmwleabi")
public suspend fun caPool(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.caPool = mapped
}
/**
* @param value (Output)
* Service Attachment for HTTP, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*/
@JvmName("orrgevaloelyryhg")
public suspend fun httpServiceAttachment(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpServiceAttachment = mapped
}
/**
* @param value 'Indicate if it's private instance.'
*/
@JvmName("uaeashhskndxexjd")
public suspend fun isPrivate(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.isPrivate = mapped
}
/**
* @param value (Output)
* Service Attachment for SSH, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*/
@JvmName("blilhjkvbktigngw")
public suspend fun sshServiceAttachment(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sshServiceAttachment = mapped
}
internal fun build(): InstancePrivateConfigArgs = InstancePrivateConfigArgs(
caPool = caPool ?: throw PulumiNullFieldException("caPool"),
httpServiceAttachment = httpServiceAttachment,
isPrivate = isPrivate ?: throw PulumiNullFieldException("isPrivate"),
sshServiceAttachment = sshServiceAttachment,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy