/*
* 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 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 System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Lambda.Model
{
///
/// Details about a function's configuration.
///
public partial class UpdateFunctionConfigurationResponse : AmazonWebServiceResponse
{
private List _architectures = new List();
private string _codeSha256;
private long? _codeSize;
private DeadLetterConfig _deadLetterConfig;
private string _description;
private EnvironmentResponse _environment;
private EphemeralStorage _ephemeralStorage;
private List _fileSystemConfigs = new List();
private string _functionArn;
private string _functionName;
private string _handler;
private ImageConfigResponse _imageConfigResponse;
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 PackageType _packageType;
private string _revisionId;
private string _role;
private Runtime _runtime;
private RuntimeVersionConfig _runtimeVersionConfig;
private string _signingJobArn;
private string _signingProfileVersionArn;
private SnapStartResponse _snapStart;
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 Architectures.
///
/// The instruction set architecture that the 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 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. Omitted from CloudTrail logs.
///
///
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 EphemeralStorage.
///
/// The size of the function’s /tmp
directory in MB. The default value is
/// 512, but it can be any whole number between 512 and 10,240 MB.
///
///
public EphemeralStorage EphemeralStorage
{
get { return this._ephemeralStorage; }
set { this._ephemeralStorage = value; }
}
// Check to see if EphemeralStorage property is set
internal bool IsSetEphemeralStorage()
{
return this._ephemeralStorage != null;
}
///
/// Gets and sets the property FileSystemConfigs.
///
/// Connection settings for an Amazon
/// EFS file system.
///
///
[AWSProperty(Max=1)]
public List FileSystemConfigs
{
get { return this._fileSystemConfigs; }
set { this._fileSystemConfigs = value; }
}
// Check to see if FileSystemConfigs property is set
internal bool IsSetFileSystemConfigs()
{
return this._fileSystemConfigs != null && this._fileSystemConfigs.Count > 0;
}
///
/// 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 running 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 ImageConfigResponse.
///
/// The function's image configuration values.
///
///
public ImageConfigResponse ImageConfigResponse
{
get { return this._imageConfigResponse; }
set { this._imageConfigResponse = value; }
}
// Check to see if ImageConfigResponse property is set
internal bool IsSetImageConfigResponse()
{
return this._imageConfigResponse != null;
}
///
/// Gets and sets the property KMSKeyArn.
///
/// The KMS key that's used to encrypt the function's environment
/// variables. When Lambda
/// SnapStart is activated, this key is also used to encrypt the function's snapshot.
/// This key is returned only if you've configured a 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.
///
/// 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 main 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 amount of memory available to the function at runtime.
///
///
[AWSProperty(Min=128, Max=10240)]
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. 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 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 identifier of the function's runtime.
/// Runtime is required if the deployment package is a .zip file archive.
///
///
///
/// The following list includes deprecated runtimes. For more information, see Runtime
/// deprecation policy.
///
///
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 RuntimeVersionConfig.
///
/// The ARN of the runtime and any errors that occured.
///
///
public RuntimeVersionConfig RuntimeVersionConfig
{
get { return this._runtimeVersionConfig; }
set { this._runtimeVersionConfig = value; }
}
// Check to see if RuntimeVersionConfig property is set
internal bool IsSetRuntimeVersionConfig()
{
return this._runtimeVersionConfig != null;
}
///
/// Gets and sets the property SigningJobArn.
///
/// The ARN of the signing job.
///
///
public string SigningJobArn
{
get { return this._signingJobArn; }
set { this._signingJobArn = value; }
}
// Check to see if SigningJobArn property is set
internal bool IsSetSigningJobArn()
{
return this._signingJobArn != null;
}
///
/// Gets and sets the property SigningProfileVersionArn.
///
/// The ARN of the signing profile version.
///
///
public string SigningProfileVersionArn
{
get { return this._signingProfileVersionArn; }
set { this._signingProfileVersionArn = value; }
}
// Check to see if SigningProfileVersionArn property is set
internal bool IsSetSigningProfileVersionArn()
{
return this._signingProfileVersionArn != null;
}
///
/// Gets and sets the property SnapStart.
///
/// Set ApplyOn
to PublishedVersions
to create a snapshot of
/// the initialized execution environment when you publish a function version. For more
/// information, see Improving
/// startup performance with Lambda SnapStart.
///
///
public SnapStartResponse SnapStart
{
get { return this._snapStart; }
set { this._snapStart = value; }
}
// Check to see if SnapStart property is set
internal bool IsSetSnapStart()
{
return this._snapStart != 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 in seconds 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 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;
}
}
}