/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Container for the parameters to the CreateLaunchTemplate operation.
/// Creates a launch template.
///
///
///
/// A launch template contains the parameters to launch an instance. When you launch an
/// instance using RunInstances, you can specify a launch template instead of providing
/// the launch parameters in the request. For more information, see Launch
/// an instance from a launch template in the Amazon Elastic Compute Cloud User
/// Guide.
///
///
///
/// If you want to clone an existing launch template as the basis for creating a new launch
/// template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support
/// cloning a template. For more information, see Create
/// a launch template from an existing launch template in the Amazon Elastic Compute
/// Cloud User Guide.
///
///
public partial class CreateLaunchTemplateRequest : AmazonEC2Request
{
private string _clientToken;
private RequestLaunchTemplateData _launchTemplateData;
private string _launchTemplateName;
private List _tagSpecifications = new List();
private string _versionDescription;
///
/// Gets and sets the property ClientToken.
///
/// Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
/// For more information, see Ensuring
/// idempotency.
///
///
///
/// Constraint: Maximum 128 ASCII characters.
///
///
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property LaunchTemplateData.
///
/// The information for the launch template.
///
///
[AWSProperty(Required=true)]
public RequestLaunchTemplateData LaunchTemplateData
{
get { return this._launchTemplateData; }
set { this._launchTemplateData = value; }
}
// Check to see if LaunchTemplateData property is set
internal bool IsSetLaunchTemplateData()
{
return this._launchTemplateData != null;
}
///
/// Gets and sets the property LaunchTemplateName.
///
/// A name for the launch template.
///
///
[AWSProperty(Required=true, Min=3, Max=128)]
public string LaunchTemplateName
{
get { return this._launchTemplateName; }
set { this._launchTemplateName = value; }
}
// Check to see if LaunchTemplateName property is set
internal bool IsSetLaunchTemplateName()
{
return this._launchTemplateName != null;
}
///
/// Gets and sets the property TagSpecifications.
///
/// The tags to apply to the launch template on creation. To tag the launch template,
/// the resource type must be launch-template
.
///
///
///
/// To specify the tags for the resources that are created when an instance is launched,
/// you must use the TagSpecifications
parameter in the launch
/// template data structure.
///
///
///
public List TagSpecifications
{
get { return this._tagSpecifications; }
set { this._tagSpecifications = value; }
}
// Check to see if TagSpecifications property is set
internal bool IsSetTagSpecifications()
{
return this._tagSpecifications != null && this._tagSpecifications.Count > 0;
}
///
/// Gets and sets the property VersionDescription.
///
/// A description for the first version of the launch template.
///
///
[AWSProperty(Min=0, Max=255)]
public string VersionDescription
{
get { return this._versionDescription; }
set { this._versionDescription = value; }
}
// Check to see if VersionDescription property is set
internal bool IsSetVersionDescription()
{
return this._versionDescription != null;
}
}
}