1. Packages
  2. Ionoscloud
  3. API Docs
  4. cert
  5. AutoCertificateProvider
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

ionoscloud.cert.AutoCertificateProvider

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

    Manages a CM provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = new ionoscloud.cert.AutoCertificateProvider("example", {
        name: "Let's Encrypt",
        email: "user@example.com",
        location: "de/fra",
        server: "https://acme-v02.api.letsencrypt.org/directory",
        externalAccountBinding: {
            keyId: "some-key-id",
            keySecret: "secret",
        },
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.cert.AutoCertificateProvider("example",
        name="Let's Encrypt",
        email="user@example.com",
        location="de/fra",
        server="https://acme-v02.api.letsencrypt.org/directory",
        external_account_binding={
            "key_id": "some-key-id",
            "key_secret": "secret",
        })
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/cert"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cert.NewAutoCertificateProvider(ctx, "example", &cert.AutoCertificateProviderArgs{
    			Name:     pulumi.String("Let's Encrypt"),
    			Email:    pulumi.String("user@example.com"),
    			Location: pulumi.String("de/fra"),
    			Server:   pulumi.String("https://acme-v02.api.letsencrypt.org/directory"),
    			ExternalAccountBinding: &cert.AutoCertificateProviderExternalAccountBindingArgs{
    				KeyId:     pulumi.String("some-key-id"),
    				KeySecret: pulumi.String("secret"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ionoscloud.Cert.AutoCertificateProvider("example", new()
        {
            Name = "Let's Encrypt",
            Email = "user@example.com",
            Location = "de/fra",
            Server = "https://acme-v02.api.letsencrypt.org/directory",
            ExternalAccountBinding = new Ionoscloud.Cert.Inputs.AutoCertificateProviderExternalAccountBindingArgs
            {
                KeyId = "some-key-id",
                KeySecret = "secret",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.cert.AutoCertificateProvider;
    import com.pulumi.ionoscloud.cert.AutoCertificateProviderArgs;
    import com.pulumi.ionoscloud.cert.inputs.AutoCertificateProviderExternalAccountBindingArgs;
    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 AutoCertificateProvider("example", AutoCertificateProviderArgs.builder()
                .name("Let's Encrypt")
                .email("user@example.com")
                .location("de/fra")
                .server("https://acme-v02.api.letsencrypt.org/directory")
                .externalAccountBinding(AutoCertificateProviderExternalAccountBindingArgs.builder()
                    .keyId("some-key-id")
                    .keySecret("secret")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ionoscloud:cert:AutoCertificateProvider
        properties:
          name: Let's Encrypt
          email: user@example.com
          location: de/fra
          server: https://acme-v02.api.letsencrypt.org/directory
          externalAccountBinding:
            keyId: some-key-id
            keySecret: secret
    

    Create AutoCertificateProvider Resource

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

    Constructor syntax

    new AutoCertificateProvider(name: string, args: AutoCertificateProviderArgs, opts?: CustomResourceOptions);
    @overload
    def AutoCertificateProvider(resource_name: str,
                                args: AutoCertificateProviderArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def AutoCertificateProvider(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                email: Optional[str] = None,
                                server: Optional[str] = None,
                                external_account_binding: Optional[AutoCertificateProviderExternalAccountBindingArgs] = None,
                                location: Optional[str] = None,
                                name: Optional[str] = None)
    func NewAutoCertificateProvider(ctx *Context, name string, args AutoCertificateProviderArgs, opts ...ResourceOption) (*AutoCertificateProvider, error)
    public AutoCertificateProvider(string name, AutoCertificateProviderArgs args, CustomResourceOptions? opts = null)
    public AutoCertificateProvider(String name, AutoCertificateProviderArgs args)
    public AutoCertificateProvider(String name, AutoCertificateProviderArgs args, CustomResourceOptions options)
    
    type: ionoscloud:cert:AutoCertificateProvider
    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 AutoCertificateProviderArgs
    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 AutoCertificateProviderArgs
    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 AutoCertificateProviderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AutoCertificateProviderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AutoCertificateProviderArgs
    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 autoCertificateProviderResource = new Ionoscloud.Cert.AutoCertificateProvider("autoCertificateProviderResource", new()
    {
        Email = "string",
        Server = "string",
        ExternalAccountBinding = new Ionoscloud.Cert.Inputs.AutoCertificateProviderExternalAccountBindingArgs
        {
            KeyId = "string",
            KeySecret = "string",
        },
        Location = "string",
        Name = "string",
    });
    
    example, err := cert.NewAutoCertificateProvider(ctx, "autoCertificateProviderResource", &cert.AutoCertificateProviderArgs{
    	Email:  pulumi.String("string"),
    	Server: pulumi.String("string"),
    	ExternalAccountBinding: &cert.AutoCertificateProviderExternalAccountBindingArgs{
    		KeyId:     pulumi.String("string"),
    		KeySecret: pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    })
    
    var autoCertificateProviderResource = new AutoCertificateProvider("autoCertificateProviderResource", AutoCertificateProviderArgs.builder()
        .email("string")
        .server("string")
        .externalAccountBinding(AutoCertificateProviderExternalAccountBindingArgs.builder()
            .keyId("string")
            .keySecret("string")
            .build())
        .location("string")
        .name("string")
        .build());
    
    auto_certificate_provider_resource = ionoscloud.cert.AutoCertificateProvider("autoCertificateProviderResource",
        email="string",
        server="string",
        external_account_binding={
            "key_id": "string",
            "key_secret": "string",
        },
        location="string",
        name="string")
    
    const autoCertificateProviderResource = new ionoscloud.cert.AutoCertificateProvider("autoCertificateProviderResource", {
        email: "string",
        server: "string",
        externalAccountBinding: {
            keyId: "string",
            keySecret: "string",
        },
        location: "string",
        name: "string",
    });
    
    type: ionoscloud:cert:AutoCertificateProvider
    properties:
        email: string
        externalAccountBinding:
            keyId: string
            keySecret: string
        location: string
        name: string
        server: string
    

    AutoCertificateProvider 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 AutoCertificateProvider resource accepts the following input properties:

    Email string
    [string] The email address of the certificate requester.
    Server string
    [string] The URL of the certificate provider.
    ExternalAccountBinding Ionoscloud.AutoCertificateProviderExternalAccountBinding
    [list] External account binding details.
    Location string
    [string] The location of the provider.
    Name string
    [string] The name of the certificate provider.
    Email string
    [string] The email address of the certificate requester.
    Server string
    [string] The URL of the certificate provider.
    ExternalAccountBinding AutoCertificateProviderExternalAccountBindingArgs
    [list] External account binding details.
    Location string
    [string] The location of the provider.
    Name string
    [string] The name of the certificate provider.
    email String
    [string] The email address of the certificate requester.
    server String
    [string] The URL of the certificate provider.
    externalAccountBinding AutoCertificateProviderExternalAccountBinding
    [list] External account binding details.
    location String
    [string] The location of the provider.
    name String
    [string] The name of the certificate provider.
    email string
    [string] The email address of the certificate requester.
    server string
    [string] The URL of the certificate provider.
    externalAccountBinding AutoCertificateProviderExternalAccountBinding
    [list] External account binding details.
    location string
    [string] The location of the provider.
    name string
    [string] The name of the certificate provider.
    email str
    [string] The email address of the certificate requester.
    server str
    [string] The URL of the certificate provider.
    external_account_binding AutoCertificateProviderExternalAccountBindingArgs
    [list] External account binding details.
    location str
    [string] The location of the provider.
    name str
    [string] The name of the certificate provider.
    email String
    [string] The email address of the certificate requester.
    server String
    [string] The URL of the certificate provider.
    externalAccountBinding Property Map
    [list] External account binding details.
    location String
    [string] The location of the provider.
    name String
    [string] The name of the certificate provider.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AutoCertificateProvider 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 Existing AutoCertificateProvider Resource

    Get an existing AutoCertificateProvider 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?: AutoCertificateProviderState, opts?: CustomResourceOptions): AutoCertificateProvider
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email: Optional[str] = None,
            external_account_binding: Optional[AutoCertificateProviderExternalAccountBindingArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            server: Optional[str] = None) -> AutoCertificateProvider
    func GetAutoCertificateProvider(ctx *Context, name string, id IDInput, state *AutoCertificateProviderState, opts ...ResourceOption) (*AutoCertificateProvider, error)
    public static AutoCertificateProvider Get(string name, Input<string> id, AutoCertificateProviderState? state, CustomResourceOptions? opts = null)
    public static AutoCertificateProvider get(String name, Output<String> id, AutoCertificateProviderState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:cert:AutoCertificateProvider    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:
    Email string
    [string] The email address of the certificate requester.
    ExternalAccountBinding Ionoscloud.AutoCertificateProviderExternalAccountBinding
    [list] External account binding details.
    Location string
    [string] The location of the provider.
    Name string
    [string] The name of the certificate provider.
    Server string
    [string] The URL of the certificate provider.
    Email string
    [string] The email address of the certificate requester.
    ExternalAccountBinding AutoCertificateProviderExternalAccountBindingArgs
    [list] External account binding details.
    Location string
    [string] The location of the provider.
    Name string
    [string] The name of the certificate provider.
    Server string
    [string] The URL of the certificate provider.
    email String
    [string] The email address of the certificate requester.
    externalAccountBinding AutoCertificateProviderExternalAccountBinding
    [list] External account binding details.
    location String
    [string] The location of the provider.
    name String
    [string] The name of the certificate provider.
    server String
    [string] The URL of the certificate provider.
    email string
    [string] The email address of the certificate requester.
    externalAccountBinding AutoCertificateProviderExternalAccountBinding
    [list] External account binding details.
    location string
    [string] The location of the provider.
    name string
    [string] The name of the certificate provider.
    server string
    [string] The URL of the certificate provider.
    email str
    [string] The email address of the certificate requester.
    external_account_binding AutoCertificateProviderExternalAccountBindingArgs
    [list] External account binding details.
    location str
    [string] The location of the provider.
    name str
    [string] The name of the certificate provider.
    server str
    [string] The URL of the certificate provider.
    email String
    [string] The email address of the certificate requester.
    externalAccountBinding Property Map
    [list] External account binding details.
    location String
    [string] The location of the provider.
    name String
    [string] The name of the certificate provider.
    server String
    [string] The URL of the certificate provider.

    Supporting Types

    AutoCertificateProviderExternalAccountBinding, AutoCertificateProviderExternalAccountBindingArgs

    KeyId string
    [string] The key ID of the external account binding.
    KeySecret string
    [string] The key secret of the external account binding
    KeyId string
    [string] The key ID of the external account binding.
    KeySecret string
    [string] The key secret of the external account binding
    keyId String
    [string] The key ID of the external account binding.
    keySecret String
    [string] The key secret of the external account binding
    keyId string
    [string] The key ID of the external account binding.
    keySecret string
    [string] The key secret of the external account binding
    key_id str
    [string] The key ID of the external account binding.
    key_secret str
    [string] The key secret of the external account binding
    keyId String
    [string] The key ID of the external account binding.
    keySecret String
    [string] The key secret of the external account binding

    Import

    The resource can be imported using the provider_id and the location, separated by :, e.g.

    $ pulumi import ionoscloud:cert/autoCertificateProvider:AutoCertificateProvider example location:provider_id
    

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

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud