Class PublicKey
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cloudfront.PublicKey
- All Implemented Interfaces:
IResource,IPublicKey,IPublicKeyRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:34.377Z")
@Stability(Stable)
public class PublicKey
extends Resource
implements IPublicKey
A Public Key Configuration.
Example:
// Create a key group to use with CloudFront signed URLs and signed cookies.
// Create a key group to use with CloudFront signed URLs and signed cookies.
KeyGroup.Builder.create(this, "MyKeyGroup")
.items(List.of(
PublicKey.Builder.create(this, "MyPublicKey")
.encodedKey("...")
.build()))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.IPublicKey
IPublicKey.Jsii$Default, IPublicKey.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPublicKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPublicKey(software.amazon.jsii.JsiiObjectRef objRef) PublicKey(software.constructs.Construct scope, String id, PublicKeyProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IPublicKeyfromPublicKeyId(software.constructs.Construct scope, String id, String publicKeyId) Imports a Public Key from its id.The ID of the key group.A reference to a PublicKey resource.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.cloudfront.IPublicKey
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
PublicKey
protected PublicKey(software.amazon.jsii.JsiiObjectRef objRef) -
PublicKey
protected PublicKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PublicKey
@Stability(Stable) public PublicKey(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PublicKeyProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromPublicKeyId
@Stability(Stable) @NotNull public static IPublicKey fromPublicKeyId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String publicKeyId) Imports a Public Key from its id.- Parameters:
scope- This parameter is required.id- This parameter is required.publicKeyId- This parameter is required.
-
getPublicKeyId
The ID of the key group.- Specified by:
getPublicKeyIdin interfaceIPublicKey
-
getPublicKeyRef
A reference to a PublicKey resource.- Specified by:
getPublicKeyRefin interfaceIPublicKeyRef
-