Show / Hide Table of Contents

Class ServerCertificate

Provides an IAM Server Certificate resource to upload Server Certificates. Certs uploaded to IAM can easily work with other AWS services such as:

  • AWS Elastic Beanstalk
  • Elastic Load Balancing
  • CloudFront
  • AWS OpsWorks

For information about server certificates in IAM, see [Managing Server Certificates][2] in AWS Documentation.

Note: All arguments including the private key will be stored in the raw state as plain-text. Read more about sensitive data in state.

Example Usage

using System.IO;
using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var testCert = new Aws.Iam.ServerCertificate("testCert", new Aws.Iam.ServerCertificateArgs
    {
        CertificateBody = File.ReadAllText("self-ca-cert.pem"),
        PrivateKey = File.ReadAllText("test-key.pem"),
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ServerCertificate
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.Aws.Iam
Assembly: Pulumi.Aws.dll
Syntax
public class ServerCertificate : CustomResource

Constructors

View Source

ServerCertificate(String, ServerCertificateArgs, CustomResourceOptions)

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

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

The unique name of the resource

ServerCertificateArgs 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

Arn

The Amazon Resource Name (ARN) specifying the server certificate.

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

CertificateBody

The contents of the public key certificate in PEM-encoded format.

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

CertificateChain

The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.

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

Name

The name of the Server Certificate. Do not include the path in this value. If omitted, this provider will assign a random, unique name.

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

Path

The IAM path for the server certificate. If it is not included, it defaults to a slash (/). If this certificate is for use with AWS CloudFront, the path must be in format /cloudfront/your_path_here. See IAM Identifiers for more details on IAM Paths.

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

PrivateKey

The contents of the private key in PEM-encoded format.

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

Methods

View Source

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

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

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

ServerCertificateState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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