/* * 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 appconfig-2019-10-09.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.AppConfig.Model { /// /// Container for the parameters to the CreateExtension operation. /// Creates an AppConfig extension. An extension augments your ability to inject logic /// or behavior at different points during the AppConfig workflow of creating or deploying /// a configuration. /// /// /// /// You can create your own extensions or use the Amazon Web Services authored extensions /// provided by AppConfig. For most use cases, to create your own extension, you must /// create an Lambda function to perform any computation and processing defined in the /// extension. For more information about extensions, see Working /// with AppConfig extensions in the AppConfig User Guide. /// /// public partial class CreateExtensionRequest : AmazonAppConfigRequest { private Dictionary> _actions = new Dictionary>(); private string _description; private int? _latestVersionNumber; private string _name; private Dictionary _parameters = new Dictionary(); private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property Actions. /// /// The actions defined in the extension. /// /// [AWSProperty(Required=true, Min=1, Max=5)] public Dictionary> Actions { get { return this._actions; } set { this._actions = value; } } // Check to see if Actions property is set internal bool IsSetActions() { return this._actions != null && this._actions.Count > 0; } /// /// Gets and sets the property Description. /// /// Information about the extension. /// /// [AWSProperty(Min=0, Max=1024)] 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 LatestVersionNumber. /// /// You can omit this field when you create an extension. When you create a new version, /// specify the most recent current version number. For example, you create version 3, /// enter 2 for this field. /// /// public int LatestVersionNumber { get { return this._latestVersionNumber.GetValueOrDefault(); } set { this._latestVersionNumber = value; } } // Check to see if LatestVersionNumber property is set internal bool IsSetLatestVersionNumber() { return this._latestVersionNumber.HasValue; } /// /// Gets and sets the property Name. /// /// A name for the extension. Each extension name in your account must be unique. Extension /// versions use the same name. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Parameters. /// /// The parameters accepted by the extension. You specify parameter values when you associate /// the extension to an AppConfig resource by using the CreateExtensionAssociation /// API action. For Lambda extension actions, these parameters are included in the Lambda /// request object. /// /// [AWSProperty(Min=1, Max=5)] public Dictionary Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null && this._parameters.Count > 0; } /// /// Gets and sets the property Tags. /// /// Adds one or more tags for the specified extension. Tags are metadata that help you /// categorize resources in different ways, for example, by purpose, owner, or environment. /// Each tag consists of a key and an optional value, both of which you define. /// /// [AWSProperty(Min=0, Max=50)] public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }