CertificatePackArgs

data class CertificatePackArgs(val certificateAuthority: Output<String>? = null, val cloudflareBranding: Output<Boolean>? = null, val hosts: Output<List<String>>? = null, val type: Output<String>? = null, val validationErrors: Output<List<CertificatePackValidationErrorArgs>>? = null, val validationMethod: Output<String>? = null, val validationRecords: Output<List<CertificatePackValidationRecordArgs>>? = null, val validityDays: Output<Int>? = null, val waitForActiveStatus: Output<Boolean>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<CertificatePackArgs>

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CertificatePack;
import com.pulumi.cloudflare.CertificatePackArgs;
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 example = new CertificatePack("example", CertificatePackArgs.builder()
.certificateAuthority("lets_encrypt")
.cloudflareBranding(false)
.hosts(
"example.com",
"*.example.com")
.type("advanced")
.validationMethod("http")
.validityDays(90)
.waitForActiveStatus(true)
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}

Import

$ pulumi import cloudflare:index/certificatePack:CertificatePack example 1d5fdc9e88c8a8c4518b068cd94331fe/8fda82e2-6af9-4eb2-992a-5ab65b792ef1

While supported, importing isn't recommended and it is advised to replace the certificate entirely instead.

Constructors

Link copied to clipboard
constructor(certificateAuthority: Output<String>? = null, cloudflareBranding: Output<Boolean>? = null, hosts: Output<List<String>>? = null, type: Output<String>? = null, validationErrors: Output<List<CertificatePackValidationErrorArgs>>? = null, validationMethod: Output<String>? = null, validationRecords: Output<List<CertificatePackValidationRecordArgs>>? = null, validityDays: Output<Int>? = null, waitForActiveStatus: Output<Boolean>? = null, zoneId: Output<String>? = null)

Properties

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

Which certificate authority to issue the certificate pack. Available values: digicert, lets_encrypt, google. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val cloudflareBranding: Output<Boolean>? = null

Whether or not to include Cloudflare branding. This will add sni.cloudflaressl.com as the Common Name if set to true. Modifying this attribute will force creation of a new resource.

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

List of hostnames to provision the certificate pack for. The zone name must be included as a host. Note: If using Let's Encrypt, you cannot use individual subdomains and only a wildcard for subdomain is available. Modifying this attribute will force creation of a new resource.

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

Certificate pack configuration type. Available values: advanced. Modifying this attribute will force creation of a new resource.

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

Which validation method to use in order to prove domain ownership. Available values: txt, http, email. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
Link copied to clipboard
val validityDays: Output<Int>? = null

How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Available values: 14, 30, 90, 365. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val waitForActiveStatus: Output<Boolean>? = null

Whether or not to wait for a certificate pack to reach status active during creation. Defaults to false. Modifying this attribute will force creation of a new resource.

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

The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Functions

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