Skip to content

FunctionMetadata

Source code in docs_src/capo_cloudfront/types/function_metadata.py
class FunctionMetadata(TypedDict, closed=True):
    function_arn: "capo_cloudfront.types.string.string"
    """<p>The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.</p>"""
    stage: NotRequired["capo_cloudfront.types.function_stage.FunctionStage"]
    """<p>The stage that the function is in, either <code>DEVELOPMENT</code> or <code>LIVE</code>.</p> <p>When a function is in the <code>DEVELOPMENT</code> stage, you can test the function with <code>TestFunction</code>, and update it with <code>UpdateFunction</code>.</p> <p>When a function is in the <code>LIVE</code> stage, you can attach the function to a distribution's cache behavior, using the function's ARN.</p>"""
    created_time: NotRequired["capo_cloudfront.types.timestamp.timestamp"]
    """<p>The date and time when the function was created.</p>"""
    last_modified_time: "capo_cloudfront.types.timestamp.timestamp"
    """<p>The date and time when the function was most recently updated.</p>"""

created_time instance-attribute

created_time: NotRequired[timestamp]

The date and time when the function was created.

function_arn instance-attribute

function_arn: string

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

last_modified_time instance-attribute

last_modified_time: timestamp

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

stage instance-attribute

stage: NotRequired[FunctionStage]

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.