/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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 Also:
AWS
* API Reference
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
If your canary script is located in S3, specify the bucket name here. Do not
* include s3://
as the start of the bucket name.
The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline const Aws::String& GetS3Key() const{ return m_s3Key; } /** *The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; } /** *The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; } /** *The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); } /** *The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); } /** *The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline CanaryCodeInput& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;} /** *The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline CanaryCodeInput& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;} /** *The S3 key of your script. For more information, see Working * with Amazon S3 Objects.
*/ inline CanaryCodeInput& WithS3Key(const char* value) { SetS3Key(value); return *this;} /** *The S3 version ID of your script.
*/ inline const Aws::String& GetS3Version() const{ return m_s3Version; } /** *The S3 version ID of your script.
*/ inline bool S3VersionHasBeenSet() const { return m_s3VersionHasBeenSet; } /** *The S3 version ID of your script.
*/ inline void SetS3Version(const Aws::String& value) { m_s3VersionHasBeenSet = true; m_s3Version = value; } /** *The S3 version ID of your script.
*/ inline void SetS3Version(Aws::String&& value) { m_s3VersionHasBeenSet = true; m_s3Version = std::move(value); } /** *The S3 version ID of your script.
*/ inline void SetS3Version(const char* value) { m_s3VersionHasBeenSet = true; m_s3Version.assign(value); } /** *The S3 version ID of your script.
*/ inline CanaryCodeInput& WithS3Version(const Aws::String& value) { SetS3Version(value); return *this;} /** *The S3 version ID of your script.
*/ inline CanaryCodeInput& WithS3Version(Aws::String&& value) { SetS3Version(std::move(value)); return *this;} /** *The S3 version ID of your script.
*/ inline CanaryCodeInput& WithS3Version(const char* value) { SetS3Version(value); return *this;} /** *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 225 Kb.
*For large canary scripts, we recommend that you use an S3 location instead of * inputting it directly with this parameter.
*/ inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_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 225 Kb.
*For large canary scripts, we recommend that you use an S3 location instead of * inputting it directly with this parameter.
*/ inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; } /** *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 225 Kb.
*For large canary scripts, we recommend that you use an S3 location instead of * inputting it directly with this parameter.
*/ inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; } /** *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 225 Kb.
*For large canary scripts, we recommend that you use an S3 location instead of * inputting it directly with this parameter.
*/ inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); } /** *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 225 Kb.
*For large canary scripts, we recommend that you use an S3 location instead of * inputting it directly with this parameter.
*/ inline CanaryCodeInput& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;} /** *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 225 Kb.
*For large canary scripts, we recommend that you use an S3 location instead of * inputting it directly with this parameter.
*/ inline CanaryCodeInput& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(std::move(value)); return *this;} /** *The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.
The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.
The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.
The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.
The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.
The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.
The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.
The entry point to use for the source code when running the canary. For
* canaries that use the syn-python-selenium-1.0
runtime or a
* syn-nodejs.puppeteer
runtime earlier than
* syn-nodejs.puppeteer-3.4
, the handler must be specified as
* fileName.handler
. For syn-python-selenium-1.1
,
* syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be
* specified as fileName.functionName
, or you can
* specify a folder where canary scripts reside as
* folder/fileName.functionName
.