/*
* 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 greengrass-2017-06-07.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.Greengrass.Model
{
///
/// The environment configuration of the function.
///
public partial class FunctionConfigurationEnvironment
{
private bool? _accessSysfs;
private FunctionExecutionConfig _execution;
private List _resourceAccessPolicies = new List();
private Dictionary _variables = new Dictionary();
///
/// Gets and sets the property AccessSysfs. If true, the Lambda function is allowed to
/// access the host's /sys folder. Use this when the Lambda function needs to read device
/// information from /sys. This setting applies only when you run the Lambda function
/// in a Greengrass container.
///
public bool AccessSysfs
{
get { return this._accessSysfs.GetValueOrDefault(); }
set { this._accessSysfs = value; }
}
// Check to see if AccessSysfs property is set
internal bool IsSetAccessSysfs()
{
return this._accessSysfs.HasValue;
}
///
/// Gets and sets the property Execution. Configuration related to executing the Lambda
/// function
///
public FunctionExecutionConfig Execution
{
get { return this._execution; }
set { this._execution = value; }
}
// Check to see if Execution property is set
internal bool IsSetExecution()
{
return this._execution != null;
}
///
/// Gets and sets the property ResourceAccessPolicies. A list of the resources, with their
/// permissions, to which the Lambda function will be granted access. A Lambda function
/// can have at most 10 resources. ResourceAccessPolicies apply only when you run the
/// Lambda function in a Greengrass container.
///
public List ResourceAccessPolicies
{
get { return this._resourceAccessPolicies; }
set { this._resourceAccessPolicies = value; }
}
// Check to see if ResourceAccessPolicies property is set
internal bool IsSetResourceAccessPolicies()
{
return this._resourceAccessPolicies != null && this._resourceAccessPolicies.Count > 0;
}
///
/// Gets and sets the property Variables. Environment variables for the Lambda function's
/// configuration.
///
public Dictionary Variables
{
get { return this._variables; }
set { this._variables = value; }
}
// Check to see if Variables property is set
internal bool IsSetVariables()
{
return this._variables != null && this._variables.Count > 0;
}
}
}