1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. Certificate
Volcengine v0.0.28 published on Thursday, Apr 24, 2025 by Volcengine

volcengine.alb.Certificate

Explore with Pulumi AI

Provides a resource to manage alb certificate

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const foo = new volcengine.alb.Certificate("foo", {
    description: "test123",
    privateKey: "private key",
    publicKey: "public key",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.alb.Certificate("foo",
    description="test123",
    private_key="private key",
    public_key="public key")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := alb.NewCertificate(ctx, "foo", &alb.CertificateArgs{
			Description: pulumi.String("test123"),
			PrivateKey:  pulumi.String("private key"),
			PublicKey:   pulumi.String("public key"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Alb.Certificate("foo", new()
    {
        Description = "test123",
        PrivateKey = "private key",
        PublicKey = "public key",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.alb.Certificate;
import com.pulumi.volcengine.alb.CertificateArgs;
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 foo = new Certificate("foo", CertificateArgs.builder()        
            .description("test123")
            .privateKey("private key")
            .publicKey("public key")
            .build());

    }
}
Copy
resources:
  foo:
    type: volcengine:alb:Certificate
    properties:
      description: test123
      privateKey: private key
      publicKey: public key
Copy

Create Certificate Resource

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

Constructor syntax

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

@overload
def Certificate(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                private_key: Optional[str] = None,
                public_key: Optional[str] = None,
                certificate_name: Optional[str] = None,
                description: Optional[str] = None,
                project_name: Optional[str] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: volcengine:alb:Certificate
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. CertificateArgs
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. CertificateArgs
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. CertificateArgs
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. CertificateArgs
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. CertificateArgs
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 certificateResource = new Volcengine.Alb.Certificate("certificateResource", new()
{
    PrivateKey = "string",
    PublicKey = "string",
    CertificateName = "string",
    Description = "string",
    ProjectName = "string",
});
Copy
example, err := alb.NewCertificate(ctx, "certificateResource", &alb.CertificateArgs{
	PrivateKey:      pulumi.String("string"),
	PublicKey:       pulumi.String("string"),
	CertificateName: pulumi.String("string"),
	Description:     pulumi.String("string"),
	ProjectName:     pulumi.String("string"),
})
Copy
var certificateResource = new com.pulumi.volcengine.alb.Certificate("certificateResource", com.pulumi.volcengine.alb.CertificateArgs.builder()
    .privateKey("string")
    .publicKey("string")
    .certificateName("string")
    .description("string")
    .projectName("string")
    .build());
Copy
certificate_resource = volcengine.alb.Certificate("certificateResource",
    private_key="string",
    public_key="string",
    certificate_name="string",
    description="string",
    project_name="string")
Copy
const certificateResource = new volcengine.alb.Certificate("certificateResource", {
    privateKey: "string",
    publicKey: "string",
    certificateName: "string",
    description: "string",
    projectName: "string",
});
Copy
type: volcengine:alb:Certificate
properties:
    certificateName: string
    description: string
    privateKey: string
    projectName: string
    publicKey: string
Copy

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

PrivateKey
This property is required.
Changes to this property will trigger replacement.
string
The private key of the Certificate.
PublicKey
This property is required.
Changes to this property will trigger replacement.
string
The public key of the Certificate.
CertificateName string
The name of the Certificate.
Description string
The description of the Certificate.
ProjectName string
The project name of the Certificate.
PrivateKey
This property is required.
Changes to this property will trigger replacement.
string
The private key of the Certificate.
PublicKey
This property is required.
Changes to this property will trigger replacement.
string
The public key of the Certificate.
CertificateName string
The name of the Certificate.
Description string
The description of the Certificate.
ProjectName string
The project name of the Certificate.
privateKey
This property is required.
Changes to this property will trigger replacement.
String
The private key of the Certificate.
publicKey
This property is required.
Changes to this property will trigger replacement.
String
The public key of the Certificate.
certificateName String
The name of the Certificate.
description String
The description of the Certificate.
projectName String
The project name of the Certificate.
privateKey
This property is required.
Changes to this property will trigger replacement.
string
The private key of the Certificate.
publicKey
This property is required.
Changes to this property will trigger replacement.
string
The public key of the Certificate.
certificateName string
The name of the Certificate.
description string
The description of the Certificate.
projectName string
The project name of the Certificate.
private_key
This property is required.
Changes to this property will trigger replacement.
str
The private key of the Certificate.
public_key
This property is required.
Changes to this property will trigger replacement.
str
The public key of the Certificate.
certificate_name str
The name of the Certificate.
description str
The description of the Certificate.
project_name str
The project name of the Certificate.
privateKey
This property is required.
Changes to this property will trigger replacement.
String
The private key of the Certificate.
publicKey
This property is required.
Changes to this property will trigger replacement.
String
The public key of the Certificate.
certificateName String
The name of the Certificate.
description String
The description of the Certificate.
projectName String
The project name of the Certificate.

Outputs

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

CertificateType string
The type of the Certificate.
CreateTime string
The create time of the Certificate.
DomainName string
The domain name of the Certificate.
ExpiredAt string
The expire time of the Certificate.
Id string
The provider-assigned unique ID for this managed resource.
Listeners List<string>
The ID list of the Listener.
Status string
The status of the Certificate.
CertificateType string
The type of the Certificate.
CreateTime string
The create time of the Certificate.
DomainName string
The domain name of the Certificate.
ExpiredAt string
The expire time of the Certificate.
Id string
The provider-assigned unique ID for this managed resource.
Listeners []string
The ID list of the Listener.
Status string
The status of the Certificate.
certificateType String
The type of the Certificate.
createTime String
The create time of the Certificate.
domainName String
The domain name of the Certificate.
expiredAt String
The expire time of the Certificate.
id String
The provider-assigned unique ID for this managed resource.
listeners List<String>
The ID list of the Listener.
status String
The status of the Certificate.
certificateType string
The type of the Certificate.
createTime string
The create time of the Certificate.
domainName string
The domain name of the Certificate.
expiredAt string
The expire time of the Certificate.
id string
The provider-assigned unique ID for this managed resource.
listeners string[]
The ID list of the Listener.
status string
The status of the Certificate.
certificate_type str
The type of the Certificate.
create_time str
The create time of the Certificate.
domain_name str
The domain name of the Certificate.
expired_at str
The expire time of the Certificate.
id str
The provider-assigned unique ID for this managed resource.
listeners Sequence[str]
The ID list of the Listener.
status str
The status of the Certificate.
certificateType String
The type of the Certificate.
createTime String
The create time of the Certificate.
domainName String
The domain name of the Certificate.
expiredAt String
The expire time of the Certificate.
id String
The provider-assigned unique ID for this managed resource.
listeners List<String>
The ID list of the Listener.
status String
The status of the Certificate.

Look up Existing Certificate Resource

Get an existing Certificate 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?: CertificateState, opts?: CustomResourceOptions): Certificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificate_name: Optional[str] = None,
        certificate_type: Optional[str] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        domain_name: Optional[str] = None,
        expired_at: Optional[str] = None,
        listeners: Optional[Sequence[str]] = None,
        private_key: Optional[str] = None,
        project_name: Optional[str] = None,
        public_key: Optional[str] = None,
        status: Optional[str] = None) -> Certificate
func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
resources:  _:    type: volcengine:alb:Certificate    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:
CertificateName string
The name of the Certificate.
CertificateType string
The type of the Certificate.
CreateTime string
The create time of the Certificate.
Description string
The description of the Certificate.
DomainName string
The domain name of the Certificate.
ExpiredAt string
The expire time of the Certificate.
Listeners List<string>
The ID list of the Listener.
PrivateKey Changes to this property will trigger replacement. string
The private key of the Certificate.
ProjectName string
The project name of the Certificate.
PublicKey Changes to this property will trigger replacement. string
The public key of the Certificate.
Status string
The status of the Certificate.
CertificateName string
The name of the Certificate.
CertificateType string
The type of the Certificate.
CreateTime string
The create time of the Certificate.
Description string
The description of the Certificate.
DomainName string
The domain name of the Certificate.
ExpiredAt string
The expire time of the Certificate.
Listeners []string
The ID list of the Listener.
PrivateKey Changes to this property will trigger replacement. string
The private key of the Certificate.
ProjectName string
The project name of the Certificate.
PublicKey Changes to this property will trigger replacement. string
The public key of the Certificate.
Status string
The status of the Certificate.
certificateName String
The name of the Certificate.
certificateType String
The type of the Certificate.
createTime String
The create time of the Certificate.
description String
The description of the Certificate.
domainName String
The domain name of the Certificate.
expiredAt String
The expire time of the Certificate.
listeners List<String>
The ID list of the Listener.
privateKey Changes to this property will trigger replacement. String
The private key of the Certificate.
projectName String
The project name of the Certificate.
publicKey Changes to this property will trigger replacement. String
The public key of the Certificate.
status String
The status of the Certificate.
certificateName string
The name of the Certificate.
certificateType string
The type of the Certificate.
createTime string
The create time of the Certificate.
description string
The description of the Certificate.
domainName string
The domain name of the Certificate.
expiredAt string
The expire time of the Certificate.
listeners string[]
The ID list of the Listener.
privateKey Changes to this property will trigger replacement. string
The private key of the Certificate.
projectName string
The project name of the Certificate.
publicKey Changes to this property will trigger replacement. string
The public key of the Certificate.
status string
The status of the Certificate.
certificate_name str
The name of the Certificate.
certificate_type str
The type of the Certificate.
create_time str
The create time of the Certificate.
description str
The description of the Certificate.
domain_name str
The domain name of the Certificate.
expired_at str
The expire time of the Certificate.
listeners Sequence[str]
The ID list of the Listener.
private_key Changes to this property will trigger replacement. str
The private key of the Certificate.
project_name str
The project name of the Certificate.
public_key Changes to this property will trigger replacement. str
The public key of the Certificate.
status str
The status of the Certificate.
certificateName String
The name of the Certificate.
certificateType String
The type of the Certificate.
createTime String
The create time of the Certificate.
description String
The description of the Certificate.
domainName String
The domain name of the Certificate.
expiredAt String
The expire time of the Certificate.
listeners List<String>
The ID list of the Listener.
privateKey Changes to this property will trigger replacement. String
The private key of the Certificate.
projectName String
The project name of the Certificate.
publicKey Changes to this property will trigger replacement. String
The public key of the Certificate.
status String
The status of the Certificate.

Import

Certificate can be imported using the id, e.g.

$ pulumi import volcengine:alb/certificate:Certificate default cert-2fe5k****c16o5oxruvtk3qf5
Copy

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

Package Details

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