com.pulumi.gcp.apigee.kotlin.KeystoresAliasesPkcs12.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.gcp.apigee.kotlin.outputs.KeystoresAliasesPkcs12CertsInfo
import com.pulumi.gcp.apigee.kotlin.outputs.KeystoresAliasesPkcs12CertsInfo.Companion.toKotlin
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [KeystoresAliasesPkcs12].
*/
@PulumiTagMarker
public class KeystoresAliasesPkcs12ResourceBuilder internal constructor() {
public var name: String? = null
public var args: KeystoresAliasesPkcs12Args = KeystoresAliasesPkcs12Args()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend KeystoresAliasesPkcs12ArgsBuilder.() -> Unit) {
val builder = KeystoresAliasesPkcs12ArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): KeystoresAliasesPkcs12 {
val builtJavaResource = com.pulumi.gcp.apigee.KeystoresAliasesPkcs12(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return KeystoresAliasesPkcs12(builtJavaResource)
}
}
/**
* An alias from a pkcs12 file.
* To get more information about KeystoresAliasesPkcs12, 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
* KeystoresAliasesPkcs12 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, KeystoresAliasesPkcs12 can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:apigee/keystoresAliasesPkcs12:KeystoresAliasesPkcs12 default organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}
* ```
* ```sh
* $ pulumi import gcp:apigee/keystoresAliasesPkcs12:KeystoresAliasesPkcs12 default {{org_id}}/{{environment}}/{{keystore}}/{{alias}}
* ```
*/
public class KeystoresAliasesPkcs12 internal constructor(
override val javaResource: com.pulumi.gcp.apigee.KeystoresAliasesPkcs12,
) : KotlinCustomResource(javaResource, KeystoresAliasesPkcs12Mapper) {
/**
* Alias Name
*/
public val alias: Output
get() = javaResource.alias().applyValue({ args0 -> args0 })
/**
* Chain of certificates under this alias.
* Structure is documented below.
*/
public val certsInfos: Output>
get() = javaResource.certsInfos().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
toKotlin(args0)
})
})
})
/**
* Environment associated with the alias
*/
public val environment: Output
get() = javaResource.environment().applyValue({ args0 -> args0 })
/**
* PKCS12 file content
* - - -
*/
public val `file`: Output
get() = javaResource.`file`().applyValue({ args0 -> args0 })
/**
* Hash of the pkcs file
*/
public val filehash: Output
get() = javaResource.filehash().applyValue({ args0 -> args0 })
/**
* Keystore Name
*/
public val keystore: Output
get() = javaResource.keystore().applyValue({ args0 -> args0 })
/**
* Organization ID associated with the alias, without organization/ prefix
*/
public val orgId: Output
get() = javaResource.orgId().applyValue({ args0 -> args0 })
/**
* Password for the PKCS12 file if it's encrypted
*/
public val password: Output
get() = javaResource.password().applyValue({ args0 -> args0 })
/**
* Optional.Type of Alias
*/
public val type: Output
get() = javaResource.type().applyValue({ args0 -> args0 })
}
public object KeystoresAliasesPkcs12Mapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.gcp.apigee.KeystoresAliasesPkcs12::class == javaResource::class
override fun map(javaResource: Resource): KeystoresAliasesPkcs12 =
KeystoresAliasesPkcs12(javaResource as com.pulumi.gcp.apigee.KeystoresAliasesPkcs12)
}
/**
* @see [KeystoresAliasesPkcs12].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [KeystoresAliasesPkcs12].
*/
public suspend fun keystoresAliasesPkcs12(
name: String,
block: suspend KeystoresAliasesPkcs12ResourceBuilder.() -> Unit,
): KeystoresAliasesPkcs12 {
val builder = KeystoresAliasesPkcs12ResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [KeystoresAliasesPkcs12].
* @param name The _unique_ name of the resulting resource.
*/
public fun keystoresAliasesPkcs12(name: String): KeystoresAliasesPkcs12 {
val builder = KeystoresAliasesPkcs12ResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy