aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
47 lines (46 loc) • 1.26 kB
TypeScript
import { Construct } from 'constructs';
import { IPublicKey } from './public-key';
import { IResource, Resource } from '../../core';
/**
* Represents a Key Group
*/
export interface IKeyGroup extends IResource {
/**
* The ID of the key group.
* @attribute
*/
readonly keyGroupId: string;
}
/**
* Properties for creating a Public Key
*/
export interface KeyGroupProps {
/**
* A name to identify the key group.
* @default - generated from the `id`
*/
readonly keyGroupName?: string;
/**
* A comment to describe the key group.
* @default - no comment
*/
readonly comment?: string;
/**
* A list of public keys to add to the key group.
*/
readonly items: IPublicKey[];
}
/**
* A Key Group configuration
*
* @resource AWS::CloudFront::KeyGroup
*/
export declare class KeyGroup extends Resource implements IKeyGroup {
/** Uniquely identifies this class. */
static readonly PROPERTY_INJECTION_ID: string;
/** Imports a Key Group from its id. */
static fromKeyGroupId(scope: Construct, id: string, keyGroupId: string): IKeyGroup;
readonly keyGroupId: string;
constructor(scope: Construct, id: string, props: KeyGroupProps);
private generateName;
}