ElementalInference / Client / list_functions

list_functions

ElementalInference.Client.list_functions(**kwargs)

Lists the functions in this account, in this Region. Each entry is a summary. To get the expressions of a function, use GetFunction.

See also: AWS API Documentation

Request Syntax

response = client.list_functions(
    maxResults=123,
    nextToken='string'
)
Parameters:
  • maxResults (integer) – The maximum number of functions to return in one response. Valid range: 1 to 100. The default is 100.

  • nextToken (string) – The token that identifies the page of results to return. Use the nextToken value from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'functions': [
        {
            'arn': 'string',
            'id': 'string',
            'name': 'string',
            'description': 'string',
            'status': 'CREATING'|'AVAILABLE'|'REFERENCED'|'DELETING'|'DELETED',
            'target': {
                'bedrock': {
                    'api': 'INVOKE_MODEL',
                    'model': 'string'
                },
                'passthrough': {}
            },
            'contextTypes': [
                'FRAMES'|'SUBTITLES'|'CONTEXTUAL_METADATA'|'CLIP_METADATA',
            ]
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • functions (list) –

      An array of function summaries.

      • (dict) –

        Contains identifying and configuration details for a function, including its name, target, status, and derived media context.

        • arn (string) –

          The ARN of the function.

        • id (string) –

          The ID of the function.

        • name (string) –

          The name of the function.

        • description (string) –

          The description of the function.

        • status (string) –

          The status of the function.

        • target (dict) –

          The destination for the request that the function builds.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: bedrock, passthrough. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          
          • bedrock (dict) –

            Send the request to an Amazon Bedrock model.

            • api (string) –

              The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.

            • model (string) –

              The model to invoke. Specify one of the following:

              • A model ID.

              • An inference profile ID.

              • The ARN of a custom model.

              • The ARN of a provisioned model.

              Elemental Inference invokes the model in the Region of the feed. To use a model in other Regions, specify a cross-Region inference profile ID. A custom or provisioned model must be in the Region of the feed.

              The request expression must produce a request body that this model accepts, and the model must accept the kind of media that the request expression references. For example, a text-only model can’t accept a request that references media.frames.

          • passthrough (dict) –

            Send the request nowhere. Use this target to reshape the metadata that Elemental Inference already produces, with no model invocation and no model charges.

        • contextTypes (list) –

          The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can’t set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.

          • (string) –

            One kind of media context that a function reads. Elemental Inference derives this value from the media paths that the request expression references:

            • FRAMES – Derived from media.frames.

            • SUBTITLES – Derived from media.transcript.

            • CONTEXTUAL_METADATA – Derived from media.contextual.

            • CLIP_METADATA – Derived from media.clip.

            A request expression can reference at most one of SUBTITLES, CONTEXTUAL_METADATA, and CLIP_METADATA, in addition to FRAMES.

    • nextToken (string) –

      The token to use in a subsequent request to get the next page of results. This field is absent when there are no more results.

Exceptions