Skip to content

TestFunctionRequest

Source code in docs_src/capo_cloudfront/types/test_function_request.py
class TestFunctionRequest(TypedDict, closed=True):
    name: "capo_cloudfront.types.function_name.FunctionName"
    """<p>The name of the function that you are testing.</p>"""
    if_match: "capo_cloudfront.types.string.string"
    """<p>The current version (<code>ETag</code> value) of the function that you are testing, which you can get using <code>DescribeFunction</code>.</p>"""
    stage: NotRequired["capo_cloudfront.types.function_stage.FunctionStage"]
    """<p>The stage of the function that you are testing, either <code>DEVELOPMENT</code> or <code>LIVE</code>.</p>"""
    event_object: "capo_cloudfront.types.function_event_object.FunctionEventObject"
    """<p>The event object to test the function with. For more information about the structure of the event object, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function">Testing functions</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>"""

event_object instance-attribute

event_object: FunctionEventObject

The event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide.

if_match instance-attribute

if_match: string

The current version (ETag value) of the function that you are testing, which you can get using DescribeFunction.

name instance-attribute

The name of the function that you are testing.

stage instance-attribute

stage: NotRequired[FunctionStage]

The stage of the function that you are testing, either DEVELOPMENT or LIVE.