Cloudflare
CertificatePack
Import
Certificate packs can be imported using a composite ID of the zone ID and certificate pack ID. This isn’t recommended and it is advised to replace the certificate entirely instead.
$ pulumi import cloudflare:index/certificatePack:CertificatePack example cb029e245cfdd66dc8d2e570d5dd3322/8fda82e2-6af9-4eb2-992a-5ab65b792ef1
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var dedicatedCustomExample = new Cloudflare.CertificatePack("dedicatedCustomExample", new Cloudflare.CertificatePackArgs
{
Hosts =
{
"example.com",
"sub.example.com",
},
Type = "dedicated_custom",
ZoneId = "1d5fdc9e88c8a8c4518b068cd94331fe",
});
// Advanced certificate manager for DigiCert
var advancedExampleForDigicert = new Cloudflare.CertificatePack("advancedExampleForDigicert", new Cloudflare.CertificatePackArgs
{
CertificateAuthority = "digicert",
CloudflareBranding = false,
Hosts =
{
"example.com",
"sub.example.com",
},
Type = "advanced",
ValidationMethod = "txt",
ValidityDays = 30,
ZoneId = "1d5fdc9e88c8a8c4518b068cd94331fe",
});
// Advanced certificate manager for Let's Encrypt
var advancedExampleForLetsEncrypt = new Cloudflare.CertificatePack("advancedExampleForLetsEncrypt", new Cloudflare.CertificatePackArgs
{
CertificateAuthority = "lets_encrypt",
CloudflareBranding = false,
Hosts =
{
"example.com",
"*.example.com",
},
Type = "advanced",
ValidationMethod = "http",
ValidityDays = 90,
WaitForActiveStatus = true,
ZoneId = "1d5fdc9e88c8a8c4518b068cd94331fe",
});
}
}
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v4/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewCertificatePack(ctx, "dedicatedCustomExample", &cloudflare.CertificatePackArgs{
Hosts: pulumi.StringArray{
pulumi.String("example.com"),
pulumi.String("sub.example.com"),
},
Type: pulumi.String("dedicated_custom"),
ZoneId: pulumi.String("1d5fdc9e88c8a8c4518b068cd94331fe"),
})
if err != nil {
return err
}
_, err = cloudflare.NewCertificatePack(ctx, "advancedExampleForDigicert", &cloudflare.CertificatePackArgs{
CertificateAuthority: pulumi.String("digicert"),
CloudflareBranding: pulumi.Bool(false),
Hosts: pulumi.StringArray{
pulumi.String("example.com"),
pulumi.String("sub.example.com"),
},
Type: pulumi.String("advanced"),
ValidationMethod: pulumi.String("txt"),
ValidityDays: pulumi.Int(30),
ZoneId: pulumi.String("1d5fdc9e88c8a8c4518b068cd94331fe"),
})
if err != nil {
return err
}
_, err = cloudflare.NewCertificatePack(ctx, "advancedExampleForLetsEncrypt", &cloudflare.CertificatePackArgs{
CertificateAuthority: pulumi.String("lets_encrypt"),
CloudflareBranding: pulumi.Bool(false),
Hosts: pulumi.StringArray{
pulumi.String("example.com"),
pulumi.String("*.example.com"),
},
Type: pulumi.String("advanced"),
ValidationMethod: pulumi.String("http"),
ValidityDays: pulumi.Int(90),
WaitForActiveStatus: pulumi.Bool(true),
ZoneId: pulumi.String("1d5fdc9e88c8a8c4518b068cd94331fe"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dedicatedCustomExample = new CertificatePack("dedicatedCustomExample", CertificatePackArgs.builder()
.hosts(
"example.com",
"sub.example.com")
.type("dedicated_custom")
.zoneId("1d5fdc9e88c8a8c4518b068cd94331fe")
.build());
var advancedExampleForDigicert = new CertificatePack("advancedExampleForDigicert", CertificatePackArgs.builder()
.certificateAuthority("digicert")
.cloudflareBranding(false)
.hosts(
"example.com",
"sub.example.com")
.type("advanced")
.validationMethod("txt")
.validityDays(30)
.zoneId("1d5fdc9e88c8a8c4518b068cd94331fe")
.build());
var advancedExampleForLetsEncrypt = new CertificatePack("advancedExampleForLetsEncrypt", CertificatePackArgs.builder()
.certificateAuthority("lets_encrypt")
.cloudflareBranding(false)
.hosts(
"example.com",
"*.example.com")
.type("advanced")
.validationMethod("http")
.validityDays(90)
.waitForActiveStatus(true)
.zoneId("1d5fdc9e88c8a8c4518b068cd94331fe")
.build());
}
}
import pulumi
import pulumi_cloudflare as cloudflare
dedicated_custom_example = cloudflare.CertificatePack("dedicatedCustomExample",
hosts=[
"example.com",
"sub.example.com",
],
type="dedicated_custom",
zone_id="1d5fdc9e88c8a8c4518b068cd94331fe")
# Advanced certificate manager for DigiCert
advanced_example_for_digicert = cloudflare.CertificatePack("advancedExampleForDigicert",
certificate_authority="digicert",
cloudflare_branding=False,
hosts=[
"example.com",
"sub.example.com",
],
type="advanced",
validation_method="txt",
validity_days=30,
zone_id="1d5fdc9e88c8a8c4518b068cd94331fe")
# Advanced certificate manager for Let's Encrypt
advanced_example_for_lets_encrypt = cloudflare.CertificatePack("advancedExampleForLetsEncrypt",
certificate_authority="lets_encrypt",
cloudflare_branding=False,
hosts=[
"example.com",
"*.example.com",
],
type="advanced",
validation_method="http",
validity_days=90,
wait_for_active_status=True,
zone_id="1d5fdc9e88c8a8c4518b068cd94331fe")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const dedicatedCustomExample = new cloudflare.CertificatePack("dedicated_custom_example", {
hosts: [
"example.com",
"sub.example.com",
],
type: "dedicated_custom",
zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe",
});
// Advanced certificate manager for DigiCert
const advancedExampleForDigicert = new cloudflare.CertificatePack("advanced_example_for_digicert", {
certificateAuthority: "digicert",
cloudflareBranding: false,
hosts: [
"example.com",
"sub.example.com",
],
type: "advanced",
validationMethod: "txt",
validityDays: 30,
zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe",
});
// Advanced certificate manager for Let's Encrypt
const advancedExampleForLetsEncrypt = new cloudflare.CertificatePack("advanced_example_for_lets_encrypt", {
certificateAuthority: "lets_encrypt",
cloudflareBranding: false,
hosts: [
"example.com",
"*.example.com",
],
type: "advanced",
validationMethod: "http",
validityDays: 90,
waitForActiveStatus: true,
zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe",
});
resources:
dedicatedCustomExample:
type: cloudflare:CertificatePack
properties:
hosts:
- example.com
- sub.example.com
type: dedicated_custom
zoneId: 1d5fdc9e88c8a8c4518b068cd94331fe
advancedExampleForDigicert:
type: cloudflare:CertificatePack
properties:
certificateAuthority: digicert
cloudflareBranding: false
hosts:
- example.com
- sub.example.com
type: advanced
validationMethod: txt
validityDays: 30
zoneId: 1d5fdc9e88c8a8c4518b068cd94331fe
advancedExampleForLetsEncrypt:
type: cloudflare:CertificatePack
properties:
certificateAuthority: lets_encrypt
cloudflareBranding: false
hosts:
- example.com
- '*.example.com'
type: advanced
validationMethod: http
validityDays: 90
waitForActiveStatus: true
zoneId: 1d5fdc9e88c8a8c4518b068cd94331fe
Create a CertificatePack Resource
new CertificatePack(name: string, args: CertificatePackArgs, opts?: CustomResourceOptions);
@overload
def CertificatePack(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_authority: Optional[str] = None,
cloudflare_branding: Optional[bool] = None,
hosts: Optional[Sequence[str]] = None,
type: Optional[str] = None,
validation_errors: Optional[Sequence[CertificatePackValidationErrorArgs]] = None,
validation_method: Optional[str] = None,
validation_records: Optional[Sequence[CertificatePackValidationRecordArgs]] = None,
validity_days: Optional[int] = None,
wait_for_active_status: Optional[bool] = None,
zone_id: Optional[str] = None)
@overload
def CertificatePack(resource_name: str,
args: CertificatePackArgs,
opts: Optional[ResourceOptions] = None)
func NewCertificatePack(ctx *Context, name string, args CertificatePackArgs, opts ...ResourceOption) (*CertificatePack, error)
public CertificatePack(string name, CertificatePackArgs args, CustomResourceOptions? opts = null)
public CertificatePack(String name, CertificatePackArgs args)
public CertificatePack(String name, CertificatePackArgs args, CustomResourceOptions options)
type: cloudflare:CertificatePack
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificatePackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CertificatePackArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertificatePackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificatePackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificatePackArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CertificatePack Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CertificatePack resource accepts the following input properties:
- Hosts List<string>
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.
- Type string
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- Zone
Id string The DNS zone to which the certificate pack should be added.
- string
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- Cloudflare
Branding bool Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- Validation
Errors List<CertificatePack Validation Error Args> - Validation
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- Validation
Records List<CertificatePack Validation Record Args> - Validity
Days int How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- Wait
For boolActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.
- Hosts []string
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.
- Type string
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- Zone
Id string The DNS zone to which the certificate pack should be added.
- string
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- Cloudflare
Branding bool Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- Validation
Errors []CertificatePack Validation Error Args - Validation
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- Validation
Records []CertificatePack Validation Record Args - Validity
Days int How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- Wait
For boolActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.
- hosts List<String>
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.
- type String
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- zone
Id String The DNS zone to which the certificate pack should be added.
- String
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare
Branding Boolean Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- validation
Errors List<CertificatePack Validation Error Args> - validation
Method String Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation
Records List<CertificatePack Validation Record Args> - validity
Days Integer How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait
For BooleanActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.
- hosts string[]
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.
- type string
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- zone
Id string The DNS zone to which the certificate pack should be added.
- string
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare
Branding boolean Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- validation
Errors CertificatePack Validation Error Args[] - validation
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation
Records CertificatePack Validation Record Args[] - validity
Days number How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait
For booleanActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.
- hosts Sequence[str]
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.
- type str
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- zone_
id str The DNS zone to which the certificate pack should be added.
- str
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare_
branding bool Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- validation_
errors Sequence[CertificatePack Validation Error Args] - validation_
method str Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation_
records Sequence[CertificatePack Validation Record Args] - validity_
days int How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait_
for_ boolactive_ status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.
- hosts List<String>
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.
- type String
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- zone
Id String The DNS zone to which the certificate pack should be added.
- String
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare
Branding Boolean Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- validation
Errors List<Property Map> - validation
Method String Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation
Records List<Property Map> - validity
Days Number How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait
For BooleanActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificatePack resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up an Existing CertificatePack Resource
Get an existing CertificatePack resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CertificatePackState, opts?: CustomResourceOptions): CertificatePack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_authority: Optional[str] = None,
cloudflare_branding: Optional[bool] = None,
hosts: Optional[Sequence[str]] = None,
type: Optional[str] = None,
validation_errors: Optional[Sequence[CertificatePackValidationErrorArgs]] = None,
validation_method: Optional[str] = None,
validation_records: Optional[Sequence[CertificatePackValidationRecordArgs]] = None,
validity_days: Optional[int] = None,
wait_for_active_status: Optional[bool] = None,
zone_id: Optional[str] = None) -> CertificatePack
func GetCertificatePack(ctx *Context, name string, id IDInput, state *CertificatePackState, opts ...ResourceOption) (*CertificatePack, error)
public static CertificatePack Get(string name, Input<string> id, CertificatePackState? state, CustomResourceOptions? opts = null)
public static CertificatePack get(String name, Output<String> id, CertificatePackState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- Cloudflare
Branding bool Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- Hosts List<string>
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.
- Type string
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- Validation
Errors List<CertificatePack Validation Error Args> - Validation
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- Validation
Records List<CertificatePack Validation Record Args> - Validity
Days int How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- Wait
For boolActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.- Zone
Id string The DNS zone to which the certificate pack should be added.
- string
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- Cloudflare
Branding bool Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- Hosts []string
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.
- Type string
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- Validation
Errors []CertificatePack Validation Error Args - Validation
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- Validation
Records []CertificatePack Validation Record Args - Validity
Days int How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- Wait
For boolActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.- Zone
Id string The DNS zone to which the certificate pack should be added.
- String
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare
Branding Boolean Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- hosts List<String>
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.
- type String
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- validation
Errors List<CertificatePack Validation Error Args> - validation
Method String Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation
Records List<CertificatePack Validation Record Args> - validity
Days Integer How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait
For BooleanActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.- zone
Id String The DNS zone to which the certificate pack should be added.
- string
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare
Branding boolean Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- hosts string[]
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.
- type string
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- validation
Errors CertificatePack Validation Error Args[] - validation
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation
Records CertificatePack Validation Record Args[] - validity
Days number How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait
For booleanActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.- zone
Id string The DNS zone to which the certificate pack should be added.
- str
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare_
branding bool Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- hosts Sequence[str]
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.
- type str
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- validation_
errors Sequence[CertificatePack Validation Error Args] - validation_
method str Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation_
records Sequence[CertificatePack Validation Record Args] - validity_
days int How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait_
for_ boolactive_ status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.- zone_
id str The DNS zone to which the certificate pack should be added.
- String
Which certificate authority to issue the certificate pack. Allowed values:
"digicert"
,"lets_encrypt"
.- cloudflare
Branding Boolean Whether or not to include Cloudflare branding. This will add
sni.cloudflaressl.com
as the Common Name if set totrue
.- hosts List<String>
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.
- type String
Certificate pack configuration type. Allowed values:
"custom"
,"dedicated_custom"
,"advanced"
.- validation
Errors List<Property Map> - validation
Method String Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- validation
Records List<Property Map> - validity
Days Number How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Allowed values: 14, 30, 90, 365.
- wait
For BooleanActive Status Whether or not to wait for a certificate pack to reach status
active
during creation. Defaults tofalse
.- zone
Id String The DNS zone to which the certificate pack should be added.
Supporting Types
CertificatePackValidationError
- Message string
- Message string
- message String
- message string
- message str
- message String
CertificatePackValidationRecord
- cname_
name str - cname_
target str - emails Sequence[str]
- http_
body str - http_
url str - txt_
name str - txt_
value str
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.