import { ResourceBase , ResourceTag } from '../resource' ; import { Value , List } from '../dataTypes' ; export class StageKey { RestApiId ? : Value < string > ; StageName ? : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface ApiKeyProperties { CustomerId ? : Value < string > ; Description ? : Value < string > ; Enabled ? : Value < boolean > ; GenerateDistinctId ? : Value < boolean > ; Name ? : Value < string > ; StageKeys ? : List < StageKey > ; Tags ? : List < ResourceTag > ; Value ? : Value < string > ; } export default class ApiKey extends ResourceBase < ApiKeyProperties > { static StageKey = StageKey ; constructor ( properties ? ) { super ( 'AWS::ApiGateway::ApiKey' , properties || { } ) ; } }