Skip to content

FunctionConfig

Source code in docs_src/capo_elementalinference/types/function_config.py
class FunctionConfig(TypedDict, closed=True):
    function_arn: "capo_elementalinference.types.function_arn.FunctionArn"
    """<p>The ARN of the function to run. The function must exist in the same account and the same Region as the feed. </p>"""
    trigger: "capo_elementalinference.types.trigger.Trigger"
    """<p>Determines when the function runs.</p>"""
    frame_settings: NotRequired[
        "capo_elementalinference.types.frame_settings.FrameSettings"
    ]
    """<p>The frames to send on each run: how many, which ones, and at what size. Applies to a function that references media.frames. If you omit this structure, Elemental Inference sends the first frame of the window, at its source size. </p>"""
    subtitling_settings: NotRequired[
        "capo_elementalinference.types.subtitling_settings.SubtitlingSettings"
    ]
    """<p>The smart subtitles output on this feed to read the transcript from. Required for a function that references media.transcript. </p>"""
    contextual_metadata_settings: NotRequired[
        "capo_elementalinference.types.contextual_metadata_settings.ContextualMetadataSettings"
    ]
    """<p>The contextual metadata output on this feed to read scenes and classifications from. Required for a perScene trigger, and for a function that references media.contextual on a perShot trigger. </p>"""
    clipping_settings: NotRequired[
        "capo_elementalinference.types.clipping_settings.ClippingSettings"
    ]
    """<p>The event clipping output on this feed to read clips from. Required for a perClip trigger, and for a function that references media.clip. </p>"""

clipping_settings instance-attribute

clipping_settings: NotRequired[ClippingSettings]

The event clipping output on this feed to read clips from. Required for a perClip trigger, and for a function that references media.clip.

contextual_metadata_settings instance-attribute

contextual_metadata_settings: NotRequired[ContextualMetadataSettings]

The contextual metadata output on this feed to read scenes and classifications from. Required for a perScene trigger, and for a function that references media.contextual on a perShot trigger.

frame_settings instance-attribute

frame_settings: NotRequired[FrameSettings]

The frames to send on each run: how many, which ones, and at what size. Applies to a function that references media.frames. If you omit this structure, Elemental Inference sends the first frame of the window, at its source size.

function_arn instance-attribute

function_arn: FunctionArn

The ARN of the function to run. The function must exist in the same account and the same Region as the feed.

subtitling_settings instance-attribute

subtitling_settings: NotRequired[SubtitlingSettings]

The smart subtitles output on this feed to read the transcript from. Required for a function that references media.transcript.

trigger instance-attribute

trigger: Trigger

Determines when the function runs.