Certificate Pack Args
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 validationMethod: Output<String>? = null, val validityDays: Output<Int>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<CertificatePackArgs>
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,
});
Content copied to clipboard
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)
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Import
$ pulumi import cloudflare:index/certificatePack:CertificatePack example '<zone_id>/<certificate_pack_id>'
Content copied to clipboard
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
Validation Method selected for the order. Available values: "txt", "http", "email".
Link copied to clipboard
Validity Days selected for the order. Available values: 14, 30, 90, 365.