/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// Details about an Lambda function's configuration. /// public partial class AwsLambdaFunctionDetails { private List _architectures = new List(); private AwsLambdaFunctionCode _code; private string _codeSha256; private AwsLambdaFunctionDeadLetterConfig _deadLetterConfig; private AwsLambdaFunctionEnvironment _environment; private string _functionName; private string _handler; private string _kmsKeyArn; private string _lastModified; private List _layers = new List(); private string _masterArn; private int? _memorySize; private string _packageType; private string _revisionId; private string _role; private string _runtime; private int? _timeout; private AwsLambdaFunctionTracingConfig _tracingConfig; private string _version; private AwsLambdaFunctionVpcConfig _vpcConfig; /// /// Gets and sets the property Architectures. /// /// The instruction set architecture that the function uses. Valid values are x86_64 /// or arm64. /// /// 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 Code. /// /// An AwsLambdaFunctionCode object. /// /// public AwsLambdaFunctionCode Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// /// Gets and sets the property CodeSha256. /// /// The SHA256 hash of the function's deployment package. /// /// 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 DeadLetterConfig. /// /// The function's dead letter queue. /// /// public AwsLambdaFunctionDeadLetterConfig DeadLetterConfig { get { return this._deadLetterConfig; } set { this._deadLetterConfig = value; } } // Check to see if DeadLetterConfig property is set internal bool IsSetDeadLetterConfig() { return this._deadLetterConfig != null; } /// /// Gets and sets the property Environment. /// /// The function's environment variables. /// /// public AwsLambdaFunctionEnvironment Environment { get { return this._environment; } set { this._environment = value; } } // Check to see if Environment property is set internal bool IsSetEnvironment() { return this._environment != null; } /// /// Gets and sets the property FunctionName. /// /// The name of the function. /// /// 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 Handler. /// /// The function that Lambda calls to begin executing your function. /// /// 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 KmsKeyArn. /// /// The KMS key that is used to encrypt the function's environment variables. This key /// is only returned if you've configured a customer managed customer managed key. /// /// public string KmsKeyArn { get { return this._kmsKeyArn; } set { this._kmsKeyArn = value; } } // Check to see if KmsKeyArn property is set internal bool IsSetKmsKeyArn() { return this._kmsKeyArn != null; } /// /// Gets and sets the property LastModified. /// /// Indicates when the function was last updated. /// /// /// /// Uses the date-time format specified in RFC /// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, /// and date and time should be separated by T. For example, 2020-03-22T13:22:13.933Z. /// /// public string LastModified { get { return this._lastModified; } set { this._lastModified = value; } } // Check to see if LastModified property is set internal bool IsSetLastModified() { return this._lastModified != null; } /// /// Gets and sets the property Layers. /// /// The function's layers. /// /// 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 MasterArn. /// /// For Lambda@Edge functions, the ARN of the master function. /// /// public string MasterArn { get { return this._masterArn; } set { this._masterArn = value; } } // Check to see if MasterArn property is set internal bool IsSetMasterArn() { return this._masterArn != null; } /// /// Gets and sets the property MemorySize. /// /// The memory that is allocated to the function. /// /// public int MemorySize { get { return this._memorySize.GetValueOrDefault(); } set { this._memorySize = value; } } // Check to see if MemorySize property is set internal bool IsSetMemorySize() { return this._memorySize.HasValue; } /// /// Gets and sets the property PackageType. /// /// The type of deployment package that's used to deploy the function code to Lambda. /// Set to Image for a container image and Zip for a .zip file /// archive. /// /// public string 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 RevisionId. /// /// The latest updated revision of the function or alias. /// /// public string RevisionId { get { return this._revisionId; } set { this._revisionId = value; } } // Check to see if RevisionId property is set internal bool IsSetRevisionId() { return this._revisionId != null; } /// /// Gets and sets the property Role. /// /// The function's execution role. /// /// public string Role { get { return this._role; } set { this._role = value; } } // Check to see if Role property is set internal bool IsSetRole() { return this._role != null; } /// /// Gets and sets the property Runtime. /// /// The runtime environment for the Lambda function. /// /// public string 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 Timeout. /// /// The amount of time that Lambda allows a function to run before stopping it. /// /// public int Timeout { get { return this._timeout.GetValueOrDefault(); } set { this._timeout = value; } } // Check to see if Timeout property is set internal bool IsSetTimeout() { return this._timeout.HasValue; } /// /// Gets and sets the property TracingConfig. /// /// The function's X-Ray tracing configuration. /// /// public AwsLambdaFunctionTracingConfig TracingConfig { get { return this._tracingConfig; } set { this._tracingConfig = value; } } // Check to see if TracingConfig property is set internal bool IsSetTracingConfig() { return this._tracingConfig != null; } /// /// Gets and sets the property Version. /// /// The version of the Lambda function. /// /// 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 function's networking configuration. /// /// public AwsLambdaFunctionVpcConfig VpcConfig { get { return this._vpcConfig; } set { this._vpcConfig = value; } } // Check to see if VpcConfig property is set internal bool IsSetVpcConfig() { return this._vpcConfig != null; } } }