1. Packages
  2. DNSimple Provider
  3. API Docs
  4. LetsEncryptCertificate
DNSimple v5.0.1 published on Friday, Jan 9, 2026 by Pulumi
dnsimple logo
DNSimple v5.0.1 published on Friday, Jan 9, 2026 by Pulumi

    Provides a DNSimple Let’s Encrypt certificate resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dnsimple from "@pulumi/dnsimple";
    
    const example = new dnsimple.LetsEncryptCertificate("example", {
        domainId: "example.com",
        name: "www",
        autoRenew: true,
        alternateNames: [
            "docs.example.com",
            "status.example.com",
        ],
    });
    
    import pulumi
    import pulumi_dnsimple as dnsimple
    
    example = dnsimple.LetsEncryptCertificate("example",
        domain_id="example.com",
        name="www",
        auto_renew=True,
        alternate_names=[
            "docs.example.com",
            "status.example.com",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dnsimple/sdk/v5/go/dnsimple"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dnsimple.NewLetsEncryptCertificate(ctx, "example", &dnsimple.LetsEncryptCertificateArgs{
    			DomainId:  pulumi.String("example.com"),
    			Name:      pulumi.String("www"),
    			AutoRenew: pulumi.Bool(true),
    			AlternateNames: pulumi.StringArray{
    				pulumi.String("docs.example.com"),
    				pulumi.String("status.example.com"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DNSimple = Pulumi.DNSimple;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new DNSimple.LetsEncryptCertificate("example", new()
        {
            DomainId = "example.com",
            Name = "www",
            AutoRenew = true,
            AlternateNames = new[]
            {
                "docs.example.com",
                "status.example.com",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dnsimple.LetsEncryptCertificate;
    import com.pulumi.dnsimple.LetsEncryptCertificateArgs;
    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 LetsEncryptCertificate("example", LetsEncryptCertificateArgs.builder()
                .domainId("example.com")
                .name("www")
                .autoRenew(true)
                .alternateNames(            
                    "docs.example.com",
                    "status.example.com")
                .build());
    
        }
    }
    
    resources:
      example:
        type: dnsimple:LetsEncryptCertificate
        properties:
          domainId: example.com
          name: www
          autoRenew: true
          alternateNames:
            - docs.example.com
            - status.example.com
    

    Create LetsEncryptCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LetsEncryptCertificate(name: string, args: LetsEncryptCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def LetsEncryptCertificate(resource_name: str,
                               args: LetsEncryptCertificateArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def LetsEncryptCertificate(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               auto_renew: Optional[bool] = None,
                               domain_id: Optional[str] = None,
                               name: Optional[str] = None,
                               alternate_names: Optional[Sequence[str]] = None,
                               signature_algorithm: Optional[str] = None)
    func NewLetsEncryptCertificate(ctx *Context, name string, args LetsEncryptCertificateArgs, opts ...ResourceOption) (*LetsEncryptCertificate, error)
    public LetsEncryptCertificate(string name, LetsEncryptCertificateArgs args, CustomResourceOptions? opts = null)
    public LetsEncryptCertificate(String name, LetsEncryptCertificateArgs args)
    public LetsEncryptCertificate(String name, LetsEncryptCertificateArgs args, CustomResourceOptions options)
    
    type: dnsimple:LetsEncryptCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LetsEncryptCertificateArgs
    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 LetsEncryptCertificateArgs
    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 LetsEncryptCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LetsEncryptCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LetsEncryptCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var letsEncryptCertificateResource = new DNSimple.LetsEncryptCertificate("letsEncryptCertificateResource", new()
    {
        AutoRenew = false,
        DomainId = "string",
        Name = "string",
        AlternateNames = new[]
        {
            "string",
        },
        SignatureAlgorithm = "string",
    });
    
    example, err := dnsimple.NewLetsEncryptCertificate(ctx, "letsEncryptCertificateResource", &dnsimple.LetsEncryptCertificateArgs{
    	AutoRenew: pulumi.Bool(false),
    	DomainId:  pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	AlternateNames: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SignatureAlgorithm: pulumi.String("string"),
    })
    
    var letsEncryptCertificateResource = new LetsEncryptCertificate("letsEncryptCertificateResource", LetsEncryptCertificateArgs.builder()
        .autoRenew(false)
        .domainId("string")
        .name("string")
        .alternateNames("string")
        .signatureAlgorithm("string")
        .build());
    
    lets_encrypt_certificate_resource = dnsimple.LetsEncryptCertificate("letsEncryptCertificateResource",
        auto_renew=False,
        domain_id="string",
        name="string",
        alternate_names=["string"],
        signature_algorithm="string")
    
    const letsEncryptCertificateResource = new dnsimple.LetsEncryptCertificate("letsEncryptCertificateResource", {
        autoRenew: false,
        domainId: "string",
        name: "string",
        alternateNames: ["string"],
        signatureAlgorithm: "string",
    });
    
    type: dnsimple:LetsEncryptCertificate
    properties:
        alternateNames:
            - string
        autoRenew: false
        domainId: string
        name: string
        signatureAlgorithm: string
    

    LetsEncryptCertificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LetsEncryptCertificate resource accepts the following input properties:

    AutoRenew bool
    Whether the certificate should auto-renew.
    DomainId string
    The domain name or ID to issue the certificate for.
    Name string
    The certificate name; use "" for the root domain. Wildcard names are supported.
    AlternateNames List<string>
    List of alternate names (SANs) for the certificate.
    SignatureAlgorithm string
    The signature algorithm to use for the certificate.
    AutoRenew bool
    Whether the certificate should auto-renew.
    DomainId string
    The domain name or ID to issue the certificate for.
    Name string
    The certificate name; use "" for the root domain. Wildcard names are supported.
    AlternateNames []string
    List of alternate names (SANs) for the certificate.
    SignatureAlgorithm string
    The signature algorithm to use for the certificate.
    autoRenew Boolean
    Whether the certificate should auto-renew.
    domainId String
    The domain name or ID to issue the certificate for.
    name String
    The certificate name; use "" for the root domain. Wildcard names are supported.
    alternateNames List<String>
    List of alternate names (SANs) for the certificate.
    signatureAlgorithm String
    The signature algorithm to use for the certificate.
    autoRenew boolean
    Whether the certificate should auto-renew.
    domainId string
    The domain name or ID to issue the certificate for.
    name string
    The certificate name; use "" for the root domain. Wildcard names are supported.
    alternateNames string[]
    List of alternate names (SANs) for the certificate.
    signatureAlgorithm string
    The signature algorithm to use for the certificate.
    auto_renew bool
    Whether the certificate should auto-renew.
    domain_id str
    The domain name or ID to issue the certificate for.
    name str
    The certificate name; use "" for the root domain. Wildcard names are supported.
    alternate_names Sequence[str]
    List of alternate names (SANs) for the certificate.
    signature_algorithm str
    The signature algorithm to use for the certificate.
    autoRenew Boolean
    Whether the certificate should auto-renew.
    domainId String
    The domain name or ID to issue the certificate for.
    name String
    The certificate name; use "" for the root domain. Wildcard names are supported.
    alternateNames List<String>
    List of alternate names (SANs) for the certificate.
    signatureAlgorithm String
    The signature algorithm to use for the certificate.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LetsEncryptCertificate resource produces the following output properties:

    AuthorityIdentifier string
    The identifying certification authority (CA).
    CreatedAt string
    The datetime when the certificate was created.
    Csr string
    The certificate signing request.
    ExpiresAt string
    The datetime when the certificate will expire.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The state of the certificate.
    UpdatedAt string
    The datetime when the certificate was last updated.
    Years int
    The number of years the certificate will last.
    AuthorityIdentifier string
    The identifying certification authority (CA).
    CreatedAt string
    The datetime when the certificate was created.
    Csr string
    The certificate signing request.
    ExpiresAt string
    The datetime when the certificate will expire.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The state of the certificate.
    UpdatedAt string
    The datetime when the certificate was last updated.
    Years int
    The number of years the certificate will last.
    authorityIdentifier String
    The identifying certification authority (CA).
    createdAt String
    The datetime when the certificate was created.
    csr String
    The certificate signing request.
    expiresAt String
    The datetime when the certificate will expire.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The state of the certificate.
    updatedAt String
    The datetime when the certificate was last updated.
    years Integer
    The number of years the certificate will last.
    authorityIdentifier string
    The identifying certification authority (CA).
    createdAt string
    The datetime when the certificate was created.
    csr string
    The certificate signing request.
    expiresAt string
    The datetime when the certificate will expire.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The state of the certificate.
    updatedAt string
    The datetime when the certificate was last updated.
    years number
    The number of years the certificate will last.
    authority_identifier str
    The identifying certification authority (CA).
    created_at str
    The datetime when the certificate was created.
    csr str
    The certificate signing request.
    expires_at str
    The datetime when the certificate will expire.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The state of the certificate.
    updated_at str
    The datetime when the certificate was last updated.
    years int
    The number of years the certificate will last.
    authorityIdentifier String
    The identifying certification authority (CA).
    createdAt String
    The datetime when the certificate was created.
    csr String
    The certificate signing request.
    expiresAt String
    The datetime when the certificate will expire.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The state of the certificate.
    updatedAt String
    The datetime when the certificate was last updated.
    years Number
    The number of years the certificate will last.

    Look up Existing LetsEncryptCertificate Resource

    Get an existing LetsEncryptCertificate 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?: LetsEncryptCertificateState, opts?: CustomResourceOptions): LetsEncryptCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alternate_names: Optional[Sequence[str]] = None,
            authority_identifier: Optional[str] = None,
            auto_renew: Optional[bool] = None,
            created_at: Optional[str] = None,
            csr: Optional[str] = None,
            domain_id: Optional[str] = None,
            expires_at: Optional[str] = None,
            name: Optional[str] = None,
            signature_algorithm: Optional[str] = None,
            state: Optional[str] = None,
            updated_at: Optional[str] = None,
            years: Optional[int] = None) -> LetsEncryptCertificate
    func GetLetsEncryptCertificate(ctx *Context, name string, id IDInput, state *LetsEncryptCertificateState, opts ...ResourceOption) (*LetsEncryptCertificate, error)
    public static LetsEncryptCertificate Get(string name, Input<string> id, LetsEncryptCertificateState? state, CustomResourceOptions? opts = null)
    public static LetsEncryptCertificate get(String name, Output<String> id, LetsEncryptCertificateState state, CustomResourceOptions options)
    resources:  _:    type: dnsimple:LetsEncryptCertificate    get:      id: ${id}
    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.
    The following state arguments are supported:
    AlternateNames List<string>
    List of alternate names (SANs) for the certificate.
    AuthorityIdentifier string
    The identifying certification authority (CA).
    AutoRenew bool
    Whether the certificate should auto-renew.
    CreatedAt string
    The datetime when the certificate was created.
    Csr string
    The certificate signing request.
    DomainId string
    The domain name or ID to issue the certificate for.
    ExpiresAt string
    The datetime when the certificate will expire.
    Name string
    The certificate name; use "" for the root domain. Wildcard names are supported.
    SignatureAlgorithm string
    The signature algorithm to use for the certificate.
    State string
    The state of the certificate.
    UpdatedAt string
    The datetime when the certificate was last updated.
    Years int
    The number of years the certificate will last.
    AlternateNames []string
    List of alternate names (SANs) for the certificate.
    AuthorityIdentifier string
    The identifying certification authority (CA).
    AutoRenew bool
    Whether the certificate should auto-renew.
    CreatedAt string
    The datetime when the certificate was created.
    Csr string
    The certificate signing request.
    DomainId string
    The domain name or ID to issue the certificate for.
    ExpiresAt string
    The datetime when the certificate will expire.
    Name string
    The certificate name; use "" for the root domain. Wildcard names are supported.
    SignatureAlgorithm string
    The signature algorithm to use for the certificate.
    State string
    The state of the certificate.
    UpdatedAt string
    The datetime when the certificate was last updated.
    Years int
    The number of years the certificate will last.
    alternateNames List<String>
    List of alternate names (SANs) for the certificate.
    authorityIdentifier String
    The identifying certification authority (CA).
    autoRenew Boolean
    Whether the certificate should auto-renew.
    createdAt String
    The datetime when the certificate was created.
    csr String
    The certificate signing request.
    domainId String
    The domain name or ID to issue the certificate for.
    expiresAt String
    The datetime when the certificate will expire.
    name String
    The certificate name; use "" for the root domain. Wildcard names are supported.
    signatureAlgorithm String
    The signature algorithm to use for the certificate.
    state String
    The state of the certificate.
    updatedAt String
    The datetime when the certificate was last updated.
    years Integer
    The number of years the certificate will last.
    alternateNames string[]
    List of alternate names (SANs) for the certificate.
    authorityIdentifier string
    The identifying certification authority (CA).
    autoRenew boolean
    Whether the certificate should auto-renew.
    createdAt string
    The datetime when the certificate was created.
    csr string
    The certificate signing request.
    domainId string
    The domain name or ID to issue the certificate for.
    expiresAt string
    The datetime when the certificate will expire.
    name string
    The certificate name; use "" for the root domain. Wildcard names are supported.
    signatureAlgorithm string
    The signature algorithm to use for the certificate.
    state string
    The state of the certificate.
    updatedAt string
    The datetime when the certificate was last updated.
    years number
    The number of years the certificate will last.
    alternate_names Sequence[str]
    List of alternate names (SANs) for the certificate.
    authority_identifier str
    The identifying certification authority (CA).
    auto_renew bool
    Whether the certificate should auto-renew.
    created_at str
    The datetime when the certificate was created.
    csr str
    The certificate signing request.
    domain_id str
    The domain name or ID to issue the certificate for.
    expires_at str
    The datetime when the certificate will expire.
    name str
    The certificate name; use "" for the root domain. Wildcard names are supported.
    signature_algorithm str
    The signature algorithm to use for the certificate.
    state str
    The state of the certificate.
    updated_at str
    The datetime when the certificate was last updated.
    years int
    The number of years the certificate will last.
    alternateNames List<String>
    List of alternate names (SANs) for the certificate.
    authorityIdentifier String
    The identifying certification authority (CA).
    autoRenew Boolean
    Whether the certificate should auto-renew.
    createdAt String
    The datetime when the certificate was created.
    csr String
    The certificate signing request.
    domainId String
    The domain name or ID to issue the certificate for.
    expiresAt String
    The datetime when the certificate will expire.
    name String
    The certificate name; use "" for the root domain. Wildcard names are supported.
    signatureAlgorithm String
    The signature algorithm to use for the certificate.
    state String
    The state of the certificate.
    updatedAt String
    The datetime when the certificate was last updated.
    years Number
    The number of years the certificate will last.

    Import

    DNSimple Let’s Encrypt certificates can be imported using the domain name and certificate ID in the format domain_name_certificate_id.

    bash

    $ pulumi import dnsimple:index/letsEncryptCertificate:LetsEncryptCertificate example example.com_1234
    

    The certificate ID can be found via the DNSimple Certificates API.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    DNSimple pulumi/pulumi-dnsimple
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dnsimple Terraform Provider.
    dnsimple logo
    DNSimple v5.0.1 published on Friday, Jan 9, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate