
com.pulumi.googlenative.compute.v1.kotlin.SslCertificate.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.compute.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.compute.v1.kotlin.outputs.SslCertificateManagedSslCertificateResponse
import com.pulumi.googlenative.compute.v1.kotlin.outputs.SslCertificateSelfManagedSslCertificateResponse
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
import com.pulumi.googlenative.compute.v1.kotlin.outputs.SslCertificateManagedSslCertificateResponse.Companion.toKotlin as sslCertificateManagedSslCertificateResponseToKotlin
import com.pulumi.googlenative.compute.v1.kotlin.outputs.SslCertificateSelfManagedSslCertificateResponse.Companion.toKotlin as sslCertificateSelfManagedSslCertificateResponseToKotlin
/**
* Builder for [SslCertificate].
*/
@PulumiTagMarker
public class SslCertificateResourceBuilder internal constructor() {
public var name: String? = null
public var args: SslCertificateArgs = SslCertificateArgs()
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 SslCertificateArgsBuilder.() -> Unit) {
val builder = SslCertificateArgsBuilder()
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(): SslCertificate {
val builtJavaResource =
com.pulumi.googlenative.compute.v1.SslCertificate(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return SslCertificate(builtJavaResource)
}
}
/**
* Creates a SslCertificate resource in the specified project using the data included in the request.
*/
public class SslCertificate internal constructor(
override val javaResource: com.pulumi.googlenative.compute.v1.SslCertificate,
) : KotlinCustomResource(javaResource, SslCertificateMapper) {
/**
* A value read into memory from a certificate file. The certificate file must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
*/
public val certificate: Output
get() = javaResource.certificate().applyValue({ args0 -> args0 })
/**
* Creation timestamp in RFC3339 text format.
*/
public val creationTimestamp: Output
get() = javaResource.creationTimestamp().applyValue({ args0 -> args0 })
/**
* An optional description of this resource. Provide this property when you create the resource.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* Expire time of the certificate. RFC3339
*/
public val expireTime: Output
get() = javaResource.expireTime().applyValue({ args0 -> args0 })
/**
* Type of the resource. Always compute#sslCertificate for SSL certificates.
*/
public val kind: Output
get() = javaResource.kind().applyValue({ args0 -> args0 })
/**
* Configuration and status of a managed SSL certificate.
*/
public val managed: Output
get() = javaResource.managed().applyValue({ args0 ->
args0.let({ args0 ->
sslCertificateManagedSslCertificateResponseToKotlin(args0)
})
})
/**
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* A value read into memory from a write-only private key file. The private key file must be in PEM format. For security, only insert requests include this field.
*/
public val privateKey: Output
get() = javaResource.privateKey().applyValue({ args0 -> args0 })
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* URL of the region where the regional SSL Certificate resides. This field is not applicable to global SSL Certificate.
*/
public val region: Output
get() = javaResource.region().applyValue({ args0 -> args0 })
/**
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*/
public val requestId: Output?
get() = javaResource.requestId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* [Output only] Server-defined URL for the resource.
*/
public val selfLink: Output
get() = javaResource.selfLink().applyValue({ args0 -> args0 })
/**
* Configuration and status of a self-managed SSL certificate.
*/
public val selfManaged: Output
get() = javaResource.selfManaged().applyValue({ args0 ->
args0.let({ args0 ->
sslCertificateSelfManagedSslCertificateResponseToKotlin(args0)
})
})
/**
* Domains associated with the certificate via Subject Alternative Name.
*/
public val subjectAlternativeNames: Output>
get() = javaResource.subjectAlternativeNames().applyValue({ args0 ->
args0.map({ args0 ->
args0
})
})
/**
* (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used.
*/
public val type: Output
get() = javaResource.type().applyValue({ args0 -> args0 })
}
public object SslCertificateMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.compute.v1.SslCertificate::class == javaResource::class
override fun map(javaResource: Resource): SslCertificate = SslCertificate(
javaResource as
com.pulumi.googlenative.compute.v1.SslCertificate,
)
}
/**
* @see [SslCertificate].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [SslCertificate].
*/
public suspend fun sslCertificate(
name: String,
block: suspend SslCertificateResourceBuilder.() -> Unit,
): SslCertificate {
val builder = SslCertificateResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [SslCertificate].
* @param name The _unique_ name of the resulting resource.
*/
public fun sslCertificate(name: String): SslCertificate {
val builder = SslCertificateResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy