1. Packages
  2. UpCloud
  3. API Docs
  4. LoadbalancerDynamicCertificateBundle
UpCloud v0.2.0 published on Wednesday, Apr 16, 2025 by UpCloudLtd

upcloud.LoadbalancerDynamicCertificateBundle

Explore with Pulumi AI

This resource represents dynamic certificate bundle

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as upcloud from "@upcloud/pulumi-upcloud";

const lbCbD1 = new upcloud.LoadbalancerDynamicCertificateBundle("lb_cb_d1", {
    name: "lb-cb-d1-test",
    hostnames: [
        "example.com",
        "app.example.net",
    ],
    keyType: "rsa",
});
Copy
import pulumi
import pulumi_upcloud as upcloud

lb_cb_d1 = upcloud.LoadbalancerDynamicCertificateBundle("lb_cb_d1",
    name="lb-cb-d1-test",
    hostnames=[
        "example.com",
        "app.example.net",
    ],
    key_type="rsa")
Copy
package main

import (
	"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := upcloud.NewLoadbalancerDynamicCertificateBundle(ctx, "lb_cb_d1", &upcloud.LoadbalancerDynamicCertificateBundleArgs{
			Name: pulumi.String("lb-cb-d1-test"),
			Hostnames: pulumi.StringArray{
				pulumi.String("example.com"),
				pulumi.String("app.example.net"),
			},
			KeyType: pulumi.String("rsa"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using UpCloud = UpCloud.Pulumi.UpCloud;

return await Deployment.RunAsync(() => 
{
    var lbCbD1 = new UpCloud.LoadbalancerDynamicCertificateBundle("lb_cb_d1", new()
    {
        Name = "lb-cb-d1-test",
        Hostnames = new[]
        {
            "example.com",
            "app.example.net",
        },
        KeyType = "rsa",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.upcloud.LoadbalancerDynamicCertificateBundle;
import com.pulumi.upcloud.LoadbalancerDynamicCertificateBundleArgs;
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 lbCbD1 = new LoadbalancerDynamicCertificateBundle("lbCbD1", LoadbalancerDynamicCertificateBundleArgs.builder()
            .name("lb-cb-d1-test")
            .hostnames(            
                "example.com",
                "app.example.net")
            .keyType("rsa")
            .build());

    }
}
Copy
resources:
  lbCbD1:
    type: upcloud:LoadbalancerDynamicCertificateBundle
    name: lb_cb_d1
    properties:
      name: lb-cb-d1-test
      hostnames:
        - example.com
        - app.example.net
      keyType: rsa
Copy

Create LoadbalancerDynamicCertificateBundle Resource

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

Constructor syntax

new LoadbalancerDynamicCertificateBundle(name: string, args: LoadbalancerDynamicCertificateBundleArgs, opts?: CustomResourceOptions);
@overload
def LoadbalancerDynamicCertificateBundle(resource_name: str,
                                         args: LoadbalancerDynamicCertificateBundleArgs,
                                         opts: Optional[ResourceOptions] = None)

@overload
def LoadbalancerDynamicCertificateBundle(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         hostnames: Optional[Sequence[str]] = None,
                                         key_type: Optional[str] = None,
                                         name: Optional[str] = None)
func NewLoadbalancerDynamicCertificateBundle(ctx *Context, name string, args LoadbalancerDynamicCertificateBundleArgs, opts ...ResourceOption) (*LoadbalancerDynamicCertificateBundle, error)
public LoadbalancerDynamicCertificateBundle(string name, LoadbalancerDynamicCertificateBundleArgs args, CustomResourceOptions? opts = null)
public LoadbalancerDynamicCertificateBundle(String name, LoadbalancerDynamicCertificateBundleArgs args)
public LoadbalancerDynamicCertificateBundle(String name, LoadbalancerDynamicCertificateBundleArgs args, CustomResourceOptions options)
type: upcloud:LoadbalancerDynamicCertificateBundle
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LoadbalancerDynamicCertificateBundleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LoadbalancerDynamicCertificateBundleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LoadbalancerDynamicCertificateBundleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LoadbalancerDynamicCertificateBundleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LoadbalancerDynamicCertificateBundleArgs
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 loadbalancerDynamicCertificateBundleResource = new UpCloud.LoadbalancerDynamicCertificateBundle("loadbalancerDynamicCertificateBundleResource", new()
{
    Hostnames = new[]
    {
        "string",
    },
    KeyType = "string",
    Name = "string",
});
Copy
example, err := upcloud.NewLoadbalancerDynamicCertificateBundle(ctx, "loadbalancerDynamicCertificateBundleResource", &upcloud.LoadbalancerDynamicCertificateBundleArgs{
	Hostnames: pulumi.StringArray{
		pulumi.String("string"),
	},
	KeyType: pulumi.String("string"),
	Name:    pulumi.String("string"),
})
Copy
var loadbalancerDynamicCertificateBundleResource = new LoadbalancerDynamicCertificateBundle("loadbalancerDynamicCertificateBundleResource", LoadbalancerDynamicCertificateBundleArgs.builder()
    .hostnames("string")
    .keyType("string")
    .name("string")
    .build());
Copy
loadbalancer_dynamic_certificate_bundle_resource = upcloud.LoadbalancerDynamicCertificateBundle("loadbalancerDynamicCertificateBundleResource",
    hostnames=["string"],
    key_type="string",
    name="string")
Copy
const loadbalancerDynamicCertificateBundleResource = new upcloud.LoadbalancerDynamicCertificateBundle("loadbalancerDynamicCertificateBundleResource", {
    hostnames: ["string"],
    keyType: "string",
    name: "string",
});
Copy
type: upcloud:LoadbalancerDynamicCertificateBundle
properties:
    hostnames:
        - string
    keyType: string
    name: string
Copy

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

Hostnames This property is required. List<string>
Certificate hostnames.
KeyType This property is required. string
Private key type (rsa / ecdsa).
Name string
The name of the certificate bundle. Must be unique within customer account.
Hostnames This property is required. []string
Certificate hostnames.
KeyType This property is required. string
Private key type (rsa / ecdsa).
Name string
The name of the certificate bundle. Must be unique within customer account.
hostnames This property is required. List<String>
Certificate hostnames.
keyType This property is required. String
Private key type (rsa / ecdsa).
name String
The name of the certificate bundle. Must be unique within customer account.
hostnames This property is required. string[]
Certificate hostnames.
keyType This property is required. string
Private key type (rsa / ecdsa).
name string
The name of the certificate bundle. Must be unique within customer account.
hostnames This property is required. Sequence[str]
Certificate hostnames.
key_type This property is required. str
Private key type (rsa / ecdsa).
name str
The name of the certificate bundle. Must be unique within customer account.
hostnames This property is required. List<String>
Certificate hostnames.
keyType This property is required. String
Private key type (rsa / ecdsa).
name String
The name of the certificate bundle. Must be unique within customer account.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
NotAfter string
The time after which a certificate is no longer valid.
NotBefore string
The time on which a certificate becomes valid.
OperationalState string
The service operational state indicates the service's current operational, effective state. Managed by the system.
Id string
The provider-assigned unique ID for this managed resource.
NotAfter string
The time after which a certificate is no longer valid.
NotBefore string
The time on which a certificate becomes valid.
OperationalState string
The service operational state indicates the service's current operational, effective state. Managed by the system.
id String
The provider-assigned unique ID for this managed resource.
notAfter String
The time after which a certificate is no longer valid.
notBefore String
The time on which a certificate becomes valid.
operationalState String
The service operational state indicates the service's current operational, effective state. Managed by the system.
id string
The provider-assigned unique ID for this managed resource.
notAfter string
The time after which a certificate is no longer valid.
notBefore string
The time on which a certificate becomes valid.
operationalState string
The service operational state indicates the service's current operational, effective state. Managed by the system.
id str
The provider-assigned unique ID for this managed resource.
not_after str
The time after which a certificate is no longer valid.
not_before str
The time on which a certificate becomes valid.
operational_state str
The service operational state indicates the service's current operational, effective state. Managed by the system.
id String
The provider-assigned unique ID for this managed resource.
notAfter String
The time after which a certificate is no longer valid.
notBefore String
The time on which a certificate becomes valid.
operationalState String
The service operational state indicates the service's current operational, effective state. Managed by the system.

Look up Existing LoadbalancerDynamicCertificateBundle Resource

Get an existing LoadbalancerDynamicCertificateBundle 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?: LoadbalancerDynamicCertificateBundleState, opts?: CustomResourceOptions): LoadbalancerDynamicCertificateBundle
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        hostnames: Optional[Sequence[str]] = None,
        key_type: Optional[str] = None,
        name: Optional[str] = None,
        not_after: Optional[str] = None,
        not_before: Optional[str] = None,
        operational_state: Optional[str] = None) -> LoadbalancerDynamicCertificateBundle
func GetLoadbalancerDynamicCertificateBundle(ctx *Context, name string, id IDInput, state *LoadbalancerDynamicCertificateBundleState, opts ...ResourceOption) (*LoadbalancerDynamicCertificateBundle, error)
public static LoadbalancerDynamicCertificateBundle Get(string name, Input<string> id, LoadbalancerDynamicCertificateBundleState? state, CustomResourceOptions? opts = null)
public static LoadbalancerDynamicCertificateBundle get(String name, Output<String> id, LoadbalancerDynamicCertificateBundleState state, CustomResourceOptions options)
resources:  _:    type: upcloud:LoadbalancerDynamicCertificateBundle    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Hostnames List<string>
Certificate hostnames.
KeyType string
Private key type (rsa / ecdsa).
Name string
The name of the certificate bundle. Must be unique within customer account.
NotAfter string
The time after which a certificate is no longer valid.
NotBefore string
The time on which a certificate becomes valid.
OperationalState string
The service operational state indicates the service's current operational, effective state. Managed by the system.
Hostnames []string
Certificate hostnames.
KeyType string
Private key type (rsa / ecdsa).
Name string
The name of the certificate bundle. Must be unique within customer account.
NotAfter string
The time after which a certificate is no longer valid.
NotBefore string
The time on which a certificate becomes valid.
OperationalState string
The service operational state indicates the service's current operational, effective state. Managed by the system.
hostnames List<String>
Certificate hostnames.
keyType String
Private key type (rsa / ecdsa).
name String
The name of the certificate bundle. Must be unique within customer account.
notAfter String
The time after which a certificate is no longer valid.
notBefore String
The time on which a certificate becomes valid.
operationalState String
The service operational state indicates the service's current operational, effective state. Managed by the system.
hostnames string[]
Certificate hostnames.
keyType string
Private key type (rsa / ecdsa).
name string
The name of the certificate bundle. Must be unique within customer account.
notAfter string
The time after which a certificate is no longer valid.
notBefore string
The time on which a certificate becomes valid.
operationalState string
The service operational state indicates the service's current operational, effective state. Managed by the system.
hostnames Sequence[str]
Certificate hostnames.
key_type str
Private key type (rsa / ecdsa).
name str
The name of the certificate bundle. Must be unique within customer account.
not_after str
The time after which a certificate is no longer valid.
not_before str
The time on which a certificate becomes valid.
operational_state str
The service operational state indicates the service's current operational, effective state. Managed by the system.
hostnames List<String>
Certificate hostnames.
keyType String
Private key type (rsa / ecdsa).
name String
The name of the certificate bundle. Must be unique within customer account.
notAfter String
The time after which a certificate is no longer valid.
notBefore String
The time on which a certificate becomes valid.
operationalState String
The service operational state indicates the service's current operational, effective state. Managed by the system.

Package Details

Repository
upcloud UpCloudLtd/pulumi-upcloud
License
Apache-2.0
Notes
This Pulumi package is based on the upcloud Terraform Provider.