/**
* 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 full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* s3:// as the start of the bucket name.
If your canary script is located in S3, specify the full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* s3:// as the start of the bucket name.
If your canary script is located in S3, specify the full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* s3:// as the start of the bucket name.
If your canary script is located in S3, specify the full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* s3:// as the start of the bucket name.
If your canary script is located in S3, specify the full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* s3:// as the start of the bucket name.
If your canary script is located in S3, specify the full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* s3:// as the start of the bucket name.
If your canary script is located in S3, specify the full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* s3:// as the start of the bucket name.
If your canary script is located in S3, specify the full bucket name here.
* The bucket must already exist. Specify the full bucket name, including
* 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 .zip file that contains * the script. It can be up to 5 MB.
*/ 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 .zip file that contains * the script. It can be up to 5 MB.
*/ 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 .zip file that contains * the script. It can be up to 5 MB.
*/ 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 .zip file that contains * the script. It can be up to 5 MB.
*/ 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 .zip file that contains * the script. It can be up to 5 MB.
*/ 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 .zip file that contains * the script. It can be up to 5 MB.
*/ 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. This
* value must end with the string .handler.
The entry point to use for the source code when running the canary. This
* value must end with the string .handler.
The entry point to use for the source code when running the canary. This
* value must end with the string .handler.
The entry point to use for the source code when running the canary. This
* value must end with the string .handler.
The entry point to use for the source code when running the canary. This
* value must end with the string .handler.
The entry point to use for the source code when running the canary. This
* value must end with the string .handler.
The entry point to use for the source code when running the canary. This
* value must end with the string .handler.
The entry point to use for the source code when running the canary. This
* value must end with the string .handler.