FunctionAttributes

class aws_cdk.aws_cloudfront.FunctionAttributes(*, function_arn, function_name, function_runtime=None)

Bases: object

Attributes of an existing CloudFront Function to import it.

Parameters:
  • function_arn (str) – The ARN of the function.

  • function_name (str) – The name of the function.

  • function_runtime (Optional[str]) – The Runtime of the function. Default: FunctionRuntime.JS_1_0

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

function_attributes = cloudfront.FunctionAttributes(
    function_arn="functionArn",
    function_name="functionName",

    # the properties below are optional
    function_runtime="functionRuntime"
)

Attributes

function_arn

The ARN of the function.

function_name

The name of the function.

function_runtime

The Runtime of the function.

Default:

FunctionRuntime.JS_1_0