TestResult¶
Structure Class¶
TestResult
dataclass
¶
Bases: _SerdeShape
Contains the result of testing a CloudFront function with
TestFunction.
Attributes¶
compute_utilization
class-attribute
instance-attribute
¶
compute_utilization: str | None = ...
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
class-attribute
instance-attribute
¶
function_error_message: str | None = ...
If the result of testing the function was an error, this field contains the error message.
function_execution_logs
class-attribute
instance-attribute
¶
Contains the log lines that the function wrote (if any) when running the test.
function_output
class-attribute
instance-attribute
¶
function_output: str | None = ...
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
class-attribute
instance-attribute
¶
function_summary: FunctionSummary | None = ...
Contains configuration information and metadata about the CloudFront function that was tested.