/* * 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 inspector2-2020-06-08.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.Inspector2.Model { /// /// A summary of information about the AWS Lambda function. /// public partial class AwsLambdaFunctionDetails { private List _architectures = new List(); private string _codeSha256; private string _executionRoleArn; private string _functionName; private DateTime? _lastModifiedAt; private List _layers = new List(); private PackageType _packageType; private Runtime _runtime; private string _version; private LambdaVpcConfig _vpcConfig; /// /// Gets and sets the property Architectures. /// /// The instruction set architecture that the AWS Lambda function supports. Architecture /// is a string array with one of the valid values. The default architecture value is /// x86_64. /// /// [AWSProperty(Min=1, Max=1)] public List Architectures { get { return this._architectures; } set { this._architectures = value; } } // Check to see if Architectures property is set internal bool IsSetArchitectures() { return this._architectures != null && this._architectures.Count > 0; } /// /// Gets and sets the property CodeSha256. /// /// The SHA256 hash of the AWS Lambda function's deployment package. /// /// [AWSProperty(Required=true, Min=1)] public string CodeSha256 { get { return this._codeSha256; } set { this._codeSha256 = value; } } // Check to see if CodeSha256 property is set internal bool IsSetCodeSha256() { return this._codeSha256 != null; } /// /// Gets and sets the property ExecutionRoleArn. /// /// The AWS Lambda function's execution role. /// /// [AWSProperty(Required=true)] public string ExecutionRoleArn { get { return this._executionRoleArn; } set { this._executionRoleArn = value; } } // Check to see if ExecutionRoleArn property is set internal bool IsSetExecutionRoleArn() { return this._executionRoleArn != null; } /// /// Gets and sets the property FunctionName. /// /// The name of the AWS Lambda function. /// /// [AWSProperty(Required=true)] public string FunctionName { get { return this._functionName; } set { this._functionName = value; } } // Check to see if FunctionName property is set internal bool IsSetFunctionName() { return this._functionName != null; } /// /// Gets and sets the property LastModifiedAt. /// /// The date and time that a user last updated the configuration, in ISO /// 8601 format /// /// public DateTime LastModifiedAt { get { return this._lastModifiedAt.GetValueOrDefault(); } set { this._lastModifiedAt = value; } } // Check to see if LastModifiedAt property is set internal bool IsSetLastModifiedAt() { return this._lastModifiedAt.HasValue; } /// /// Gets and sets the property Layers. /// /// The AWS Lambda function's /// layers. A Lambda function can have up to five layers. /// /// [AWSProperty(Min=1, Max=5)] public List Layers { get { return this._layers; } set { this._layers = value; } } // Check to see if Layers property is set internal bool IsSetLayers() { return this._layers != null && this._layers.Count > 0; } /// /// Gets and sets the property PackageType. /// /// The type of deployment package. Set to Image for container image and /// set Zip for .zip file archive. /// /// public PackageType PackageType { get { return this._packageType; } set { this._packageType = value; } } // Check to see if PackageType property is set internal bool IsSetPackageType() { return this._packageType != null; } /// /// Gets and sets the property Runtime. /// /// The runtime environment for the AWS Lambda function. /// /// [AWSProperty(Required=true)] public Runtime Runtime { get { return this._runtime; } set { this._runtime = value; } } // Check to see if Runtime property is set internal bool IsSetRuntime() { return this._runtime != null; } /// /// Gets and sets the property Version. /// /// The version of the AWS Lambda function. /// /// [AWSProperty(Required=true)] public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } /// /// Gets and sets the property VpcConfig. /// /// The AWS Lambda function's networking configuration. /// /// public LambdaVpcConfig VpcConfig { get { return this._vpcConfig; } set { this._vpcConfig = value; } } // Check to see if VpcConfig property is set internal bool IsSetVpcConfig() { return this._vpcConfig != null; } } }