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 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

      @Stability(Stable) public KeyGroup.Builder items(List<? extends IPublicKey> 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

      @Stability(Stable) public KeyGroup.Builder comment(String 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

      @Stability(Stable) public KeyGroup.Builder keyGroupName(String 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

      @Stability(Stable) public KeyGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<KeyGroup>
      Returns:
      a newly built instance of KeyGroup.