libZSservicesZSamazonka-syntheticsZSamazonka-synthetics
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.Synthetics.Types.CanaryRunConfigInput

Description

 
Synopsis

Documentation

data CanaryRunConfigInput Source #

A structure that contains input information for a canary run.

See: newCanaryRunConfigInput smart constructor.

Constructors

CanaryRunConfigInput' 

Fields

  • timeoutInSeconds :: Maybe Natural

    How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.

    If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.

  • environmentVariables :: Maybe (HashMap Text Text)

    Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:

    { "key1" : "value1", "key2" : "value2", ...}

    Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.

  • activeTracing :: Maybe Bool

    Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.

    You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime.

  • memoryInMB :: Maybe Natural

    The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.

Instances

Instances details
Eq CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Read CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Show CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Generic CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Associated Types

type Rep CanaryRunConfigInput :: Type -> Type #

NFData CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Methods

rnf :: CanaryRunConfigInput -> () #

Hashable CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

ToJSON CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

type Rep CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

type Rep CanaryRunConfigInput = D1 ('MetaData "CanaryRunConfigInput" "Amazonka.Synthetics.Types.CanaryRunConfigInput" "libZSservicesZSamazonka-syntheticsZSamazonka-synthetics" 'False) (C1 ('MetaCons "CanaryRunConfigInput'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "timeoutInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "environmentVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "activeTracing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "memoryInMB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))

newCanaryRunConfigInput :: CanaryRunConfigInput Source #

Create a value of CanaryRunConfigInput 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:timeoutInSeconds:CanaryRunConfigInput', canaryRunConfigInput_timeoutInSeconds - How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.

If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.

$sel:environmentVariables:CanaryRunConfigInput', canaryRunConfigInput_environmentVariables - Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:

{ "key1" : "value1", "key2" : "value2", ...}

Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.

$sel:activeTracing:CanaryRunConfigInput', canaryRunConfigInput_activeTracing - Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.

You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime.

$sel:memoryInMB:CanaryRunConfigInput', canaryRunConfigInput_memoryInMB - The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.

canaryRunConfigInput_timeoutInSeconds :: Lens' CanaryRunConfigInput (Maybe Natural) Source #

How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.

If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.

canaryRunConfigInput_environmentVariables :: Lens' CanaryRunConfigInput (Maybe (HashMap Text Text)) Source #

Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:

{ "key1" : "value1", "key2" : "value2", ...}

Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.

canaryRunConfigInput_activeTracing :: Lens' CanaryRunConfigInput (Maybe Bool) Source #

Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.

You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime.

canaryRunConfigInput_memoryInMB :: Lens' CanaryRunConfigInput (Maybe Natural) Source #

The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.