CaCertificate

A Load Balancer CA Certificate is used by the listener of the protocol https.

For information about slb and how to use it, see What is Server Load Balancer.

For information about CA Certificate and how to use it, see Configure CA Certificate.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        // create a CA certificate
        var foo = new AliCloud.Slb.CaCertificate("foo", new AliCloud.Slb.CaCertificateArgs
        {
            CaCertificate = @"-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgIJAJnI******90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----
",
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

# create a CA certificate
foo = alicloud.slb.CaCertificate("foo", ca_certificate="""-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgIJAJnI******90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----
""")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// create a CA certificate
const foo = new alicloud.slb.CaCertificate("foo", {
    caCertificate: `-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgIJAJnI******90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----`,
});

Create a CaCertificate Resource

def CaCertificate(resource_name, opts=None, ca_certificate=None, name=None, resource_group_id=None, tags=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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.

CaCertificate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The CaCertificate resource accepts the following input properties:

Certificate string

the content of the CA certificate.

Name string

Name of the CA Certificate.

ResourceGroupId string

The Id of resource group which the slb_ca certificate belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

CaCertificate string

the content of the CA certificate.

Name string

Name of the CA Certificate.

ResourceGroupId string

The Id of resource group which the slb_ca certificate belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

caCertificate string

the content of the CA certificate.

name string

Name of the CA Certificate.

resourceGroupId string

The Id of resource group which the slb_ca certificate belongs.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

ca_certificate str

the content of the CA certificate.

name str

Name of the CA Certificate.

resource_group_id str

The Id of resource group which the slb_ca certificate belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the CaCertificate 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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, ca_certificate=None, name=None, resource_group_id=None, tags=None, __props__=None);
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)
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.

The following state arguments are supported:

Certificate string

the content of the CA certificate.

Name string

Name of the CA Certificate.

ResourceGroupId string

The Id of resource group which the slb_ca certificate belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

CaCertificate string

the content of the CA certificate.

Name string

Name of the CA Certificate.

ResourceGroupId string

The Id of resource group which the slb_ca certificate belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

caCertificate string

the content of the CA certificate.

name string

Name of the CA Certificate.

resourceGroupId string

The Id of resource group which the slb_ca certificate belongs.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

ca_certificate str

the content of the CA certificate.

name str

Name of the CA Certificate.

resource_group_id str

The Id of resource group which the slb_ca certificate belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.