libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudFront.Types.TestResult

Description

 
Synopsis

Documentation

data TestResult Source #

Contains the result of testing a CloudFront function with TestFunction.

See: newTestResult smart constructor.

Constructors

TestResult' 

Fields

Instances

Instances details
Eq TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

Read TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

Show TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

Generic TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

Associated Types

type Rep TestResult :: Type -> Type #

NFData TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

Methods

rnf :: TestResult -> () #

Hashable TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

FromXML TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

type Rep TestResult Source # 
Instance details

Defined in Amazonka.CloudFront.Types.TestResult

type Rep TestResult = D1 ('MetaData "TestResult" "Amazonka.CloudFront.Types.TestResult" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "TestResult'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "computeUtilization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "functionExecutionLogs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "functionOutput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "functionSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionSummary)) :*: S1 ('MetaSel ('Just "functionErrorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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.