amazonka-synthetics-2.0: Amazon Synthetics SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • 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.

  • 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.

    The environment variables keys and values are not encrypted. Do not store sensitive information in this field.

  • 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.

  • 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.

Instances

Instances details
ToJSON 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 #

Read CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Show CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

NFData CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Methods

rnf :: CanaryRunConfigInput -> () #

Eq CanaryRunConfigInput Source # 
Instance details

Defined in Amazonka.Synthetics.Types.CanaryRunConfigInput

Hashable 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" "amazonka-synthetics-2.0-3I8gICXDswl2F1HDbijRHZ" 'False) (C1 ('MetaCons "CanaryRunConfigInput'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activeTracing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "environmentVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "memoryInMB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "timeoutInSeconds") '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: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: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.

The environment variables keys and values are not encrypted. Do not store sensitive information in this field.

$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.

$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.

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_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.

The environment variables keys and values are not encrypted. Do not store sensitive information in this field.

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.

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.