Struct aws_sdk_cloudfront::model::TestResult
source · #[non_exhaustive]pub struct TestResult { /* private fields */ }
Expand description
Contains the result of testing a CloudFront function with TestFunction
.
Implementations§
source§impl TestResult
impl TestResult
sourcepub fn function_summary(&self) -> Option<&FunctionSummary>
pub fn function_summary(&self) -> Option<&FunctionSummary>
Contains configuration information and metadata about the CloudFront function that was tested.
sourcepub fn compute_utilization(&self) -> Option<&str>
pub fn compute_utilization(&self) -> Option<&str>
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.
sourcepub fn function_execution_logs(&self) -> Option<&[String]>
pub fn function_execution_logs(&self) -> Option<&[String]>
Contains the log lines that the function wrote (if any) when running the test.
sourcepub fn function_error_message(&self) -> Option<&str>
pub fn function_error_message(&self) -> Option<&str>
If the result of testing the function was an error, this field contains the error message.
sourcepub fn function_output(&self) -> Option<&str>
pub fn function_output(&self) -> Option<&str>
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.
source§impl TestResult
impl TestResult
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TestResult
.
Trait Implementations§
source§impl Clone for TestResult
impl Clone for TestResult
source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestResult
impl Debug for TestResult
source§impl PartialEq<TestResult> for TestResult
impl PartialEq<TestResult> for TestResult
source§fn eq(&self, other: &TestResult) -> bool
fn eq(&self, other: &TestResult) -> bool
self
and other
values to be equal, and is used
by ==
.