# FunctionAttributes

Attributes of an existing CloudFront Function to import it.

- Source: [`aws-cloudfront/lib/function.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudfront/lib/function.ts#L96)
- Type last changed: v2.118.0 · 3 Jan 2024

## 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

- `functionArn`: string (required) — The ARN of the function.

- `functionName`: string (required) — The name of the function.

- `functionRuntime`: string = FunctionRuntime.JS_1_0 — The Runtime of the function.
