AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

KeyGroup

A Key Group configuration.

Import

import { KeyGroup } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.KeyGroup

Properties

Configuration passed to the constructor as KeyGroupProps.

itemsRequired
IPublicKeyRef[]

A list of public keys to add to the key group.

commentOptional
string

A comment to describe the key group.

Default: - no comment

keyGroupNameOptional
string

A name to identify the key group.

Default: - generated from the `id`

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic