Class CfnPublicKey

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.598Z") @Stability(Stable) public class CfnPublicKey extends CfnResource implements IInspectable
A CloudFormation AWS::CloudFront::PublicKey.

A public key that you can use with signed URLs and signed cookies , or with field-level encryption .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cloudfront.*;
 CfnPublicKey cfnPublicKey = CfnPublicKey.Builder.create(this, "MyCfnPublicKey")
         .publicKeyConfig(PublicKeyConfigProperty.builder()
                 .callerReference("callerReference")
                 .encodedKey("encodedKey")
                 .name("name")
                 // the properties below are optional
                 .comment("comment")
                 .build())
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnPublicKey

      protected CfnPublicKey(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnPublicKey

      protected CfnPublicKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnPublicKey

      @Stability(Stable) public CfnPublicKey(@NotNull Construct scope, @NotNull String id, @NotNull CfnPublicKeyProps props)
      Create a new AWS::CloudFront::PublicKey.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details