com.pulumi.gcp.compute.kotlin.RegionSslCertificateArgs.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.compute.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.RegionSslCertificateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A RegionSslCertificate resource, used for HTTPS load balancing. This resource
* provides a mechanism to upload an SSL key and certificate to
* the load balancer to serve secure connections from the user.
* To get more information about RegionSslCertificate, see:
* * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/regionSslCertificates)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/load-balancing/docs/ssl-certificates)
* ## Example Usage
* ## Import
* RegionSslCertificate can be imported using any of these accepted formats:
* * `projects/{{project}}/regions/{{region}}/sslCertificates/{{name}}`
* * `{{project}}/{{region}}/{{name}}`
* * `{{region}}/{{name}}`
* * `{{name}}`
* When using the `pulumi import` command, RegionSslCertificate can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default projects/{{project}}/regions/{{region}}/sslCertificates/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{project}}/{{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{name}}
* ```
* @property certificate The certificate in PEM format.
* The certificate chain must be no greater than 5 certs long.
* The chain must include at least one intermediate cert.
* **Note**: This property is sensitive and will not be displayed in the plan.
* @property description An optional description of this resource.
* @property name 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?` 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.
* These are in the same namespace as the managed SSL certificates.
* @property namePrefix Creates a unique name beginning with the
* specified prefix. Conflicts with `name`. Max length is 54 characters.
* Prefixes with lengths longer than 37 characters will use a shortened
* UUID that will be more prone to collisions.
* Resulting name for a `name_prefix` <= 37 characters:
* `name_prefix` + YYYYmmddHHSSssss + 8 digit incremental counter
* Resulting name for a `name_prefix` 38 - 54 characters:
* `name_prefix` + YYmmdd + 3 digit incremental counter
* @property privateKey The write-only private key in PEM format.
* **Note**: This property is sensitive and will not be displayed in the plan.
* - - -
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property region The Region in which the created regional ssl certificate should reside.
* If it is not provided, the provider region is used.
*/
public data class RegionSslCertificateArgs(
public val certificate: Output? = null,
public val description: Output? = null,
public val name: Output? = null,
public val namePrefix: Output? = null,
public val privateKey: Output? = null,
public val project: Output? = null,
public val region: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.RegionSslCertificateArgs =
com.pulumi.gcp.compute.RegionSslCertificateArgs.builder()
.certificate(certificate?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.namePrefix(namePrefix?.applyValue({ args0 -> args0 }))
.privateKey(privateKey?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.region(region?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionSslCertificateArgs].
*/
@PulumiTagMarker
public class RegionSslCertificateArgsBuilder internal constructor() {
private var certificate: Output? = null
private var description: Output? = null
private var name: Output? = null
private var namePrefix: Output? = null
private var privateKey: Output? = null
private var project: Output? = null
private var region: Output? = null
/**
* @param value The certificate in PEM format.
* The certificate chain must be no greater than 5 certs long.
* The chain must include at least one intermediate cert.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("kccjdabldalqerui")
public suspend fun certificate(`value`: Output) {
this.certificate = value
}
/**
* @param value An optional description of this resource.
*/
@JvmName("nxtbjssekrjoiaur")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value 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?` 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.
* These are in the same namespace as the managed SSL certificates.
*/
@JvmName("ylasygoprlucbixn")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Creates a unique name beginning with the
* specified prefix. Conflicts with `name`. Max length is 54 characters.
* Prefixes with lengths longer than 37 characters will use a shortened
* UUID that will be more prone to collisions.
* Resulting name for a `name_prefix` <= 37 characters:
* `name_prefix` + YYYYmmddHHSSssss + 8 digit incremental counter
* Resulting name for a `name_prefix` 38 - 54 characters:
* `name_prefix` + YYmmdd + 3 digit incremental counter
*/
@JvmName("shspivvnueisxiow")
public suspend fun namePrefix(`value`: Output) {
this.namePrefix = value
}
/**
* @param value The write-only private key in PEM format.
* **Note**: This property is sensitive and will not be displayed in the plan.
* - - -
*/
@JvmName("ljeechstmcjqwwmc")
public suspend fun privateKey(`value`: Output) {
this.privateKey = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("gfrayydepgghxpyg")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The Region in which the created regional ssl certificate should reside.
* If it is not provided, the provider region is used.
*/
@JvmName("wxpvjqniavnahswn")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value The certificate in PEM format.
* The certificate chain must be no greater than 5 certs long.
* The chain must include at least one intermediate cert.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("gmrbltcgjfcdqrmi")
public suspend fun certificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certificate = mapped
}
/**
* @param value An optional description of this resource.
*/
@JvmName("oensvvxslliqvtih")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value 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?` 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.
* These are in the same namespace as the managed SSL certificates.
*/
@JvmName("xuwuoqtqmuififym")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Creates a unique name beginning with the
* specified prefix. Conflicts with `name`. Max length is 54 characters.
* Prefixes with lengths longer than 37 characters will use a shortened
* UUID that will be more prone to collisions.
* Resulting name for a `name_prefix` <= 37 characters:
* `name_prefix` + YYYYmmddHHSSssss + 8 digit incremental counter
* Resulting name for a `name_prefix` 38 - 54 characters:
* `name_prefix` + YYmmdd + 3 digit incremental counter
*/
@JvmName("uwjiubsxuiaypdhq")
public suspend fun namePrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namePrefix = mapped
}
/**
* @param value The write-only private key in PEM format.
* **Note**: This property is sensitive and will not be displayed in the plan.
* - - -
*/
@JvmName("qdknkxxpohvsepuf")
public suspend fun privateKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateKey = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("qtqhijquifbflejm")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value The Region in which the created regional ssl certificate should reside.
* If it is not provided, the provider region is used.
*/
@JvmName("rulilcebbbuuevrk")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
internal fun build(): RegionSslCertificateArgs = RegionSslCertificateArgs(
certificate = certificate,
description = description,
name = name,
namePrefix = namePrefix,
privateKey = privateKey,
project = project,
region = region,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy