Class KeyGroup.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.KeyGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KeyGroup>
- Enclosing class:
KeyGroup
@Stability(Stable)
public static final class KeyGroup.Builder
extends Object
implements software.amazon.jsii.Builder<KeyGroup>
A fluent builder for
KeyGroup.-
Method Summary
Modifier and TypeMethodDescriptionbuild()A comment to describe the key group.static KeyGroup.Builderitems(List<? extends IPublicKeyRef> items) A list of public keys to add to the key group.keyGroupName(String keyGroupName) A name to identify the key group.
-
Method Details
-
create
@Stability(Stable) public static KeyGroup.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
KeyGroup.Builder.
-
items
A list of public keys to add to the key group.- Parameters:
items- A list of public keys to add to the key group. This parameter is required.- Returns:
this
-
comment
A comment to describe the key group.Default: - no comment
- Parameters:
comment- A comment to describe the key group. This parameter is required.- Returns:
this
-
keyGroupName
A name to identify the key group.Default: - generated from the `id`
- Parameters:
keyGroupName- A name to identify the key group. This parameter is required.- Returns:
this
-
build
-