Show / Hide Table of Contents

Class PublicKey

Example Usage

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

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.CloudFront.PublicKey("example", new Aws.CloudFront.PublicKeyArgs
    {
        Comment = "test public key",
        EncodedKey = File.ReadAllText("public_key.pem"),
    });
}

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

Constructors

View Source

PublicKey(String, PublicKeyArgs, CustomResourceOptions)

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

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

The unique name of the resource

PublicKeyArgs 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

CallerReference

Internal value used by CloudFront to allow future updates to the public key configuration.

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

Comment

An optional comment about the public key.

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

EncodedKey

The encoded public key that you want to add to CloudFront to use with features like field-level encryption.

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

Etag

The current version of the public key. For example: E2QWRUHAPOMQZL.

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

Name

The name for the public key. By default generated by this provider.

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

NamePrefix

The name for the public key. Conflicts with name.

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

Methods

View Source

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

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

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

PublicKeyState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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