/*
* 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 ecs-2014-11-13.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.ECS.Model
{
///
/// Container for the parameters to the CreateCapacityProvider operation.
/// Creates a new capacity provider. Capacity providers are associated with an Amazon
/// ECS cluster and are used in capacity provider strategies to facilitate cluster auto
/// scaling.
///
///
///
/// Only capacity providers that use an Auto Scaling group can be created. Amazon ECS
/// tasks on Fargate use the FARGATE
and FARGATE_SPOT
capacity
/// providers. These providers are available to all accounts in the Amazon Web Services
/// Regions that Fargate supports.
///
///
public partial class CreateCapacityProviderRequest : AmazonECSRequest
{
private AutoScalingGroupProvider _autoScalingGroupProvider;
private string _name;
private List _tags = new List();
///
/// Gets and sets the property AutoScalingGroupProvider.
///
/// The details of the Auto Scaling group for the capacity provider.
///
///
[AWSProperty(Required=true)]
public AutoScalingGroupProvider AutoScalingGroupProvider
{
get { return this._autoScalingGroupProvider; }
set { this._autoScalingGroupProvider = value; }
}
// Check to see if AutoScalingGroupProvider property is set
internal bool IsSetAutoScalingGroupProvider()
{
return this._autoScalingGroupProvider != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the capacity provider. Up to 255 characters are allowed. They include
/// letters (both upper and lowercase letters), numbers, underscores (_), and hyphens
/// (-). The name can't be prefixed with "aws
", "ecs
", or "fargate
".
///
///
[AWSProperty(Required=true)]
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 Tags.
///
/// The metadata that you apply to the capacity provider to categorize and organize them
/// more conveniently. Each tag consists of a key and an optional value. You define both
/// of them.
///
///
///
/// The following basic restrictions apply to tags:
///
/// -
///
/// Maximum number of tags per resource - 50
///
///
-
///
/// For each resource, each tag key must be unique, and each tag key can have only one
/// value.
///
///
-
///
/// Maximum key length - 128 Unicode characters in UTF-8
///
///
-
///
/// Maximum value length - 256 Unicode characters in UTF-8
///
///
-
///
/// If your tagging schema is used across multiple services and resources, remember that
/// other services may have restrictions on allowed characters. Generally allowed characters
/// are: letters, numbers, and spaces representable in UTF-8, and the following characters:
/// + - = . _ : / @.
///
///
-
///
/// Tag keys and values are case-sensitive.
///
///
-
///
/// Do not use
aws:
, AWS:
, or any upper or lowercase combination
/// of such as a prefix for either keys or values as it is reserved for Amazon Web Services
/// use. You cannot edit or delete tag keys or values with this prefix. Tags with this
/// prefix do not count against your tags per resource limit.
///
///
///
[AWSProperty(Min=0, Max=50)]
public List 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;
}
}
}