Skip to main content

CloudFrontFunctionSchema

The CloudFrontFunctionSchema class is the schema for the CloudFrontFunction resource, which represents one CloudFront Function: JavaScript a distribution runs at the edge on a viewer request or response. Terraform provisions it, published, as aws_cloudfront_function.

@group

Resources/CloudFrontFunction

@overrideProperty

parents - This resource has no parents. Each distribution running it is its child.

@overrideProperty

resourceId - The resource id is of format cloudfront-function-<name>.

Hierarchy

  • BaseResourceSchema
    • CloudFrontFunctionSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { awsAccountId: string; code: string; name: string }

Input properties.

  • properties.awsAccountId - The AWS account of the function.
  • properties.code - The function's JavaScript, on the cloudfront-js-2.0 runtime.
  • properties.name - The name of the function, unique in its account.

Type declaration

  • awsAccountId: string
  • code: string
  • name: string

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { Arn?: string }

Saved response.

  • response.Arn - The ARN of the function's live stage.

Type declaration

  • optionalArn?: string

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string