Show / Hide Table of Contents

Class RegionSslCertificate

A RegionSslCertificate resource, used for HTTPS load balancing. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user.

To get more information about RegionSslCertificate, see:

  • API documentation
  • How-to Guides
  • Official Documentation

Warning: All arguments including certificate and private_key will be stored in the raw state as plain-text. Read more about secrets in state.

Example Usage - Region Ssl Certificate Basic

using System.IO;
using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var @default = new Gcp.Compute.RegionSslCertificate("default", new Gcp.Compute.RegionSslCertificateArgs
    {
        Region = "us-central1",
        NamePrefix = "my-certificate-",
        Description = "a description",
        PrivateKey = File.ReadAllText("path/to/private.key"),
        Certificate = File.ReadAllText("path/to/certificate.crt"),
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RegionSslCertificate
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.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class RegionSslCertificate : CustomResource

Constructors

View Source

RegionSslCertificate(String, RegionSslCertificateArgs, CustomResourceOptions)

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

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

The unique name of the resource

RegionSslCertificateArgs 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

Certificate

The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.

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

CertificateId

The unique identifier for the resource.

Declaration
public Output<int> CertificateId { get; }
Property Value
Type Description
Output<System.Int32>
View Source

CreationTimestamp

Creation timestamp in RFC3339 text format.

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

Description

An optional description of this resource.

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

Name

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

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

NamePrefix

Creates a unique name beginning with the specified prefix. Conflicts with name.

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

PrivateKey

The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.

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

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

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

Region

The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.

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

SelfLink

The URI of the created resource.

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

Methods

View Source

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

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

Declaration
public static RegionSslCertificate Get(string name, Input<string> id, RegionSslCertificateState 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.

RegionSslCertificateState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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