Skip to content

describe_function

Operation

describe_function

describe_function(request: DescribeFunctionInput | DescribeFunctionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DescribeFunctionInputDict]) -> DescribeFunctionOutput

Gets configuration information and metadata about a CloudFront function, but not the function's code. To get a function's code, use GetFunction.

To get configuration information and metadata about a function, you must provide the function's name and stage. To get these values, you can use ListFunctions.

Parameters:

Name Type Description Default
request DescribeFunctionInput | DescribeFunctionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[DescribeFunctionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DescribeFunctionOutput

An instance of DescribeFunctionOutput.

describe_function async

describe_function(request: DescribeFunctionInput | DescribeFunctionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DescribeFunctionInputDict]) -> DescribeFunctionOutput

Gets configuration information and metadata about a CloudFront function, but not the function's code. To get a function's code, use GetFunction.

To get configuration information and metadata about a function, you must provide the function's name and stage. To get these values, you can use ListFunctions.

Parameters:

Name Type Description Default
request DescribeFunctionInput | DescribeFunctionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[DescribeFunctionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DescribeFunctionOutput

An instance of DescribeFunctionOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DescribeFunctionInputDict

Bases: TypedDict

Dictionary form of DescribeFunctionInput.

Attributes

name instance-attribute
name: Required[str]

The name of the function that you are getting information about.

stage instance-attribute
stage: str | None

The function's stage, either DEVELOPMENT or LIVE.

DescribeFunctionInput dataclass

Bases: _SerdeShape

Dataclass for DescribeFunctionInput structure.

Attributes

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

The name of the function that you are getting information about.

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

The function's stage, either DEVELOPMENT or LIVE.

Output

DescribeFunctionOutput dataclass

Bases: _SerdeShape

Dataclass for DescribeFunctionOutput structure.

Attributes

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

The version identifier for the current version of the CloudFront function.

function_summary class-attribute instance-attribute
function_summary: FunctionSummary | None = ...

Contains configuration information and metadata about a CloudFront function.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.