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 CanaryCodeInput = CanaryCodeInput' {}
- newCanaryCodeInput :: Text -> CanaryCodeInput
- canaryCodeInput_s3Key :: Lens' CanaryCodeInput (Maybe Text)
- canaryCodeInput_s3Version :: Lens' CanaryCodeInput (Maybe Text)
- canaryCodeInput_zipFile :: Lens' CanaryCodeInput (Maybe ByteString)
- canaryCodeInput_s3Bucket :: Lens' CanaryCodeInput (Maybe Text)
- canaryCodeInput_handler :: Lens' CanaryCodeInput Text
Documentation
data CanaryCodeInput Source #
Use this structure to input your script code for the canary. This
structure contains the Lambda handler with the location where the canary
should start running the script. If the script is stored in an S3
bucket, the bucket name, key, and version are also included. If the
script was passed into the canary directly, the script code is contained
in the value of Zipfile
.
See: newCanaryCodeInput
smart constructor.
CanaryCodeInput' | |
|
Instances
Create a value of CanaryCodeInput
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:s3Key:CanaryCodeInput'
, canaryCodeInput_s3Key
- The S3 key of your script. For more information, see
Working with Amazon S3 Objects.
$sel:s3Version:CanaryCodeInput'
, canaryCodeInput_s3Version
- The S3 version ID of your script.
$sel:zipFile:CanaryCodeInput'
, canaryCodeInput_zipFile
- If you input your canary script directly into the canary instead of
referring to an S3 location, the value of this parameter is the
base64-encoded contents of the .zip file that contains the script. It
must be smaller than 256 Kb.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:s3Bucket:CanaryCodeInput'
, canaryCodeInput_s3Bucket
- If your canary script is located in S3, specify the bucket name here. Do
not include s3://
as the start of the bucket name.
$sel:handler:CanaryCodeInput'
, canaryCodeInput_handler
- The entry point to use for the source code when running the canary. This
value must end with the string .handler
. The string is limited to 29
characters or fewer.
canaryCodeInput_s3Key :: Lens' CanaryCodeInput (Maybe Text) Source #
The S3 key of your script. For more information, see Working with Amazon S3 Objects.
canaryCodeInput_s3Version :: Lens' CanaryCodeInput (Maybe Text) Source #
The S3 version ID of your script.
canaryCodeInput_zipFile :: Lens' CanaryCodeInput (Maybe ByteString) Source #
If you input your canary script directly into the canary instead of
referring to an S3 location, the value of this parameter is the
base64-encoded contents of the .zip file that contains the script. It
must be smaller than 256 Kb.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
canaryCodeInput_s3Bucket :: Lens' CanaryCodeInput (Maybe Text) Source #
If your canary script is located in S3, specify the bucket name here. Do
not include s3://
as the start of the bucket name.
canaryCodeInput_handler :: Lens' CanaryCodeInput Text Source #
The entry point to use for the source code when running the canary. This
value must end with the string .handler
. The string is limited to 29
characters or fewer.