Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data TestResult = TestResult' {}
- newTestResult :: TestResult
- testResult_computeUtilization :: Lens' TestResult (Maybe Text)
- testResult_functionExecutionLogs :: Lens' TestResult (Maybe [Text])
- testResult_functionOutput :: Lens' TestResult (Maybe Text)
- testResult_functionSummary :: Lens' TestResult (Maybe FunctionSummary)
- testResult_functionErrorMessage :: Lens' TestResult (Maybe Text)
Documentation
data TestResult Source #
Contains the result of testing a CloudFront function with
TestFunction
.
See: newTestResult
smart constructor.
TestResult' | |
|
Instances
newTestResult :: TestResult Source #
Create a value of TestResult
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:computeUtilization:TestResult'
, testResult_computeUtilization
- 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.
$sel:functionExecutionLogs:TestResult'
, testResult_functionExecutionLogs
- Contains the log lines that the function wrote (if any) when running the
test.
$sel:functionOutput:TestResult'
, testResult_functionOutput
- 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.
$sel:functionSummary:TestResult'
, testResult_functionSummary
- Contains configuration information and metadata about the CloudFront
function that was tested.
$sel:functionErrorMessage:TestResult'
, testResult_functionErrorMessage
- If the result of testing the function was an error, this field contains
the error message.
testResult_computeUtilization :: Lens' TestResult (Maybe Text) Source #
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.
testResult_functionExecutionLogs :: Lens' TestResult (Maybe [Text]) Source #
Contains the log lines that the function wrote (if any) when running the test.
testResult_functionOutput :: Lens' TestResult (Maybe Text) Source #
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.
testResult_functionSummary :: Lens' TestResult (Maybe FunctionSummary) Source #
Contains configuration information and metadata about the CloudFront function that was tested.
testResult_functionErrorMessage :: Lens' TestResult (Maybe Text) Source #
If the result of testing the function was an error, this field contains the error message.