ElementalInference / Paginator / ListFunctions
ListFunctions¶
- class ElementalInference.Paginator.ListFunctions¶
paginator = client.get_paginator('list_functions')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
ElementalInference.Client.list_functions().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom 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 setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis 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) –
A token to resume pagination.