1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. CACertificate
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

volcengine.alb.CACertificate

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

    Provides a resource to manage alb ca 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.CACertificate("foo", new()
        {
            CaCertificate = @"-----BEGIN CERTIFICATE-----
    -----END CERTIFICATE-----
    ",
            CaCertificateName = "acc-test-1",
            Description = "acc-test-1",
            ProjectName = "default",
        });
    
    });
    
    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.NewCACertificate(ctx, "foo", &alb.CACertificateArgs{
    			CaCertificate:     pulumi.String("-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----\n"),
    			CaCertificateName: pulumi.String("acc-test-1"),
    			Description:       pulumi.String("acc-test-1"),
    			ProjectName:       pulumi.String("default"),
    		})
    		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.CACertificate;
    import com.pulumi.volcengine.alb.CACertificateArgs;
    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 CACertificate("foo", CACertificateArgs.builder()        
                .caCertificate("""
    -----BEGIN CERTIFICATE-----
    -----END CERTIFICATE-----
                """)
                .caCertificateName("acc-test-1")
                .description("acc-test-1")
                .projectName("default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.alb.CACertificate("foo",
        ca_certificate="""-----BEGIN CERTIFICATE-----
    -----END CERTIFICATE-----
    """,
        ca_certificate_name="acc-test-1",
        description="acc-test-1",
        project_name="default")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.alb.CACertificate("foo", {
        caCertificate: `-----BEGIN CERTIFICATE-----
    -----END CERTIFICATE-----
    `,
        caCertificateName: "acc-test-1",
        description: "acc-test-1",
        projectName: "default",
    });
    
    resources:
      foo:
        type: volcengine:alb:CACertificate
        properties:
          caCertificate: |
            -----BEGIN CERTIFICATE-----
            -----END CERTIFICATE-----        
          caCertificateName: acc-test-1
          description: acc-test-1
          projectName: default
    

    Create CACertificate Resource

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

    Constructor syntax

    new CACertificate(name: string, args: CACertificateArgs, opts?: CustomResourceOptions);
    @overload
    def CACertificate(resource_name: str,
                      args: CACertificateArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def CACertificate(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      ca_certificate: Optional[str] = None,
                      ca_certificate_name: Optional[str] = None,
                      description: Optional[str] = None,
                      project_name: Optional[str] = None)
    func NewCACertificate(ctx *Context, name string, args CACertificateArgs, opts ...ResourceOption) (*CACertificate, error)
    public CACertificate(string name, CACertificateArgs args, CustomResourceOptions? opts = null)
    public CACertificate(String name, CACertificateArgs args)
    public CACertificate(String name, CACertificateArgs args, CustomResourceOptions options)
    
    type: volcengine:alb:CACertificate
    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 CACertificateArgs
    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 CACertificateArgs
    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 CACertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CACertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CACertificateArgs
    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 cacertificateResource = new Volcengine.Alb.CACertificate("cacertificateResource", new()
    {
        CaCertificate = "string",
        CaCertificateName = "string",
        Description = "string",
        ProjectName = "string",
    });
    
    example, err := alb.NewCACertificate(ctx, "cacertificateResource", &alb.CACertificateArgs{
    	CaCertificate:     pulumi.String("string"),
    	CaCertificateName: pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	ProjectName:       pulumi.String("string"),
    })
    
    var cacertificateResource = new CACertificate("cacertificateResource", CACertificateArgs.builder()
        .caCertificate("string")
        .caCertificateName("string")
        .description("string")
        .projectName("string")
        .build());
    
    cacertificate_resource = volcengine.alb.CACertificate("cacertificateResource",
        ca_certificate="string",
        ca_certificate_name="string",
        description="string",
        project_name="string")
    
    const cacertificateResource = new volcengine.alb.CACertificate("cacertificateResource", {
        caCertificate: "string",
        caCertificateName: "string",
        description: "string",
        projectName: "string",
    });
    
    type: volcengine:alb:CACertificate
    properties:
        caCertificate: string
        caCertificateName: string
        description: string
        projectName: string
    

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

    CaCertificate string
    The content of the CA certificate.
    CaCertificateName string
    The name of the CA certificate.
    Description string
    The description of the CA certificate.
    ProjectName string
    The project name of the CA certificate.
    CaCertificate string
    The content of the CA certificate.
    CaCertificateName string
    The name of the CA certificate.
    Description string
    The description of the CA certificate.
    ProjectName string
    The project name of the CA certificate.
    caCertificate String
    The content of the CA certificate.
    caCertificateName String
    The name of the CA certificate.
    description String
    The description of the CA certificate.
    projectName String
    The project name of the CA certificate.
    caCertificate string
    The content of the CA certificate.
    caCertificateName string
    The name of the CA certificate.
    description string
    The description of the CA certificate.
    projectName string
    The project name of the CA certificate.
    ca_certificate str
    The content of the CA certificate.
    ca_certificate_name str
    The name of the CA certificate.
    description str
    The description of the CA certificate.
    project_name str
    The project name of the CA certificate.
    caCertificate String
    The content of the CA certificate.
    caCertificateName String
    The name of the CA certificate.
    description String
    The description of the CA certificate.
    projectName String
    The project name of the CA certificate.

    Outputs

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

    CertificateType string
    The type of the CA Certificate.
    CreateTime string
    The create time of the CA Certificate.
    DomainName string
    The domain name of the CA Certificate.
    ExpiredAt string
    The expire time of the CA 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 CA Certificate.
    CertificateType string
    The type of the CA Certificate.
    CreateTime string
    The create time of the CA Certificate.
    DomainName string
    The domain name of the CA Certificate.
    ExpiredAt string
    The expire time of the CA 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 CA Certificate.
    certificateType String
    The type of the CA Certificate.
    createTime String
    The create time of the CA Certificate.
    domainName String
    The domain name of the CA Certificate.
    expiredAt String
    The expire time of the CA 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 CA Certificate.
    certificateType string
    The type of the CA Certificate.
    createTime string
    The create time of the CA Certificate.
    domainName string
    The domain name of the CA Certificate.
    expiredAt string
    The expire time of the CA 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 CA Certificate.
    certificate_type str
    The type of the CA Certificate.
    create_time str
    The create time of the CA Certificate.
    domain_name str
    The domain name of the CA Certificate.
    expired_at str
    The expire time of the CA 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 CA Certificate.
    certificateType String
    The type of the CA Certificate.
    createTime String
    The create time of the CA Certificate.
    domainName String
    The domain name of the CA Certificate.
    expiredAt String
    The expire time of the CA 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 CA Certificate.

    Look up Existing CACertificate Resource

    Get an existing CACertificate 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?: CACertificateState, opts?: CustomResourceOptions): CACertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ca_certificate: Optional[str] = None,
            ca_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,
            project_name: Optional[str] = None,
            status: Optional[str] = None) -> CACertificate
    func GetCACertificate(ctx *Context, name string, id IDInput, state *CACertificateState, opts ...ResourceOption) (*CACertificate, error)
    public static CACertificate Get(string name, Input<string> id, CACertificateState? state, CustomResourceOptions? opts = null)
    public static CACertificate get(String name, Output<String> id, CACertificateState 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:
    CaCertificate string
    The content of the CA certificate.
    CaCertificateName string
    The name of the CA certificate.
    CertificateType string
    The type of the CA Certificate.
    CreateTime string
    The create time of the CA Certificate.
    Description string
    The description of the CA certificate.
    DomainName string
    The domain name of the CA Certificate.
    ExpiredAt string
    The expire time of the CA Certificate.
    Listeners List<string>
    The ID list of the Listener.
    ProjectName string
    The project name of the CA certificate.
    Status string
    The status of the CA Certificate.
    CaCertificate string
    The content of the CA certificate.
    CaCertificateName string
    The name of the CA certificate.
    CertificateType string
    The type of the CA Certificate.
    CreateTime string
    The create time of the CA Certificate.
    Description string
    The description of the CA certificate.
    DomainName string
    The domain name of the CA Certificate.
    ExpiredAt string
    The expire time of the CA Certificate.
    Listeners []string
    The ID list of the Listener.
    ProjectName string
    The project name of the CA certificate.
    Status string
    The status of the CA Certificate.
    caCertificate String
    The content of the CA certificate.
    caCertificateName String
    The name of the CA certificate.
    certificateType String
    The type of the CA Certificate.
    createTime String
    The create time of the CA Certificate.
    description String
    The description of the CA certificate.
    domainName String
    The domain name of the CA Certificate.
    expiredAt String
    The expire time of the CA Certificate.
    listeners List<String>
    The ID list of the Listener.
    projectName String
    The project name of the CA certificate.
    status String
    The status of the CA Certificate.
    caCertificate string
    The content of the CA certificate.
    caCertificateName string
    The name of the CA certificate.
    certificateType string
    The type of the CA Certificate.
    createTime string
    The create time of the CA Certificate.
    description string
    The description of the CA certificate.
    domainName string
    The domain name of the CA Certificate.
    expiredAt string
    The expire time of the CA Certificate.
    listeners string[]
    The ID list of the Listener.
    projectName string
    The project name of the CA certificate.
    status string
    The status of the CA Certificate.
    ca_certificate str
    The content of the CA certificate.
    ca_certificate_name str
    The name of the CA certificate.
    certificate_type str
    The type of the CA Certificate.
    create_time str
    The create time of the CA Certificate.
    description str
    The description of the CA certificate.
    domain_name str
    The domain name of the CA Certificate.
    expired_at str
    The expire time of the CA Certificate.
    listeners Sequence[str]
    The ID list of the Listener.
    project_name str
    The project name of the CA certificate.
    status str
    The status of the CA Certificate.
    caCertificate String
    The content of the CA certificate.
    caCertificateName String
    The name of the CA certificate.
    certificateType String
    The type of the CA Certificate.
    createTime String
    The create time of the CA Certificate.
    description String
    The description of the CA certificate.
    domainName String
    The domain name of the CA Certificate.
    expiredAt String
    The expire time of the CA Certificate.
    listeners List<String>
    The ID list of the Listener.
    projectName String
    The project name of the CA certificate.
    status String
    The status of the CA Certificate.

    Import

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

     $ pulumi import volcengine:alb/cACertificate:CACertificate default cert-*****
    

    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.25 published on Tuesday, Jul 2, 2024 by Volcengine