Skip to content

TestResult

Source code in docs_src/capo_cloudfront/types/test_result.py
class TestResult(TypedDict, closed=True):
    function_summary: NotRequired[
        "capo_cloudfront.types.function_summary.FunctionSummary"
    ]
    """<p>Contains configuration information and metadata about the CloudFront function that was tested.</p>"""
    compute_utilization: NotRequired["capo_cloudfront.types.string.string"]
    """<p>The amount of time that the function took to run as a percentage of the maximum allowed time. For example, a compute utilization of 35 means that the function completed in 35% of the maximum allowed time.</p>"""
    function_execution_logs: NotRequired[
        "capo_cloudfront.types.function_execution_log_list.FunctionExecutionLogList"
    ]
    """<p>Contains the log lines that the function wrote (if any) when running the test.</p>"""
    function_error_message: NotRequired[
        "capo_cloudfront.types.sensitive_string_type.sensitiveStringType"
    ]
    """<p>If the result of testing the function was an error, this field contains the error message.</p>"""
    function_output: NotRequired[
        "capo_cloudfront.types.sensitive_string_type.sensitiveStringType"
    ]
    """<p>The event object returned by the function. For more information about the structure of the event object, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-event-structure.html">Event object structure</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>"""

compute_utilization instance-attribute

compute_utilization: NotRequired[string]

The amount of time that the function took to run as a percentage of the maximum allowed time. For example, a compute utilization of 35 means that the function completed in 35% of the maximum allowed time.

function_error_message instance-attribute

function_error_message: NotRequired[sensitiveStringType]

If the result of testing the function was an error, this field contains the error message.

function_execution_logs instance-attribute

function_execution_logs: NotRequired[FunctionExecutionLogList]

Contains the log lines that the function wrote (if any) when running the test.

function_output instance-attribute

function_output: NotRequired[sensitiveStringType]

The event object returned by the function. For more information about the structure of the event object, see Event object structure in the Amazon CloudFront Developer Guide.

function_summary instance-attribute

function_summary: NotRequired[FunctionSummary]

Contains configuration information and metadata about the CloudFront function that was tested.