/* * 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 greengrassv2-2020-11-30.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.GreengrassV2.Model { /// /// Contains information about an Lambda function to import to create a component. /// public partial class LambdaFunctionRecipeSource { private Dictionary _componentDependencies = new Dictionary(); private LambdaExecutionParameters _componentLambdaParameters; private string _componentName; private List _componentPlatforms = new List(); private string _componentVersion; private string _lambdaArn; /// /// Gets and sets the property ComponentDependencies. /// /// The component versions on which this Lambda function component depends. /// /// public Dictionary ComponentDependencies { get { return this._componentDependencies; } set { this._componentDependencies = value; } } // Check to see if ComponentDependencies property is set internal bool IsSetComponentDependencies() { return this._componentDependencies != null && this._componentDependencies.Count > 0; } /// /// Gets and sets the property ComponentLambdaParameters. /// /// The system and runtime parameters for the Lambda function as it runs on the Greengrass /// core device. /// /// public LambdaExecutionParameters ComponentLambdaParameters { get { return this._componentLambdaParameters; } set { this._componentLambdaParameters = value; } } // Check to see if ComponentLambdaParameters property is set internal bool IsSetComponentLambdaParameters() { return this._componentLambdaParameters != null; } /// /// Gets and sets the property ComponentName. /// /// The name of the component. /// /// /// /// Defaults to the name of the Lambda function. /// /// [AWSProperty(Min=1, Max=128)] public string ComponentName { get { return this._componentName; } set { this._componentName = value; } } // Check to see if ComponentName property is set internal bool IsSetComponentName() { return this._componentName != null; } /// /// Gets and sets the property ComponentPlatforms. /// /// The platforms that the component version supports. /// /// public List ComponentPlatforms { get { return this._componentPlatforms; } set { this._componentPlatforms = value; } } // Check to see if ComponentPlatforms property is set internal bool IsSetComponentPlatforms() { return this._componentPlatforms != null && this._componentPlatforms.Count > 0; } /// /// Gets and sets the property ComponentVersion. /// /// The version of the component. /// /// /// /// Defaults to the version of the Lambda function as a semantic version. For example, /// if your function version is 3, the component version becomes 3.0.0. /// /// [AWSProperty(Min=1, Max=64)] public string ComponentVersion { get { return this._componentVersion; } set { this._componentVersion = value; } } // Check to see if ComponentVersion property is set internal bool IsSetComponentVersion() { return this._componentVersion != null; } /// /// Gets and sets the property LambdaArn. /// /// The ARN /// of the Lambda function. The ARN must include the version of the function to import. /// You can't use version aliases like $LATEST. /// /// [AWSProperty(Required=true, Min=1)] public string LambdaArn { get { return this._lambdaArn; } set { this._lambdaArn = value; } } // Check to see if LambdaArn property is set internal bool IsSetLambdaArn() { return this._lambdaArn != null; } } }