Show / Hide Table of Contents

Class PublicKey

A Public Key Configuration.

Inheritance
System.Object
Construct
Resource
PublicKey
Implements
IPublicKey
IResource
IConstruct
Constructs.IConstruct
IDependable
Inherited Members
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(String, IArnComponents)
Resource.GetResourceNameAttribute(String)
Resource.Env
Resource.PhysicalName
Resource.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class PublicKey : Resource, IPublicKey, IResource, IConstruct, IDependable
Syntax (vb)
Public Class PublicKey
    Inherits Resource
    Implements IPublicKey, IResource, IConstruct, IDependable
Remarks

Resource: AWS::CloudFront::PublicKey

ExampleMetadata: infused

Examples
// Validating signed URLs or signed cookies with Trusted Key Groups

// public key in PEM format
string publicKey;

var pubKey = new PublicKey(this, "MyPubKey", new PublicKeyProps {
    EncodedKey = publicKey
});

var keyGroup = new KeyGroup(this, "MyKeyGroup", new KeyGroupProps {
    Items = new [] { pubKey }
});

new Distribution(this, "Dist", new DistributionProps {
    DefaultBehavior = new BehaviorOptions {
        Origin = new HttpOrigin("www.example.com"),
        TrustedKeyGroups = new [] { keyGroup }
    }
});

Synopsis

Constructors

PublicKey(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

PublicKey(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

PublicKey(Construct, String, IPublicKeyProps)

Properties

PublicKeyId

The ID of the key group.

Methods

FromPublicKeyId(Construct, String, String)

Imports a Public Key from its id.

Constructors

PublicKey(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected PublicKey(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

PublicKey(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected PublicKey(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

PublicKey(Construct, String, IPublicKeyProps)

public PublicKey(Construct scope, string id, IPublicKeyProps props)
Parameters
scope Constructs.Construct
id System.String
props IPublicKeyProps

Properties

PublicKeyId

The ID of the key group.

public virtual string PublicKeyId { get; }
Property Value

System.String

Methods

FromPublicKeyId(Construct, String, String)

Imports a Public Key from its id.

public static IPublicKey FromPublicKeyId(Construct scope, string id, string publicKeyId)
Parameters
scope Constructs.Construct
id System.String
publicKeyId System.String
Returns

IPublicKey

Implements

IPublicKey
IResource
IConstruct
Constructs.IConstruct
IDependable
Back to top Generated by DocFX