UNPKG

1.17 kBTypeScriptView Raw
1import { IResource, Resource } from '@aws-cdk/core';
2import { Construct } from 'constructs';
3import { IPublicKey } from './public-key';
4/**
5 * Represents a Key Group
6 */
7export interface IKeyGroup extends IResource {
8 /**
9 * The ID of the key group.
10 * @attribute
11 */
12 readonly keyGroupId: string;
13}
14/**
15 * Properties for creating a Public Key
16 */
17export interface KeyGroupProps {
18 /**
19 * A name to identify the key group.
20 * @default - generated from the `id`
21 */
22 readonly keyGroupName?: string;
23 /**
24 * A comment to describe the key group.
25 * @default - no comment
26 */
27 readonly comment?: string;
28 /**
29 * A list of public keys to add to the key group.
30 */
31 readonly items: IPublicKey[];
32}
33/**
34 * A Key Group configuration
35 *
36 * @resource AWS::CloudFront::KeyGroup
37 */
38export declare class KeyGroup extends Resource implements IKeyGroup {
39 /** Imports a Key Group from its id. */
40 static fromKeyGroupId(scope: Construct, id: string, keyGroupId: string): IKeyGroup;
41 readonly keyGroupId: string;
42 constructor(scope: Construct, id: string, props: KeyGroupProps);
43 private generateName;
44}