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
Create a CertificatePack Resource
new CertificatePack(name: string, args: CertificatePackArgs, opts?: CustomResourceOptions);
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_method: Optional[str] = None, validity_days: Optional[int] = None, zone_id: Optional[str] = None)
func NewCertificatePack(ctx *Context, name string, args CertificatePackArgs, opts ...ResourceOption) (*CertificatePack, error)
public CertificatePack(string name, CertificatePackArgs args, CustomResourceOptions? opts = null)
- 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.
- opts ResourceOptions
- A bag of options that control this 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.
CertificatePack Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The CertificatePack resource accepts the following input properties:
- Hosts List<string>
List of hostnames to provision the certificate pack for. 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
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
- Hosts []string
List of hostnames to provision the certificate pack for. 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
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
- hosts string[]
List of hostnames to provision the certificate pack for. 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
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
- hosts Sequence[str]
List of hostnames to provision the certificate pack for. 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_
method str Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
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 str
- 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_method: Optional[str] = None, validity_days: Optional[int] = 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)
- 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.
The following state arguments are supported:
- 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. 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
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
- 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. 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
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
- 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. 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
Method string Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
- 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. 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_
method str Which validation method to use in order to prove domain ownership. Allowed values:
"txt"
,"http"
,"email"
.- 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.
- zone_
id str The DNS zone to which the certificate pack should be added.
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.