/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the synthetics-2017-10-11.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Synthetics.Model { /// /// 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. /// public partial class CanaryCodeInput { private string _handler; private string _s3Bucket; private string _s3Key; private string _s3Version; private MemoryStream _zipFile; /// /// Gets and sets the property Handler. /// /// 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 /// . /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string Handler { get { return this._handler; } set { this._handler = value; } } // Check to see if Handler property is set internal bool IsSetHandler() { return this._handler != null; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=1, Max=1024)] public string S3Bucket { get { return this._s3Bucket; } set { this._s3Bucket = value; } } // Check to see if S3Bucket property is set internal bool IsSetS3Bucket() { return this._s3Bucket != null; } /// /// Gets and sets the property S3Key. /// /// The S3 key of your script. For more information, see Working /// with Amazon S3 Objects. /// /// [AWSProperty(Min=1, Max=1024)] public string S3Key { get { return this._s3Key; } set { this._s3Key = value; } } // Check to see if S3Key property is set internal bool IsSetS3Key() { return this._s3Key != null; } /// /// Gets and sets the property S3Version. /// /// The S3 version ID of your script. /// /// [AWSProperty(Min=1, Max=1024)] public string S3Version { get { return this._s3Version; } set { this._s3Version = value; } } // Check to see if S3Version property is set internal bool IsSetS3Version() { return this._s3Version != null; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=1, Max=10000000)] public MemoryStream ZipFile { get { return this._zipFile; } set { this._zipFile = value; } } // Check to see if ZipFile property is set internal bool IsSetZipFile() { return this._zipFile != null; } } }