Show / Hide Table of Contents

Class Certificate

Provides a CAS Certificate resource.

NOTE: The Certificate name which you want to add must be already registered and had not added by another account. Every Certificate name can only exist in a unique group.

NOTE: The Cas Certificate region only support cn-hangzhou, ap-south-1, me-east-1, eu-central-1, ap-northeast-1, ap-southeast-2.

NOTE: Available in 1.35.0+ .

Example Usage

using System.IO;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    // Add a new Certificate.
    var cert = new AliCloud.Cas.Certificate("cert", new AliCloud.Cas.CertificateArgs
    {
        Cert = File.ReadAllText($"{path.Module}/test.crt"),
        Key = File.ReadAllText($"{path.Module}/test.key"),
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Certificate
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Cas
Assembly: Pulumi.AliCloud.dll
Syntax
public class Certificate : CustomResource

Constructors

View Source

Certificate(String, CertificateArgs, CustomResourceOptions)

Create a Certificate resource with the given unique name, arguments, and options.

Declaration
public Certificate(string name, CertificateArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

CertificateArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Cert

Cert of the Certificate in which the Certificate will add.

Declaration
public Output<string> Cert { get; }
Property Value
Type Description
Output<System.String>
View Source

Key

Key of the Certificate in which the Certificate will add.

Declaration
public Output<string> Key { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, CertificateState, CustomResourceOptions)

Get an existing Certificate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Certificate Get(string name, Input<string> id, CertificateState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

CertificateState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Certificate
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.