com.pulumi.gcp.apigee.kotlin.KeystoresAliasesKeyCertFileArgs.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.apigee.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.apigee.KeystoresAliasesKeyCertFileArgs.builder
import com.pulumi.gcp.apigee.kotlin.inputs.KeystoresAliasesKeyCertFileCertsInfoArgs
import com.pulumi.gcp.apigee.kotlin.inputs.KeystoresAliasesKeyCertFileCertsInfoArgsBuilder
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.jvm.JvmName
/**
* An alias from a key/certificate pair.
* To get more information about KeystoresAliasesKeyCertFile, see:
* * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keystores.aliases)
* * How-to Guides
* * [Keystores Aliases](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keystores.aliases)
* ## Import
* KeystoresAliasesKeyCertFile can be imported using any of these accepted formats:
* * `organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}`
* * `{{org_id}}/{{environment}}/{{keystore}}/{{alias}}`
* When using the `pulumi import` command, KeystoresAliasesKeyCertFile can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:apigee/keystoresAliasesKeyCertFile:KeystoresAliasesKeyCertFile default organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}
* ```
* ```sh
* $ pulumi import gcp:apigee/keystoresAliasesKeyCertFile:KeystoresAliasesKeyCertFile default {{org_id}}/{{environment}}/{{keystore}}/{{alias}}
* ```
* @property alias Alias Name
* @property cert Cert content
* - - -
* @property certsInfo Chain of certificates under this alias.
* Structure is documented below.
* @property environment Environment associated with the alias
* @property key Private Key content, omit if uploading to truststore
* @property keystore Keystore Name
* @property orgId Organization ID associated with the alias, without organization/ prefix
* @property password Password for the Private Key if it's encrypted
*/
public data class KeystoresAliasesKeyCertFileArgs(
public val alias: Output? = null,
public val cert: Output? = null,
public val certsInfo: Output? = null,
public val environment: Output? = null,
public val key: Output? = null,
public val keystore: Output? = null,
public val orgId: Output? = null,
public val password: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.apigee.KeystoresAliasesKeyCertFileArgs =
com.pulumi.gcp.apigee.KeystoresAliasesKeyCertFileArgs.builder()
.alias(alias?.applyValue({ args0 -> args0 }))
.cert(cert?.applyValue({ args0 -> args0 }))
.certsInfo(certsInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.environment(environment?.applyValue({ args0 -> args0 }))
.key(key?.applyValue({ args0 -> args0 }))
.keystore(keystore?.applyValue({ args0 -> args0 }))
.orgId(orgId?.applyValue({ args0 -> args0 }))
.password(password?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KeystoresAliasesKeyCertFileArgs].
*/
@PulumiTagMarker
public class KeystoresAliasesKeyCertFileArgsBuilder internal constructor() {
private var alias: Output? = null
private var cert: Output? = null
private var certsInfo: Output? = null
private var environment: Output? = null
private var key: Output? = null
private var keystore: Output? = null
private var orgId: Output? = null
private var password: Output? = null
/**
* @param value Alias Name
*/
@JvmName("tsfshmgemdtgudhi")
public suspend fun alias(`value`: Output) {
this.alias = value
}
/**
* @param value Cert content
* - - -
*/
@JvmName("lrramuthbafbwvha")
public suspend fun cert(`value`: Output) {
this.cert = value
}
/**
* @param value Chain of certificates under this alias.
* Structure is documented below.
*/
@JvmName("jeasrywbkjikjsna")
public suspend fun certsInfo(`value`: Output) {
this.certsInfo = value
}
/**
* @param value Environment associated with the alias
*/
@JvmName("wkfayfoslrxpjwde")
public suspend fun environment(`value`: Output) {
this.environment = value
}
/**
* @param value Private Key content, omit if uploading to truststore
*/
@JvmName("rxmhcnupyqhapivb")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value Keystore Name
*/
@JvmName("nufgthldkprlivgr")
public suspend fun keystore(`value`: Output) {
this.keystore = value
}
/**
* @param value Organization ID associated with the alias, without organization/ prefix
*/
@JvmName("nlerhqxrnhgtyuil")
public suspend fun orgId(`value`: Output) {
this.orgId = value
}
/**
* @param value Password for the Private Key if it's encrypted
*/
@JvmName("ouftfamcwdjkfoyc")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value Alias Name
*/
@JvmName("idtmbcshwvvlrbia")
public suspend fun alias(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.alias = mapped
}
/**
* @param value Cert content
* - - -
*/
@JvmName("xxrnbmjynwrhvrew")
public suspend fun cert(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cert = mapped
}
/**
* @param value Chain of certificates under this alias.
* Structure is documented below.
*/
@JvmName("hmsxxhpjjqqhxiip")
public suspend fun certsInfo(`value`: KeystoresAliasesKeyCertFileCertsInfoArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certsInfo = mapped
}
/**
* @param argument Chain of certificates under this alias.
* Structure is documented below.
*/
@JvmName("emuwnwxxlalelesv")
public suspend fun certsInfo(argument: suspend KeystoresAliasesKeyCertFileCertsInfoArgsBuilder.() -> Unit) {
val toBeMapped = KeystoresAliasesKeyCertFileCertsInfoArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.certsInfo = mapped
}
/**
* @param value Environment associated with the alias
*/
@JvmName("stnynggawfhvndtv")
public suspend fun environment(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.environment = mapped
}
/**
* @param value Private Key content, omit if uploading to truststore
*/
@JvmName("kjknrwpexqgffybi")
public suspend fun key(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value Keystore Name
*/
@JvmName("nrpuuddooqpgsujd")
public suspend fun keystore(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keystore = mapped
}
/**
* @param value Organization ID associated with the alias, without organization/ prefix
*/
@JvmName("ytmebaejvqpbddko")
public suspend fun orgId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.orgId = mapped
}
/**
* @param value Password for the Private Key if it's encrypted
*/
@JvmName("gmjkeddvagtbfmul")
public suspend fun password(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
internal fun build(): KeystoresAliasesKeyCertFileArgs = KeystoresAliasesKeyCertFileArgs(
alias = alias,
cert = cert,
certsInfo = certsInfo,
environment = environment,
key = key,
keystore = keystore,
orgId = orgId,
password = password,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy