/* * 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 { /// /// Container for the parameters to the PublishLayerVersion operation. /// Creates an Lambda /// layer from a ZIP archive. Each time you call PublishLayerVersion /// with the same layer name, a new version is created. /// /// /// /// Add layers to your function with CreateFunction or UpdateFunctionConfiguration. /// /// public partial class PublishLayerVersionRequest : AmazonLambdaRequest { private List _compatibleArchitectures = new List(); private List _compatibleRuntimes = new List(); private LayerVersionContentInput _content; private string _description; private string _layerName; private string _licenseInfo; /// /// Gets and sets the property CompatibleArchitectures. /// /// A list of compatible instruction /// set architectures. /// /// [AWSProperty(Max=2)] public List CompatibleArchitectures { get { return this._compatibleArchitectures; } set { this._compatibleArchitectures = value; } } // Check to see if CompatibleArchitectures property is set internal bool IsSetCompatibleArchitectures() { return this._compatibleArchitectures != null && this._compatibleArchitectures.Count > 0; } /// /// Gets and sets the property CompatibleRuntimes. /// /// A list of compatible function /// runtimes. Used for filtering with ListLayers and ListLayerVersions. /// /// /// /// The following list includes deprecated runtimes. For more information, see Runtime /// deprecation policy. /// /// [AWSProperty(Max=15)] public List CompatibleRuntimes { get { return this._compatibleRuntimes; } set { this._compatibleRuntimes = value; } } // Check to see if CompatibleRuntimes property is set internal bool IsSetCompatibleRuntimes() { return this._compatibleRuntimes != null && this._compatibleRuntimes.Count > 0; } /// /// Gets and sets the property Content. /// /// The function layer archive. /// /// [AWSProperty(Required=true)] public LayerVersionContentInput Content { get { return this._content; } set { this._content = value; } } // Check to see if Content property is set internal bool IsSetContent() { return this._content != null; } /// /// Gets and sets the property Description. /// /// The description of the version. /// /// [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 LayerName. /// /// The name or Amazon Resource Name (ARN) of the layer. /// /// [AWSProperty(Required=true, Min=1, Max=140)] public string LayerName { get { return this._layerName; } set { this._layerName = value; } } // Check to see if LayerName property is set internal bool IsSetLayerName() { return this._layerName != null; } /// /// Gets and sets the property LicenseInfo. /// /// The layer's software license. It can be any of the following: /// ///
  • /// /// An SPDX license identifier. For example, /// MIT. /// ///
  • /// /// The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT. /// ///
  • /// /// The full text of the license. /// ///
///
[AWSProperty(Max=512)] public string LicenseInfo { get { return this._licenseInfo; } set { this._licenseInfo = value; } } // Check to see if LicenseInfo property is set internal bool IsSetLicenseInfo() { return this._licenseInfo != null; } } }