AwsCloudfrontFunctionArgs

interface AwsCloudfrontFunctionArgs extends Omit<aws.cloudfront.FunctionArgs, 'code' | 'name' | 'publish' | 'runtime' | 'tags'> { code: AwsCloudfrontFunctionCodeTemplate; comment?: Input<string | undefined>; keyValueStoreAssociations?: Input<Input<string>[] | undefined>; name: string; runtime?: Input<'cloudfront-js-2.0'>; tags?: TagMap; }

CloudFront Function capability inputs.

Example

CODE
`const functionArgs: AwsCloudfrontFunctionArgs = { name: 'rewriteRequest', code: { path: './viewer-request.js' } };`

Hierarchy

  • FunctionArgs, "code" | "name" | "publish" | "runtime" | "tags">
  • AwsCloudfrontFunctionArgs

Properties

code: AwsCloudfrontFunctionCodeTemplate

JavaScript template and optional {{ variable }} substitutions.

comment: Input<string | undefined>

Inherited from comment

Comment.

keyValueStoreAssociations: Input<Input<string>[] | undefined>

Inherited from keyValueStoreAssociations

List of aws.cloudfront.KeyValueStore ARNs to be associated to the function. AWS limits associations to one key value store per function.

name: string

Camel-case naming purpose.

runtime: Input<'cloudfront-js-2.0'>

Default: `cloudfront-js-2.0`

tags: TagMap

Additional tags.