CertificatePack

class CertificatePack : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleCertificatePack = new cloudflare.CertificatePack("example_certificate_pack", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
certificateAuthority: "google",
hosts: [
"example.com",
"*.example.com",
"www.example.com",
],
type: "advanced",
validationMethod: "txt",
validityDays: 14,
cloudflareBranding: false,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_certificate_pack = cloudflare.CertificatePack("example_certificate_pack",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
certificate_authority="google",
hosts=[
"example.com",
"*.example.com",
"www.example.com",
],
type="advanced",
validation_method="txt",
validity_days=14,
cloudflare_branding=False)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleCertificatePack = new Cloudflare.CertificatePack("example_certificate_pack", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
CertificateAuthority = "google",
Hosts = new[]
{
"example.com",
"*.example.com",
"www.example.com",
},
Type = "advanced",
ValidationMethod = "txt",
ValidityDays = 14,
CloudflareBranding = false,
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewCertificatePack(ctx, "example_certificate_pack", &cloudflare.CertificatePackArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
CertificateAuthority: pulumi.String("google"),
Hosts: pulumi.StringArray{
pulumi.String("example.com"),
pulumi.String("*.example.com"),
pulumi.String("www.example.com"),
},
Type: pulumi.String("advanced"),
ValidationMethod: pulumi.String("txt"),
ValidityDays: pulumi.Int(14),
CloudflareBranding: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
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 exampleCertificatePack = new CertificatePack("exampleCertificatePack", CertificatePackArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.certificateAuthority("google")
.hosts(
"example.com",
"*.example.com",
"www.example.com")
.type("advanced")
.validationMethod("txt")
.validityDays(14)
.cloudflareBranding(false)
.build());
}
}
resources:
exampleCertificatePack:
type: cloudflare:CertificatePack
name: example_certificate_pack
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
certificateAuthority: google
hosts:
- example.com
- '*.example.com'
- www.example.com
type: advanced
validationMethod: txt
validityDays: 14
cloudflareBranding: false

Import

$ pulumi import cloudflare:index/certificatePack:CertificatePack example '<zone_id>/<certificate_pack_id>'

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

Properties

Link copied to clipboard

Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions see this page for more details. Available values: "google", "letsencrypt", "sslcom".

Link copied to clipboard

Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.

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

Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

Status of certificate pack. Available values: "initializing", "pendingvalidation", "deleted", "pendingissuance", "pendingdeployment", "pendingdeletion", "pendingexpiration", "expired", "active", "initializingtimedout", "validationtimedout", "issuancetimedout", "deploymenttimedout", "deletiontimedout", "pendingcleanup", "stagingdeployment", "stagingactive", "deactivating", "inactive", "backupissued", "holdingdeployment".

Link copied to clipboard
val type: Output<String>

Type of certificate pack. Available values: "advanced".

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Validation Method selected for the order. Available values: "txt", "http", "email".

Link copied to clipboard
val validityDays: Output<Int>

Validity Days selected for the order. Available values: 14, 30, 90, 365.

Link copied to clipboard
val zoneId: Output<String>

Identifier