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
sourceimpl 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.
sourceimpl TestResult
impl TestResult
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TestResult
.
Trait Implementations
sourceimpl Clone for TestResult
impl Clone for TestResult
sourcefn clone(&self) -> TestResult
fn clone(&self) -> TestResult
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more