Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@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.SSLCertificateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* An SslCertificate 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 SslCertificate, see:
* * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/sslCertificates)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/load-balancing/docs/ssl-certificates)
* ## Example Usage
* ## Import
* SslCertificate can be imported using any of these accepted formats:
* * `projects/{{project}}/global/sslCertificates/{{name}}`
* * `{{project}}/{{name}}`
* * `{{name}}`
* When using the `pulumi import` command, SslCertificate can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:compute/sSLCertificate:SSLCertificate default projects/{{project}}/global/sslCertificates/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/sSLCertificate:SSLCertificate default {{project}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/sSLCertificate:SSLCertificate 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`.
* @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.
*/
public data class SSLCertificateArgs(
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,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.SSLCertificateArgs =
com.pulumi.gcp.compute.SSLCertificateArgs.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 })).build()
}
/**
* Builder for [SSLCertificateArgs].
*/
@PulumiTagMarker
public class SSLCertificateArgsBuilder 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
/**
* @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("iqrpetfpubmbrvrh")
public suspend fun certificate(`value`: Output) {
this.certificate = value
}
/**
* @param value An optional description of this resource.
*/
@JvmName("pivalwirdnbkqnco")
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("scfvkaqptjfsqhfe")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Creates a unique name beginning with the
* specified prefix. Conflicts with `name`.
*/
@JvmName("tdgfifkvrqyqwbpj")
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("uiypcvulpadghrod")
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("rhpxtxjemggkxlij")
public suspend fun project(`value`: Output) {
this.project = 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("hhtuhtegtpxibvrv")
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("qcbmmklmwveestgg")
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("axctaebaxghrobmu")
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`.
*/
@JvmName("dgxarvorhlgccoxq")
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("vsqtrhbnnmsrxsdx")
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("aebhhlealfuwvwvf")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): SSLCertificateArgs = SSLCertificateArgs(
certificate = certificate,
description = description,
name = name,
namePrefix = namePrefix,
privateKey = privateKey,
project = project,
)
}