Skip to content

CloudFront  >  Structures  >  FunctionMetadata

FunctionMetadata

Structure Class

FunctionMetadata dataclass

Bases: _SerdeShape

Contains metadata about a CloudFront function.

Attributes

created_time class-attribute instance-attribute
created_time: datetime | None = ...

The date and time when the function was created.

function_arn instance-attribute
function_arn: str

The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.

last_modified_time instance-attribute
last_modified_time: datetime

The date and time when the function was most recently updated.

stage class-attribute instance-attribute
stage: str | None = ...

The stage that the function is in, either DEVELOPMENT or LIVE.

When a function is in the DEVELOPMENT stage, you can test the function with TestFunction, and update it with UpdateFunction.

When a function is in the LIVE stage, you can attach the function to a distribution's cache behavior, using the function's ARN.