/* * Copyright 2010-2014 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 lambda-2015-03-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Lambda.Model { /// /// Details about a function's configuration. /// public partial class PublishVersionResponse : AmazonWebServiceResponse { private string _codeSha256; private long? _codeSize; private DeadLetterConfig _deadLetterConfig; private string _description; private EnvironmentResponse _environment; private string _functionArn; private string _functionName; private string _handler; private string _kmsKeyArn; private string _lastModified; private LastUpdateStatus _lastUpdateStatus; private string _lastUpdateStatusReason; private LastUpdateStatusReasonCode _lastUpdateStatusReasonCode; private List _layers = new List(); private string _masterArn; private int? _memorySize; private string _revisionId; private string _role; private Runtime _runtime; private State _state; private string _stateReason; private StateReasonCode _stateReasonCode; private int? _timeout; private TracingConfigResponse _tracingConfig; private string _version; private VpcConfigDetail _vpcConfig; /// /// 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 CodeSize. /// /// The size of the function's deployment package, in bytes. /// /// public long CodeSize { get { return this._codeSize.GetValueOrDefault(); } set { this._codeSize = value; } } // Check to see if CodeSize property is set internal bool IsSetCodeSize() { return this._codeSize.HasValue; } /// /// Gets and sets the property DeadLetterConfig. /// /// The function's dead letter queue. /// /// public DeadLetterConfig 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 Description. /// /// The function's description. /// /// [AWSProperty(Min=0, Max=256)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property Environment. /// /// The function's environment variables. /// /// public EnvironmentResponse 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 FunctionArn. /// /// The function's Amazon Resource Name (ARN). /// /// public string FunctionArn { get { return this._functionArn; } set { this._functionArn = value; } } // Check to see if FunctionArn property is set internal bool IsSetFunctionArn() { return this._functionArn != null; } /// /// Gets and sets the property FunctionName. /// /// The name of the function. /// /// [AWSProperty(Min=1, Max=170)] 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. /// /// [AWSProperty(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 KMSKeyArn. /// /// The KMS key that's used to encrypt the function's environment variables. This key /// is only returned if you've configured a customer managed CMK. /// /// 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. /// /// The date and time that the function was last updated, in ISO-8601 /// format (YYYY-MM-DDThh:mm:ss.sTZD). /// /// 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 LastUpdateStatus. /// /// The status of the last update that was performed on the function. This is first set /// to Successful after function creation completes. /// /// public LastUpdateStatus LastUpdateStatus { get { return this._lastUpdateStatus; } set { this._lastUpdateStatus = value; } } // Check to see if LastUpdateStatus property is set internal bool IsSetLastUpdateStatus() { return this._lastUpdateStatus != null; } /// /// Gets and sets the property LastUpdateStatusReason. /// /// The reason for the last update that was performed on the function. /// /// public string LastUpdateStatusReason { get { return this._lastUpdateStatusReason; } set { this._lastUpdateStatusReason = value; } } // Check to see if LastUpdateStatusReason property is set internal bool IsSetLastUpdateStatusReason() { return this._lastUpdateStatusReason != null; } /// /// Gets and sets the property LastUpdateStatusReasonCode. /// /// The reason code for the last update that was performed on the function. /// /// public LastUpdateStatusReasonCode LastUpdateStatusReasonCode { get { return this._lastUpdateStatusReasonCode; } set { this._lastUpdateStatusReasonCode = value; } } // Check to see if LastUpdateStatusReasonCode property is set internal bool IsSetLastUpdateStatusReasonCode() { return this._lastUpdateStatusReasonCode != 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's allocated to the function. /// /// [AWSProperty(Min=128, Max=3008)] 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 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 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 State. /// /// The current state of the function. When the state is Inactive, you can /// reactivate the function by invoking it. /// /// public State State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property StateReason. /// /// The reason for the function's current state. /// /// public string StateReason { get { return this._stateReason; } set { this._stateReason = value; } } // Check to see if StateReason property is set internal bool IsSetStateReason() { return this._stateReason != null; } /// /// Gets and sets the property StateReasonCode. /// /// The reason code for the function's current state. When the code is Creating, /// you can't invoke or modify the function. /// /// public StateReasonCode StateReasonCode { get { return this._stateReasonCode; } set { this._stateReasonCode = value; } } // Check to see if StateReasonCode property is set internal bool IsSetStateReasonCode() { return this._stateReasonCode != null; } /// /// Gets and sets the property Timeout. /// /// The amount of time that Lambda allows a function to run before stopping it. /// /// [AWSProperty(Min=1)] 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 AWS X-Ray tracing configuration. /// /// public TracingConfigResponse 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. /// /// [AWSProperty(Min=1, Max=1024)] 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 VpcConfigDetail VpcConfig { get { return this._vpcConfig; } set { this._vpcConfig = value; } } // Check to see if VpcConfig property is set internal bool IsSetVpcConfig() { return this._vpcConfig != null; } } }