Class PublicKey.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.PublicKey.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublicKey>
- Enclosing class:
PublicKey
@Stability(Stable)
public static final class PublicKey.Builder
extends Object
implements software.amazon.jsii.Builder<PublicKey>
A fluent builder for
PublicKey.-
Method Summary
Modifier and TypeMethodDescriptionbuild()A comment to describe the public key.static PublicKey.BuilderencodedKey(String encodedKey) The public key that you can use with signed URLs and signed cookies, or with field-level encryption.publicKeyName(String publicKeyName) A name to identify the public key.
-
Method Details
-
create
@Stability(Stable) public static PublicKey.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
PublicKey.Builder.
-
encodedKey
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.The
encodedKeyparameter must include-----BEGIN PUBLIC KEY-----and-----END PUBLIC KEY-----lines.- Parameters:
encodedKey- The public key that you can use with signed URLs and signed cookies, or with field-level encryption. This parameter is required.- Returns:
this- See Also:
-
comment
A comment to describe the public key.Default: - no comment
- Parameters:
comment- A comment to describe the public key. This parameter is required.- Returns:
this
-
publicKeyName
A name to identify the public key.Default: - generated from the `id`
- Parameters:
publicKeyName- A name to identify the public key. This parameter is required.- Returns:
this
-
build
-