
com.pulumi.googlenative.integrations.v1alpha.kotlin.Certificate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.integrations.v1alpha.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaClientCertificateResponse
import com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaClientCertificateResponse.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
/**
* Builder for [Certificate].
*/
@PulumiTagMarker
public class CertificateResourceBuilder internal constructor() {
public var name: String? = null
public var args: CertificateArgs = CertificateArgs()
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 CertificateArgsBuilder.() -> Unit) {
val builder = CertificateArgsBuilder()
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(): Certificate {
val builtJavaResource =
com.pulumi.googlenative.integrations.v1alpha.Certificate(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Certificate(builtJavaResource)
}
}
/**
* Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.
* Auto-naming is currently not supported for this resource.
*/
public class Certificate internal constructor(
override val javaResource: com.pulumi.googlenative.integrations.v1alpha.Certificate,
) : KotlinCustomResource(javaResource, CertificateMapper) {
/**
* Status of the certificate
*/
public val certificateStatus: Output
get() = javaResource.certificateStatus().applyValue({ args0 -> args0 })
/**
* Immutable. Credential id that will be used to register with trawler INTERNAL_ONLY
*/
public val credentialId: Output
get() = javaResource.credentialId().applyValue({ args0 -> args0 })
/**
* Description of the certificate
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* Name of the certificate
*/
public val displayName: Output
get() = javaResource.displayName().applyValue({ args0 -> args0 })
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* Auto generated primary key
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
public val productId: Output
get() = javaResource.productId().applyValue({ args0 -> args0 })
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* Input only. Raw client certificate which would be registered with trawler
*/
public val rawCertificate: Output
get() = javaResource.rawCertificate().applyValue({ args0 ->
args0.let({ args0 ->
toKotlin(args0)
})
})
/**
* Immutable. Requestor ID to be used to register certificate with trawler
*/
public val requestorId: Output
get() = javaResource.requestorId().applyValue({ args0 -> args0 })
/**
* The timestamp after which certificate will expire
*/
public val validEndTime: Output
get() = javaResource.validEndTime().applyValue({ args0 -> args0 })
/**
* The timestamp after which certificate will be valid
*/
public val validStartTime: Output
get() = javaResource.validStartTime().applyValue({ args0 -> args0 })
}
public object CertificateMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.integrations.v1alpha.Certificate::class == javaResource::class
override fun map(javaResource: Resource): Certificate = Certificate(
javaResource as
com.pulumi.googlenative.integrations.v1alpha.Certificate,
)
}
/**
* @see [Certificate].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Certificate].
*/
public suspend fun certificate(name: String, block: suspend CertificateResourceBuilder.() -> Unit): Certificate {
val builder = CertificateResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Certificate].
* @param name The _unique_ name of the resulting resource.
*/
public fun certificate(name: String): Certificate {
val builder = CertificateResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy