Skip to content
v2.274.0

FunctionAttributes Struct ​

Attributes of an existing CloudFront Function to import it.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const functionAttributes: cloudfront.FunctionAttributes = {
  functionArn: 'functionArn',
  functionName: 'functionName',

  // the properties below are optional
  functionRuntime: 'functionRuntime',
};

Properties ​

functionArnstringfunction_arnstrfunctionArnStringFunctionArnstringFunctionArn*stringrequired#
The ARN of the function.
functionNamestringfunction_namestrfunctionNameStringFunctionNamestringFunctionName*stringrequired#
The name of the function.
functionRuntimeoptionalstringfunction_runtimeoptionalstrfunctionRuntimeoptionalStringFunctionRuntimeoptionalstringFunctionRuntimeoptional*string= FunctionRuntime.JS_1_0#
The Runtime of the function.