1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. Certificate
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.alb.Certificate

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage alb certificate

    Example Usage

    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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.alb.Certificate("foo",
        description="test123",
        private_key="private key",
        public_key="public key")
    
    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",
    });
    
    resources:
      foo:
        type: volcengine:alb:Certificate
        properties:
          description: test123
          privateKey: private key
          publicKey: public key
    

    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 string
    The unique name of the resource.
    args CertificateArgs
    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 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 string
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    var certificateResource = new Certificate("certificateResource", CertificateArgs.builder()
        .privateKey("string")
        .publicKey("string")
        .certificateName("string")
        .description("string")
        .projectName("string")
        .build());
    
    certificate_resource = volcengine.alb.Certificate("certificateResource",
        private_key="string",
        public_key="string",
        certificate_name="string",
        description="string",
        project_name="string")
    
    const certificateResource = new volcengine.alb.Certificate("certificateResource", {
        privateKey: "string",
        publicKey: "string",
        certificateName: "string",
        description: "string",
        projectName: "string",
    });
    
    type: volcengine:alb:Certificate
    properties:
        certificateName: string
        description: string
        privateKey: string
        projectName: string
        publicKey: string
    

    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

    The Certificate resource accepts the following input properties:

    PrivateKey string
    The private key of the Certificate.
    PublicKey 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 string
    The private key of the Certificate.
    PublicKey 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 String
    The private key of the Certificate.
    publicKey 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 string
    The private key of the Certificate.
    publicKey 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 str
    The private key of the Certificate.
    public_key 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 String
    The private key of the Certificate.
    publicKey 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)
    Resource lookup is not supported in YAML
    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:
    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 string
    The private key of the Certificate.
    ProjectName string
    The project name of the Certificate.
    PublicKey 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 string
    The private key of the Certificate.
    ProjectName string
    The project name of the Certificate.
    PublicKey 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 String
    The private key of the Certificate.
    projectName String
    The project name of the Certificate.
    publicKey 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 string
    The private key of the Certificate.
    projectName string
    The project name of the Certificate.
    publicKey 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 str
    The private key of the Certificate.
    project_name str
    The project name of the Certificate.
    public_key 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 String
    The private key of the Certificate.
    projectName String
    The project name of the Certificate.
    publicKey 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
    

    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.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine