CertificateArgs

data class CertificateArgs(val description: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val managed: Output<CertificateManagedArgs>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val scope: Output<String>? = null, val selfManaged: Output<CertificateSelfManagedArgs>? = null) : ConvertibleToJava<CertificateArgs>

Example Usage

Certificate Manager Self Managed Certificate

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.certificatemanager.Certificate;
import com.pulumi.gcp.certificatemanager.CertificateArgs;
import com.pulumi.gcp.certificatemanager.inputs.CertificateSelfManagedArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Certificate("default", CertificateArgs.builder()
.description("The default cert")
.scope("EDGE_CACHE")
.selfManaged(CertificateSelfManagedArgs.builder()
.pemCertificate(Files.readString(Paths.get("test-fixtures/certificatemanager/cert.pem")))
.pemPrivateKey(Files.readString(Paths.get("test-fixtures/certificatemanager/private-key.pem")))
.build())
.build());
}
}

Import

Certificate can be imported using any of these accepted formats

$ pulumi import gcp:certificatemanager/certificate:Certificate default projects/{{project}}/locations/global/certificates/{{name}}
$ pulumi import gcp:certificatemanager/certificate:Certificate default {{project}}/{{name}}
$ pulumi import gcp:certificatemanager/certificate:Certificate default {{name}}

Constructors

Link copied to clipboard
fun CertificateArgs(description: Output<String>? = null, labels: Output<Map<String, String>>? = null, managed: Output<CertificateManagedArgs>? = null, name: Output<String>? = null, project: Output<String>? = null, scope: Output<String>? = null, selfManaged: Output<CertificateSelfManagedArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): CertificateArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

A human-readable description of the resource.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Set of label tags associated with the Certificate resource.

Link copied to clipboard
val managed: Output<CertificateManagedArgs>? = null

Configuration and state of a Managed Certificate. Certificate Manager provisions and renews Managed Certificates automatically, for as long as it's authorized to do so. Structure is documented below.

Link copied to clipboard
val name: Output<String>? = null

A user-defined name of the certificate. Certificate names must be unique The name must be 1-64 characters long, and match the regular expression a-zA-Z0-9_-* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val scope: Output<String>? = null

The scope of the certificate. DEFAULT: Certificates with default scope are served from core Google data centers. If unsure, choose this option. EDGE_CACHE: Certificates with scope EDGE_CACHE are special-purposed certificates, served from non-core Google data centers. Currently allowed only for managed certificates.

Link copied to clipboard

Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user's responsibility. Structure is documented below.