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"),
});
}
}
Inherited Members
Namespace: Pulumi.Aws.CloudFront
Assembly: Pulumi.Aws.dll
Syntax
public class PublicKey : CustomResource
Constructors
View SourcePublicKey(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 SourceCallerReference
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> |
Comment
An optional comment about the public key.
Declaration
public Output<string> Comment { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
Etag
The current version of the public key. For example: E2QWRUHAPOMQZL.
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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 SourceGet(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 |