import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class FunctionConfig { Comment ! : Value < string > ; Runtime ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class FunctionMetadata { FunctionARN ? : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface FunctionProperties { AutoPublish ? : Value < boolean > ; FunctionCode ? : Value < string > ; FunctionConfig ? : FunctionConfig ; FunctionMetadata ? : FunctionMetadata ; Name : Value < string > ; } export default class Function extends ResourceBase < FunctionProperties > { static FunctionConfig = FunctionConfig ; static FunctionMetadata = FunctionMetadata ; constructor ( properties ) { super ( 'AWS::CloudFront::Function' , properties ) ; } }