repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteNotificationConfiguration operation.
/// Deletes the specified notification.
/// </summary>
public partial class DeleteNotificationConfigurationRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _topicARN;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property TopicARN.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon SNS topic.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string TopicARN
{
get { return this._topicARN; }
set { this._topicARN = value; }
}
// Check to see if TopicARN property is set
internal bool IsSetTopicARN()
{
return this._topicARN != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteNotificationConfiguration operation.
/// </summary>
public partial class DeleteNotificationConfigurationResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeletePolicy operation.
/// Deletes the specified scaling policy.
///
///
/// <para>
/// Deleting either a step scaling policy or a simple scaling policy deletes the underlying
/// alarm action, but does not delete the alarm, even if it no longer has an associated
/// action.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting
/// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DeletePolicyRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _policyName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name or Amazon Resource Name (ARN) of the policy.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string PolicyName
{
get { return this._policyName; }
set { this._policyName = value; }
}
// Check to see if PolicyName property is set
internal bool IsSetPolicyName()
{
return this._policyName != null;
}
}
}
| 91 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeletePolicy operation.
/// </summary>
public partial class DeletePolicyResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteScheduledAction operation.
/// Deletes the specified scheduled action.
/// </summary>
public partial class DeleteScheduledActionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _scheduledActionName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of the action to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ScheduledActionName
{
get { return this._scheduledActionName; }
set { this._scheduledActionName = value; }
}
// Check to see if ScheduledActionName property is set
internal bool IsSetScheduledActionName()
{
return this._scheduledActionName != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteScheduledAction operation.
/// </summary>
public partial class DeleteScheduledActionResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteTags operation.
/// Deletes the specified tags.
/// </summary>
public partial class DeleteTagsRequest : AmazonAutoScalingRequest
{
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// One or more tags.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Tag> 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;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteTags operation.
/// </summary>
public partial class DeleteTagsResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteWarmPool operation.
/// Deletes the warm pool for the specified Auto Scaling group.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm
/// pools for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DeleteWarmPoolRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private bool? _forceDelete;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property ForceDelete.
/// <para>
/// Specifies that the warm pool is to be deleted along with all of its associated instances,
/// without waiting for all instances to be terminated. This parameter also deletes any
/// outstanding lifecycle actions associated with the warm pool instances.
/// </para>
/// </summary>
public bool ForceDelete
{
get { return this._forceDelete.GetValueOrDefault(); }
set { this._forceDelete = value; }
}
// Check to see if ForceDelete property is set
internal bool IsSetForceDelete()
{
return this._forceDelete.HasValue;
}
}
}
| 86 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteWarmPool operation.
/// </summary>
public partial class DeleteWarmPoolResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeAccountLimits operation.
/// Describes the current Amazon EC2 Auto Scaling resource quotas for your account.
///
///
/// <para>
/// When you establish an Amazon Web Services account, the account has initial quotas
/// on the maximum number of Auto Scaling groups and launch configurations that you can
/// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas
/// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeAccountLimitsRequest : AmazonAutoScalingRequest
{
}
}
| 47 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeAccountLimits operation.
/// </summary>
public partial class DescribeAccountLimitsResponse : AmazonWebServiceResponse
{
private int? _maxNumberOfAutoScalingGroups;
private int? _maxNumberOfLaunchConfigurations;
private int? _numberOfAutoScalingGroups;
private int? _numberOfLaunchConfigurations;
/// <summary>
/// Gets and sets the property MaxNumberOfAutoScalingGroups.
/// <para>
/// The maximum number of groups allowed for your account. The default is 200 groups per
/// Region.
/// </para>
/// </summary>
public int MaxNumberOfAutoScalingGroups
{
get { return this._maxNumberOfAutoScalingGroups.GetValueOrDefault(); }
set { this._maxNumberOfAutoScalingGroups = value; }
}
// Check to see if MaxNumberOfAutoScalingGroups property is set
internal bool IsSetMaxNumberOfAutoScalingGroups()
{
return this._maxNumberOfAutoScalingGroups.HasValue;
}
/// <summary>
/// Gets and sets the property MaxNumberOfLaunchConfigurations.
/// <para>
/// The maximum number of launch configurations allowed for your account. The default
/// is 200 launch configurations per Region.
/// </para>
/// </summary>
public int MaxNumberOfLaunchConfigurations
{
get { return this._maxNumberOfLaunchConfigurations.GetValueOrDefault(); }
set { this._maxNumberOfLaunchConfigurations = value; }
}
// Check to see if MaxNumberOfLaunchConfigurations property is set
internal bool IsSetMaxNumberOfLaunchConfigurations()
{
return this._maxNumberOfLaunchConfigurations.HasValue;
}
/// <summary>
/// Gets and sets the property NumberOfAutoScalingGroups.
/// <para>
/// The current number of groups for your account.
/// </para>
/// </summary>
public int NumberOfAutoScalingGroups
{
get { return this._numberOfAutoScalingGroups.GetValueOrDefault(); }
set { this._numberOfAutoScalingGroups = value; }
}
// Check to see if NumberOfAutoScalingGroups property is set
internal bool IsSetNumberOfAutoScalingGroups()
{
return this._numberOfAutoScalingGroups.HasValue;
}
/// <summary>
/// Gets and sets the property NumberOfLaunchConfigurations.
/// <para>
/// The current number of launch configurations for your account.
/// </para>
/// </summary>
public int NumberOfLaunchConfigurations
{
get { return this._numberOfLaunchConfigurations.GetValueOrDefault(); }
set { this._numberOfLaunchConfigurations = value; }
}
// Check to see if NumberOfLaunchConfigurations property is set
internal bool IsSetNumberOfLaunchConfigurations()
{
return this._numberOfLaunchConfigurations.HasValue;
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeAdjustmentTypes operation.
/// Describes the available adjustment types for step scaling and simple scaling policies.
///
///
/// <para>
/// The following adjustment types are supported:
/// </para>
/// <ul> <li>
/// <para>
/// <code>ChangeInCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ExactCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>PercentChangeInCapacity</code>
/// </para>
/// </li> </ul>
/// </summary>
public partial class DescribeAdjustmentTypesRequest : AmazonAutoScalingRequest
{
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeAdjustmentTypes operation.
/// </summary>
public partial class DescribeAdjustmentTypesResponse : AmazonWebServiceResponse
{
private List<AdjustmentType> _adjustmentTypes = new List<AdjustmentType>();
/// <summary>
/// Gets and sets the property AdjustmentTypes.
/// <para>
/// The policy adjustment types.
/// </para>
/// </summary>
public List<AdjustmentType> AdjustmentTypes
{
get { return this._adjustmentTypes; }
set { this._adjustmentTypes = value; }
}
// Check to see if AdjustmentTypes property is set
internal bool IsSetAdjustmentTypes()
{
return this._adjustmentTypes != null && this._adjustmentTypes.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeAutoScalingGroups operation.
/// Gets information about the Auto Scaling groups in the account and Region.
///
///
/// <para>
/// If you specify Auto Scaling group names, the output includes information for only
/// the specified Auto Scaling groups. If you specify filters, the output includes information
/// for only those Auto Scaling groups that meet the filter criteria. If you do not specify
/// group names or filters, the output includes information for all Auto Scaling groups.
///
/// </para>
///
/// <para>
/// This operation also returns information about instances in Auto Scaling groups. To
/// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a>
/// API.
/// </para>
/// </summary>
public partial class DescribeAutoScalingGroupsRequest : AmazonAutoScalingRequest
{
private List<string> _autoScalingGroupNames = new List<string>();
private List<Filter> _filters = new List<Filter>();
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingGroupNames.
/// <para>
/// The names of the Auto Scaling groups. By default, you can only specify up to 50 names.
/// You can optionally increase this limit using the <code>MaxRecords</code> property.
/// </para>
///
/// <para>
/// If you omit this property, all Auto Scaling groups are described.
/// </para>
/// </summary>
public List<string> AutoScalingGroupNames
{
get { return this._autoScalingGroupNames; }
set { this._autoScalingGroupNames = value; }
}
// Check to see if AutoScalingGroupNames property is set
internal bool IsSetAutoScalingGroupNames()
{
return this._autoScalingGroupNames != null && this._autoScalingGroupNames.Count > 0;
}
/// <summary>
/// Gets and sets the property Filters.
/// <para>
/// One or more filters to limit the results based on specific tags.
/// </para>
/// </summary>
public List<Filter> Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>50</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 137 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeAutoScalingGroups operation.
/// </summary>
public partial class DescribeAutoScalingGroupsResponse : AmazonWebServiceResponse
{
private List<AutoScalingGroup> _autoScalingGroups = new List<AutoScalingGroup>();
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingGroups.
/// <para>
/// The groups.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<AutoScalingGroup> AutoScalingGroups
{
get { return this._autoScalingGroups; }
set { this._autoScalingGroups = value; }
}
// Check to see if AutoScalingGroups property is set
internal bool IsSetAutoScalingGroups()
{
return this._autoScalingGroups != null && this._autoScalingGroups.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeAutoScalingInstances operation.
/// Gets information about the Auto Scaling instances in the account and Region.
/// </summary>
public partial class DescribeAutoScalingInstancesRequest : AmazonAutoScalingRequest
{
private List<string> _instanceIds = new List<string>();
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property InstanceIds.
/// <para>
/// The IDs of the instances. If you omit this property, all Auto Scaling instances are
/// described. If you specify an ID that does not exist, it is ignored with no error.
/// </para>
///
/// <para>
/// Array Members: Maximum number of 50 items.
/// </para>
/// </summary>
public List<string> InstanceIds
{
get { return this._instanceIds; }
set { this._instanceIds = value; }
}
// Check to see if InstanceIds property is set
internal bool IsSetInstanceIds()
{
return this._instanceIds != null && this._instanceIds.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>50</code>
/// and the maximum value is <code>50</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeAutoScalingInstances operation.
/// </summary>
public partial class DescribeAutoScalingInstancesResponse : AmazonWebServiceResponse
{
private List<AutoScalingInstanceDetails> _autoScalingInstances = new List<AutoScalingInstanceDetails>();
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingInstances.
/// <para>
/// The instances.
/// </para>
/// </summary>
public List<AutoScalingInstanceDetails> AutoScalingInstances
{
get { return this._autoScalingInstances; }
set { this._autoScalingInstances = value; }
}
// Check to see if AutoScalingInstances property is set
internal bool IsSetAutoScalingInstances()
{
return this._autoScalingInstances != null && this._autoScalingInstances.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeAutoScalingNotificationTypes operation.
/// Describes the notification types that are supported by Amazon EC2 Auto Scaling.
/// </summary>
public partial class DescribeAutoScalingNotificationTypesRequest : AmazonAutoScalingRequest
{
}
}
| 39 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeAutoScalingNotificationTypes operation.
/// </summary>
public partial class DescribeAutoScalingNotificationTypesResponse : AmazonWebServiceResponse
{
private List<string> _autoScalingNotificationTypes = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingNotificationTypes.
/// <para>
/// The notification types.
/// </para>
/// </summary>
public List<string> AutoScalingNotificationTypes
{
get { return this._autoScalingNotificationTypes; }
set { this._autoScalingNotificationTypes = value; }
}
// Check to see if AutoScalingNotificationTypes property is set
internal bool IsSetAutoScalingNotificationTypes()
{
return this._autoScalingNotificationTypes != null && this._autoScalingNotificationTypes.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeInstanceRefreshes operation.
/// Gets information about the instance refreshes for the specified Auto Scaling group.
///
///
/// <para>
/// This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance
/// refresh feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in
/// your Auto Scaling group after you make configuration changes.
/// </para>
///
/// <para>
/// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns
/// information about the instance refreshes you previously initiated, including their
/// status, start time, end time, the percentage of the instance refresh that is complete,
/// and the number of instances remaining to update before the instance refresh is complete.
/// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto
/// Scaling also returns information about the rollback of the instance refresh.
/// </para>
/// </summary>
public partial class DescribeInstanceRefreshesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _instanceRefreshIds = new List<string>();
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceRefreshIds.
/// <para>
/// One or more instance refresh IDs.
/// </para>
/// </summary>
public List<string> InstanceRefreshIds
{
get { return this._instanceRefreshIds; }
set { this._instanceRefreshIds = value; }
}
// Check to see if InstanceRefreshIds property is set
internal bool IsSetInstanceRefreshIds()
{
return this._instanceRefreshIds != null && this._instanceRefreshIds.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>50</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 134 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeInstanceRefreshes operation.
/// </summary>
public partial class DescribeInstanceRefreshesResponse : AmazonWebServiceResponse
{
private List<InstanceRefresh> _instanceRefreshes = new List<InstanceRefresh>();
private string _nextToken;
/// <summary>
/// Gets and sets the property InstanceRefreshes.
/// <para>
/// The instance refreshes for the specified group, sorted by creation timestamp in descending
/// order.
/// </para>
/// </summary>
public List<InstanceRefresh> InstanceRefreshes
{
get { return this._instanceRefreshes; }
set { this._instanceRefreshes = value; }
}
// Check to see if InstanceRefreshes property is set
internal bool IsSetInstanceRefreshes()
{
return this._instanceRefreshes != null && this._instanceRefreshes.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeLaunchConfigurations operation.
/// Gets information about the launch configurations in the account and Region.
/// </summary>
public partial class DescribeLaunchConfigurationsRequest : AmazonAutoScalingRequest
{
private List<string> _launchConfigurationNames = new List<string>();
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property LaunchConfigurationNames.
/// <para>
/// The launch configuration names. If you omit this property, all launch configurations
/// are described.
/// </para>
///
/// <para>
/// Array Members: Maximum number of 50 items.
/// </para>
/// </summary>
public List<string> LaunchConfigurationNames
{
get { return this._launchConfigurationNames; }
set { this._launchConfigurationNames = value; }
}
// Check to see if LaunchConfigurationNames property is set
internal bool IsSetLaunchConfigurationNames()
{
return this._launchConfigurationNames != null && this._launchConfigurationNames.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>50</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeLaunchConfigurations operation.
/// </summary>
public partial class DescribeLaunchConfigurationsResponse : AmazonWebServiceResponse
{
private List<LaunchConfiguration> _launchConfigurations = new List<LaunchConfiguration>();
private string _nextToken;
/// <summary>
/// Gets and sets the property LaunchConfigurations.
/// <para>
/// The launch configurations.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<LaunchConfiguration> LaunchConfigurations
{
get { return this._launchConfigurations; }
set { this._launchConfigurations = value; }
}
// Check to see if LaunchConfigurations property is set
internal bool IsSetLaunchConfigurations()
{
return this._launchConfigurations != null && this._launchConfigurations.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeLifecycleHooks operation.
/// Gets information about the lifecycle hooks for the specified Auto Scaling group.
/// </summary>
public partial class DescribeLifecycleHooksRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _lifecycleHookNames = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property LifecycleHookNames.
/// <para>
/// The names of one or more lifecycle hooks. If you omit this property, all lifecycle
/// hooks are described.
/// </para>
/// </summary>
[AWSProperty(Max=50)]
public List<string> LifecycleHookNames
{
get { return this._lifecycleHookNames; }
set { this._lifecycleHookNames = value; }
}
// Check to see if LifecycleHookNames property is set
internal bool IsSetLifecycleHookNames()
{
return this._lifecycleHookNames != null && this._lifecycleHookNames.Count > 0;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeLifecycleHooks operation.
/// </summary>
public partial class DescribeLifecycleHooksResponse : AmazonWebServiceResponse
{
private List<LifecycleHook> _lifecycleHooks = new List<LifecycleHook>();
/// <summary>
/// Gets and sets the property LifecycleHooks.
/// <para>
/// The lifecycle hooks for the specified group.
/// </para>
/// </summary>
public List<LifecycleHook> LifecycleHooks
{
get { return this._lifecycleHooks; }
set { this._lifecycleHooks = value; }
}
// Check to see if LifecycleHooks property is set
internal bool IsSetLifecycleHooks()
{
return this._lifecycleHooks != null && this._lifecycleHooks.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeLifecycleHookTypes operation.
/// Describes the available types of lifecycle hooks.
///
///
/// <para>
/// The following hook types are supported:
/// </para>
/// <ul> <li>
/// <para>
/// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>autoscaling:EC2_INSTANCE_TERMINATING</code>
/// </para>
/// </li> </ul>
/// </summary>
public partial class DescribeLifecycleHookTypesRequest : AmazonAutoScalingRequest
{
}
}
| 53 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeLifecycleHookTypes operation.
/// </summary>
public partial class DescribeLifecycleHookTypesResponse : AmazonWebServiceResponse
{
private List<string> _lifecycleHookTypes = new List<string>();
/// <summary>
/// Gets and sets the property LifecycleHookTypes.
/// <para>
/// The lifecycle hook types.
/// </para>
/// </summary>
public List<string> LifecycleHookTypes
{
get { return this._lifecycleHookTypes; }
set { this._lifecycleHookTypes = value; }
}
// Check to see if LifecycleHookTypes property is set
internal bool IsSetLifecycleHookTypes()
{
return this._lifecycleHookTypes != null && this._lifecycleHookTypes.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeLoadBalancers operation.
/// <note>
/// <para>
/// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe
/// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code>
/// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>.
/// You can use both the original <code>DescribeLoadBalancers</code> API operation and
/// <code>DescribeTrafficSources</code> on the same Auto Scaling group.
/// </para>
/// </note>
/// <para>
/// Gets information about the load balancers for the specified Auto Scaling group.
/// </para>
///
/// <para>
/// This operation describes only Classic Load Balancers. If you have Application Load
/// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a>
/// API instead.
/// </para>
///
/// <para>
/// To determine the attachment status of the load balancer, use the <code>State</code>
/// element in the response. When you attach a load balancer to an Auto Scaling group,
/// the initial <code>State</code> value is <code>Adding</code>. The state transitions
/// to <code>Added</code> after all Auto Scaling instances are registered with the load
/// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling
/// group, the state transitions to <code>InService</code> after at least one Auto Scaling
/// instance passes the health check. When the load balancer is in the <code>InService</code>
/// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported
/// as unhealthy. If no registered instances pass the health checks, the load balancer
/// doesn't enter the <code>InService</code> state.
/// </para>
///
/// <para>
/// Load balancers also have an <code>InService</code> state if you attach them in the
/// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>,
/// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a>
/// and take any corrective actions necessary.
/// </para>
///
/// <para>
/// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting
/// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User
/// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use
/// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling
/// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeLoadBalancersRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>100</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 144 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeLoadBalancers operation.
/// </summary>
public partial class DescribeLoadBalancersResponse : AmazonWebServiceResponse
{
private List<LoadBalancerState> _loadBalancers = new List<LoadBalancerState>();
private string _nextToken;
/// <summary>
/// Gets and sets the property LoadBalancers.
/// <para>
/// The load balancers.
/// </para>
/// </summary>
public List<LoadBalancerState> LoadBalancers
{
get { return this._loadBalancers; }
set { this._loadBalancers = value; }
}
// Check to see if LoadBalancers property is set
internal bool IsSetLoadBalancers()
{
return this._loadBalancers != null && this._loadBalancers.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeLoadBalancerTargetGroups operation.
/// <note>
/// <para>
/// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe
/// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code>
/// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>.
/// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation
/// and <code>DescribeTrafficSources</code> on the same Auto Scaling group.
/// </para>
/// </note>
/// <para>
/// Gets information about the Elastic Load Balancing target groups for the specified
/// Auto Scaling group.
/// </para>
///
/// <para>
/// To determine the attachment status of the target group, use the <code>State</code>
/// element in the response. When you attach a target group to an Auto Scaling group,
/// the initial <code>State</code> value is <code>Adding</code>. The state transitions
/// to <code>Added</code> after all Auto Scaling instances are registered with the target
/// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group,
/// the state transitions to <code>InService</code> after at least one Auto Scaling instance
/// passes the health check. When the target group is in the <code>InService</code> state,
/// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported
/// as unhealthy. If no registered instances pass the health checks, the target group
/// doesn't enter the <code>InService</code> state.
/// </para>
///
/// <para>
/// Target groups also have an <code>InService</code> state if you attach them in the
/// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>,
/// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a>
/// and take any corrective actions necessary.
/// </para>
///
/// <para>
/// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting
/// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User
/// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use
/// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling
/// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>,
/// but not for target groups that were attached by using <a>AttachTrafficSources</a>.
/// </para>
/// </note>
/// </summary>
public partial class DescribeLoadBalancerTargetGroupsRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>100</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 145 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeLoadBalancerTargetGroups operation.
/// </summary>
public partial class DescribeLoadBalancerTargetGroupsResponse : AmazonWebServiceResponse
{
private List<LoadBalancerTargetGroupState> _loadBalancerTargetGroups = new List<LoadBalancerTargetGroupState>();
private string _nextToken;
/// <summary>
/// Gets and sets the property LoadBalancerTargetGroups.
/// <para>
/// Information about the target groups.
/// </para>
/// </summary>
public List<LoadBalancerTargetGroupState> LoadBalancerTargetGroups
{
get { return this._loadBalancerTargetGroups; }
set { this._loadBalancerTargetGroups = value; }
}
// Check to see if LoadBalancerTargetGroups property is set
internal bool IsSetLoadBalancerTargetGroups()
{
return this._loadBalancerTargetGroups != null && this._loadBalancerTargetGroups.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeMetricCollectionTypes operation.
/// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.
/// </summary>
public partial class DescribeMetricCollectionTypesRequest : AmazonAutoScalingRequest
{
}
}
| 39 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeMetricCollectionTypes operation.
/// </summary>
public partial class DescribeMetricCollectionTypesResponse : AmazonWebServiceResponse
{
private List<MetricGranularityType> _granularities = new List<MetricGranularityType>();
private List<MetricCollectionType> _metrics = new List<MetricCollectionType>();
/// <summary>
/// Gets and sets the property Granularities.
/// <para>
/// The granularities for the metrics.
/// </para>
/// </summary>
public List<MetricGranularityType> Granularities
{
get { return this._granularities; }
set { this._granularities = value; }
}
// Check to see if Granularities property is set
internal bool IsSetGranularities()
{
return this._granularities != null && this._granularities.Count > 0;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// The metrics.
/// </para>
/// </summary>
public List<MetricCollectionType> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
}
}
| 76 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeNotificationConfigurations operation.
/// Gets information about the Amazon SNS notifications that are configured for one or
/// more Auto Scaling groups.
/// </summary>
public partial class DescribeNotificationConfigurationsRequest : AmazonAutoScalingRequest
{
private List<string> _autoScalingGroupNames = new List<string>();
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingGroupNames.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
public List<string> AutoScalingGroupNames
{
get { return this._autoScalingGroupNames; }
set { this._autoScalingGroupNames = value; }
}
// Check to see if AutoScalingGroupNames property is set
internal bool IsSetAutoScalingGroupNames()
{
return this._autoScalingGroupNames != null && this._autoScalingGroupNames.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>50</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 99 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeNotificationConfigurations operation.
/// </summary>
public partial class DescribeNotificationConfigurationsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<NotificationConfiguration> _notificationConfigurations = new List<NotificationConfiguration>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property NotificationConfigurations.
/// <para>
/// The notification configurations.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<NotificationConfiguration> NotificationConfigurations
{
get { return this._notificationConfigurations; }
set { this._notificationConfigurations = value; }
}
// Check to see if NotificationConfigurations property is set
internal bool IsSetNotificationConfigurations()
{
return this._notificationConfigurations != null && this._notificationConfigurations.Count > 0;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribePolicies operation.
/// Gets information about the scaling policies in the account and Region.
/// </summary>
public partial class DescribePoliciesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private int? _maxRecords;
private string _nextToken;
private List<string> _policyNames = new List<string>();
private List<string> _policyTypes = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to be returned with each call. The default value is <code>50</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property PolicyNames.
/// <para>
/// The names of one or more policies. If you omit this property, all policies are described.
/// If a group name is provided, the results are limited to that group. If you specify
/// an unknown policy name, it is ignored with no error.
/// </para>
///
/// <para>
/// Array Members: Maximum number of 50 items.
/// </para>
/// </summary>
public List<string> PolicyNames
{
get { return this._policyNames; }
set { this._policyNames = value; }
}
// Check to see if PolicyNames property is set
internal bool IsSetPolicyNames()
{
return this._policyNames != null && this._policyNames.Count > 0;
}
/// <summary>
/// Gets and sets the property PolicyTypes.
/// <para>
/// One or more policy types. The valid values are <code>SimpleScaling</code>, <code>StepScaling</code>,
/// <code>TargetTrackingScaling</code>, and <code>PredictiveScaling</code>.
/// </para>
/// </summary>
public List<string> PolicyTypes
{
get { return this._policyTypes; }
set { this._policyTypes = value; }
}
// Check to see if PolicyTypes property is set
internal bool IsSetPolicyTypes()
{
return this._policyTypes != null && this._policyTypes.Count > 0;
}
}
}
| 144 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribePolicies operation.
/// </summary>
public partial class DescribePoliciesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ScalingPolicy> _scalingPolicies = new List<ScalingPolicy>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property ScalingPolicies.
/// <para>
/// The scaling policies.
/// </para>
/// </summary>
public List<ScalingPolicy> ScalingPolicies
{
get { return this._scalingPolicies; }
set { this._scalingPolicies = value; }
}
// Check to see if ScalingPolicies property is set
internal bool IsSetScalingPolicies()
{
return this._scalingPolicies != null && this._scalingPolicies.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeScalingActivities operation.
/// Gets information about the scaling activities in the account and Region.
///
///
/// <para>
/// When scaling events occur, you see a record of the scaling activity in the scaling
/// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying
/// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
///
/// <para>
/// If the scaling event succeeds, the value of the <code>StatusCode</code> element in
/// the response is <code>Successful</code>. If an attempt to launch instances failed,
/// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code>
/// and the <code>StatusMessage</code> element in the response indicates the cause of
/// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting
/// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeScalingActivitiesRequest : AmazonAutoScalingRequest
{
private List<string> _activityIds = new List<string>();
private string _autoScalingGroupName;
private bool? _includeDeletedGroups;
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property ActivityIds.
/// <para>
/// The activity IDs of the desired scaling activities. If you omit this property, all
/// activities for the past six weeks are described. If unknown activities are requested,
/// they are ignored with no error. If you specify an Auto Scaling group, the results
/// are limited to that group.
/// </para>
///
/// <para>
/// Array Members: Maximum number of 50 IDs.
/// </para>
/// </summary>
public List<string> ActivityIds
{
get { return this._activityIds; }
set { this._activityIds = value; }
}
// Check to see if ActivityIds property is set
internal bool IsSetActivityIds()
{
return this._activityIds != null && this._activityIds.Count > 0;
}
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property IncludeDeletedGroups.
/// <para>
/// Indicates whether to include scaling activity from deleted Auto Scaling groups.
/// </para>
/// </summary>
public bool IncludeDeletedGroups
{
get { return this._includeDeletedGroups.GetValueOrDefault(); }
set { this._includeDeletedGroups = value; }
}
// Check to see if IncludeDeletedGroups property is set
internal bool IsSetIncludeDeletedGroups()
{
return this._includeDeletedGroups.HasValue;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>100</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 161 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeScalingActivities operation.
/// </summary>
public partial class DescribeScalingActivitiesResponse : AmazonWebServiceResponse
{
private List<Activity> _activities = new List<Activity>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Activities.
/// <para>
/// The scaling activities. Activities are sorted by start time. Activities still in progress
/// are described first.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Activity> Activities
{
get { return this._activities; }
set { this._activities = value; }
}
// Check to see if Activities property is set
internal bool IsSetActivities()
{
return this._activities != null && this._activities.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeScalingProcessTypes operation.
/// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a>
/// APIs.
/// </summary>
public partial class DescribeScalingProcessTypesRequest : AmazonAutoScalingRequest
{
}
}
| 40 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeScalingProcessTypes operation.
/// </summary>
public partial class DescribeScalingProcessTypesResponse : AmazonWebServiceResponse
{
private List<ProcessType> _processes = new List<ProcessType>();
/// <summary>
/// Gets and sets the property Processes.
/// <para>
/// The names of the process types.
/// </para>
/// </summary>
public List<ProcessType> Processes
{
get { return this._processes; }
set { this._processes = value; }
}
// Check to see if Processes property is set
internal bool IsSetProcesses()
{
return this._processes != null && this._processes.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeScheduledActions operation.
/// Gets information about the scheduled actions that haven't run or that have not reached
/// their end time.
///
///
/// <para>
/// To describe the scaling activities for scheduled actions that have already run, call
/// the <a>DescribeScalingActivities</a> API.
/// </para>
/// </summary>
public partial class DescribeScheduledActionsRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private DateTime? _endTimeUtc;
private int? _maxRecords;
private string _nextToken;
private List<string> _scheduledActionNames = new List<string>();
private DateTime? _startTimeUtc;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// The latest scheduled start time to return. If scheduled action names are provided,
/// this property is ignored.
/// </para>
/// </summary>
public DateTime EndTimeUtc
{
get { return this._endTimeUtc.GetValueOrDefault(); }
set { this._endTime = this._endTimeUtc = value; }
}
// Check to see if EndTimeUtc property is set
internal bool IsSetEndTimeUtc()
{
return this._endTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>50</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionNames.
/// <para>
/// The names of one or more scheduled actions. If you omit this property, all scheduled
/// actions are described. If you specify an unknown scheduled action, it is ignored with
/// no error.
/// </para>
///
/// <para>
/// Array Members: Maximum number of 50 actions.
/// </para>
/// </summary>
public List<string> ScheduledActionNames
{
get { return this._scheduledActionNames; }
set { this._scheduledActionNames = value; }
}
// Check to see if ScheduledActionNames property is set
internal bool IsSetScheduledActionNames()
{
return this._scheduledActionNames != null && this._scheduledActionNames.Count > 0;
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// The earliest scheduled start time to return. If scheduled action names are provided,
/// this property is ignored.
/// </para>
/// </summary>
public DateTime StartTimeUtc
{
get { return this._startTimeUtc.GetValueOrDefault(); }
set { this._startTime = this._startTimeUtc = value; }
}
// Check to see if StartTimeUtc property is set
internal bool IsSetStartTimeUtc()
{
return this._startTimeUtc.HasValue;
}
#region Backwards compatible properties
private DateTime? _endTime;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc
/// results in both EndTime and EndTimeUtc being assigned, the latest assignment to either
/// one of the two property is reflected in the value of both. EndTime is provided for
/// backwards compatibility only and assigning a non-Utc DateTime to it results in the
/// wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The latest scheduled start time to return. If scheduled action names are provided,
/// this property is ignored.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc results in both EndTime and " +
"EndTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. EndTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set
{
this._endTime = value;
this._endTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use StartTimeUtc instead. Setting either StartTime or
/// StartTimeUtc results in both StartTime and StartTimeUtc being assigned, the latest
/// assignment to either one of the two property is reflected in the value of both. StartTime
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
/// results in the wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The earliest scheduled start time to return. If scheduled action names are provided,
/// this property is ignored.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use StartTimeUtc instead. Setting either StartTime or StartTimeUtc results in both StartTime and " +
"StartTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. StartTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set
{
this._startTime = value;
this._startTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
#endregion
}
}
| 236 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeScheduledActions operation.
/// </summary>
public partial class DescribeScheduledActionsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ScheduledUpdateGroupAction> _scheduledUpdateGroupActions = new List<ScheduledUpdateGroupAction>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property ScheduledUpdateGroupActions.
/// <para>
/// The scheduled actions.
/// </para>
/// </summary>
public List<ScheduledUpdateGroupAction> ScheduledUpdateGroupActions
{
get { return this._scheduledUpdateGroupActions; }
set { this._scheduledUpdateGroupActions = value; }
}
// Check to see if ScheduledUpdateGroupActions property is set
internal bool IsSetScheduledUpdateGroupActions()
{
return this._scheduledUpdateGroupActions != null && this._scheduledUpdateGroupActions.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeTags operation.
/// Describes the specified tags.
///
///
/// <para>
/// You can use filters to limit the results. For example, you can query for the tags
/// for a specific Auto Scaling group. You can specify multiple values for a filter. A
/// tag must match at least one of the specified values for it to be included in the results.
/// </para>
///
/// <para>
/// You can also specify multiple filters. The result includes information for a particular
/// tag only if it matches all the filters. If there's no match, no special message is
/// returned.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag
/// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeTagsRequest : AmazonAutoScalingRequest
{
private List<Filter> _filters = new List<Filter>();
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property Filters.
/// <para>
/// One or more filters to scope the tags to return. The maximum number of filters per
/// filter type (for example, <code>auto-scaling-group</code>) is 1000.
/// </para>
/// </summary>
public List<Filter> Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The default value is <code>50</code>
/// and the maximum value is <code>100</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeTags operation.
/// </summary>
public partial class DescribeTagsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<TagDescription> _tags = new List<TagDescription>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A string that indicates that the response contains more items than can be returned
/// in a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// One or more tags.
/// </para>
/// </summary>
public List<TagDescription> 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;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeTerminationPolicyTypes operation.
/// Describes the termination policies supported by Amazon EC2 Auto Scaling.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-termination-policies.html">Work
/// with Amazon EC2 Auto Scaling termination policies</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeTerminationPolicyTypesRequest : AmazonAutoScalingRequest
{
}
}
| 46 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeTerminationPolicyTypes operation.
/// </summary>
public partial class DescribeTerminationPolicyTypesResponse : AmazonWebServiceResponse
{
private List<string> _terminationPolicyTypes = new List<string>();
/// <summary>
/// Gets and sets the property TerminationPolicyTypes.
/// <para>
/// The termination policies supported by Amazon EC2 Auto Scaling: <code>OldestInstance</code>,
/// <code>OldestLaunchConfiguration</code>, <code>NewestInstance</code>, <code>ClosestToNextInstanceHour</code>,
/// <code>Default</code>, <code>OldestLaunchTemplate</code>, and <code>AllocationStrategy</code>.
/// </para>
/// </summary>
public List<string> TerminationPolicyTypes
{
get { return this._terminationPolicyTypes; }
set { this._terminationPolicyTypes = value; }
}
// Check to see if TerminationPolicyTypes property is set
internal bool IsSetTerminationPolicyTypes()
{
return this._terminationPolicyTypes != null && this._terminationPolicyTypes.Count > 0;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeTrafficSources operation.
/// Gets information about the traffic sources for the specified Auto Scaling group.
///
///
/// <para>
/// You can optionally provide a traffic source type. If you provide a traffic source
/// type, then the results only include that traffic source type.
/// </para>
///
/// <para>
/// If you do not provide a traffic source type, then the results include all the traffic
/// sources for the specified Auto Scaling group.
/// </para>
/// </summary>
public partial class DescribeTrafficSourcesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private int? _maxRecords;
private string _nextToken;
private string _trafficSourceType;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of items to return with this call. The maximum value is <code>50</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. (You received this token from a previous
/// call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property TrafficSourceType.
/// <para>
/// The traffic source type that you want to describe.
/// </para>
///
/// <para>
/// The following lists the valid values:
/// </para>
/// <ul> <li>
/// <para>
/// <code>elb</code> if the traffic source is a Classic Load Balancer.
/// </para>
/// </li> <li>
/// <para>
/// <code>elbv2</code> if the traffic source is a Application Load Balancer, Gateway
/// Load Balancer, or Network Load Balancer.
/// </para>
/// </li> <li>
/// <para>
/// <code>vpc-lattice</code> if the traffic source is VPC Lattice.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string TrafficSourceType
{
get { return this._trafficSourceType; }
set { this._trafficSourceType = value; }
}
// Check to see if TrafficSourceType property is set
internal bool IsSetTrafficSourceType()
{
return this._trafficSourceType != null;
}
}
}
| 147 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeTrafficSources operation.
/// </summary>
public partial class DescribeTrafficSourcesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<TrafficSourceState> _trafficSources = new List<TrafficSourceState>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// This string indicates that the response contains more items than can be returned in
/// a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property TrafficSources.
/// <para>
/// Information about the traffic sources.
/// </para>
/// </summary>
public List<TrafficSourceState> TrafficSources
{
get { return this._trafficSources; }
set { this._trafficSources = value; }
}
// Check to see if TrafficSources property is set
internal bool IsSetTrafficSources()
{
return this._trafficSources != null && this._trafficSources.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeWarmPool operation.
/// Gets information about a warm pool and its instances.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm
/// pools for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeWarmPoolRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private int? _maxRecords;
private string _nextToken;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of instances to return with this call. The maximum value is <code>50</code>.
/// </para>
/// </summary>
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of instances to return. (You received this token from a
/// previous call.)
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeWarmPool operation.
/// </summary>
public partial class DescribeWarmPoolResponse : AmazonWebServiceResponse
{
private List<Instance> _instances = new List<Instance>();
private string _nextToken;
private WarmPoolConfiguration _warmPoolConfiguration;
/// <summary>
/// Gets and sets the property Instances.
/// <para>
/// The instances that are currently in the warm pool.
/// </para>
/// </summary>
public List<Instance> Instances
{
get { return this._instances; }
set { this._instances = value; }
}
// Check to see if Instances property is set
internal bool IsSetInstances()
{
return this._instances != null && this._instances.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// This string indicates that the response contains more items than can be returned in
/// a single response. To receive additional items, specify this string for the <code>NextToken</code>
/// value when requesting the next set of items. This value is null when there are no
/// more items to return.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property WarmPoolConfiguration.
/// <para>
/// The warm pool configuration details.
/// </para>
/// </summary>
public WarmPoolConfiguration WarmPoolConfiguration
{
get { return this._warmPoolConfiguration; }
set { this._warmPoolConfiguration = value; }
}
// Check to see if WarmPoolConfiguration property is set
internal bool IsSetWarmPoolConfiguration()
{
return this._warmPoolConfiguration != null;
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes the desired configuration for an instance refresh.
///
///
/// <para>
/// If you specify a desired configuration, you must specify either a <code>LaunchTemplate</code>
/// or a <code>MixedInstancesPolicy</code>.
/// </para>
/// </summary>
public partial class DesiredConfiguration
{
private LaunchTemplateSpecification _launchTemplate;
private MixedInstancesPolicy _mixedInstancesPolicy;
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// Describes the launch template and the version of the launch template that Amazon EC2
/// Auto Scaling uses to launch Amazon EC2 instances. For more information about launch
/// templates, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html">Launch
/// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public LaunchTemplateSpecification LaunchTemplate
{
get { return this._launchTemplate; }
set { this._launchTemplate = value; }
}
// Check to see if LaunchTemplate property is set
internal bool IsSetLaunchTemplate()
{
return this._launchTemplate != null;
}
/// <summary>
/// Gets and sets the property MixedInstancesPolicy.
/// <para>
/// Use this structure to launch multiple instance types and On-Demand Instances and Spot
/// Instances within a single Auto Scaling group.
/// </para>
///
/// <para>
/// A mixed instances policy contains information that Amazon EC2 Auto Scaling can use
/// to launch instances and help optimize your costs. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto
/// Scaling groups with multiple instance types and purchase options</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public MixedInstancesPolicy MixedInstancesPolicy
{
get { return this._mixedInstancesPolicy; }
set { this._mixedInstancesPolicy = value; }
}
// Check to see if MixedInstancesPolicy property is set
internal bool IsSetMixedInstancesPolicy()
{
return this._mixedInstancesPolicy != null;
}
}
}
| 93 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DetachInstances operation.
/// Removes one or more instances from the specified Auto Scaling group.
///
///
/// <para>
/// After the instances are detached, you can manage them independent of the Auto Scaling
/// group.
/// </para>
///
/// <para>
/// If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto
/// Scaling launches instances to replace the ones that are detached.
/// </para>
///
/// <para>
/// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances
/// are deregistered from the load balancer. If there are target groups attached to the
/// Auto Scaling group, the instances are deregistered from the target groups.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach
/// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User
/// Guide</i>.
/// </para>
/// </summary>
public partial class DetachInstancesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _instanceIds = new List<string>();
private bool? _shouldDecrementDesiredCapacity;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceIds.
/// <para>
/// The IDs of the instances. You can specify up to 20 instances.
/// </para>
/// </summary>
public List<string> InstanceIds
{
get { return this._instanceIds; }
set { this._instanceIds = value; }
}
// Check to see if InstanceIds property is set
internal bool IsSetInstanceIds()
{
return this._instanceIds != null && this._instanceIds.Count > 0;
}
/// <summary>
/// Gets and sets the property ShouldDecrementDesiredCapacity.
/// <para>
/// Indicates whether the Auto Scaling group decrements the desired capacity value by
/// the number of instances detached.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public bool ShouldDecrementDesiredCapacity
{
get { return this._shouldDecrementDesiredCapacity.GetValueOrDefault(); }
set { this._shouldDecrementDesiredCapacity = value; }
}
// Check to see if ShouldDecrementDesiredCapacity property is set
internal bool IsSetShouldDecrementDesiredCapacity()
{
return this._shouldDecrementDesiredCapacity.HasValue;
}
}
}
| 122 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DetachInstances operation.
/// </summary>
public partial class DetachInstancesResponse : AmazonWebServiceResponse
{
private List<Activity> _activities = new List<Activity>();
/// <summary>
/// Gets and sets the property Activities.
/// <para>
/// The activities related to detaching the instances from the Auto Scaling group.
/// </para>
/// </summary>
public List<Activity> Activities
{
get { return this._activities; }
set { this._activities = value; }
}
// Check to see if Activities property is set
internal bool IsSetActivities()
{
return this._activities != null && this._activities.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DetachLoadBalancers operation.
/// <note>
/// <para>
/// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach
/// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code>
/// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>.
/// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code>
/// on the same Auto Scaling group.
/// </para>
/// </note>
/// <para>
/// Detaches one or more Classic Load Balancers from the specified Auto Scaling group.
/// </para>
///
/// <para>
/// This operation detaches only Classic Load Balancers. If you have Application Load
/// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a>
/// API instead.
/// </para>
///
/// <para>
/// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering
/// the instances in the group. When all instances are deregistered, then you can no longer
/// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances
/// remain running.
/// </para>
/// </summary>
public partial class DetachLoadBalancersRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _loadBalancerNames = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property LoadBalancerNames.
/// <para>
/// The names of the load balancers. You can specify up to 10 load balancers.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> LoadBalancerNames
{
get { return this._loadBalancerNames; }
set { this._loadBalancerNames = value; }
}
// Check to see if LoadBalancerNames property is set
internal bool IsSetLoadBalancerNames()
{
return this._loadBalancerNames != null && this._loadBalancerNames.Count > 0;
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DetachLoadBalancers operation.
/// </summary>
public partial class DetachLoadBalancersResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DetachLoadBalancerTargetGroups operation.
/// <note>
/// <para>
/// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach
/// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code>
/// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>.
/// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation
/// and <code>DetachTrafficSources</code> on the same Auto Scaling group.
/// </para>
/// </note>
/// <para>
/// Detaches one or more target groups from the specified Auto Scaling group.
/// </para>
///
/// <para>
/// When you detach a target group, it enters the <code>Removing</code> state while deregistering
/// the instances in the group. When all instances are deregistered, then you can no longer
/// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call.
/// The instances remain running.
/// </para>
/// <note>
/// <para>
/// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>,
/// but not for target groups that were attached by using <a>AttachTrafficSources</a>.
/// </para>
/// </note>
/// </summary>
public partial class DetachLoadBalancerTargetGroupsRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _targetGroupARNs = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property TargetGroupARNs.
/// <para>
/// The Amazon Resource Names (ARN) of the target groups. You can specify up to 10 target
/// groups.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> TargetGroupARNs
{
get { return this._targetGroupARNs; }
set { this._targetGroupARNs = value; }
}
// Check to see if TargetGroupARNs property is set
internal bool IsSetTargetGroupARNs()
{
return this._targetGroupARNs != null && this._targetGroupARNs.Count > 0;
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DetachLoadBalancerTargetGroups operation.
/// </summary>
public partial class DetachLoadBalancerTargetGroupsResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DetachTrafficSources operation.
/// Detaches one or more traffic sources from the specified Auto Scaling group.
///
///
/// <para>
/// When you detach a taffic, it enters the <code>Removing</code> state while deregistering
/// the instances in the group. When all instances are deregistered, then you can no longer
/// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The
/// instances continue to run.
/// </para>
/// </summary>
public partial class DetachTrafficSourcesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<TrafficSourceIdentifier> _trafficSources = new List<TrafficSourceIdentifier>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property TrafficSources.
/// <para>
/// The unique identifiers of one or more traffic sources. You can specify up to 10 traffic
/// sources.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<TrafficSourceIdentifier> TrafficSources
{
get { return this._trafficSources; }
set { this._trafficSources = value; }
}
// Check to see if TrafficSources property is set
internal bool IsSetTrafficSources()
{
return this._trafficSources != null && this._trafficSources.Count > 0;
}
}
}
| 88 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DetachTrafficSources operation.
/// </summary>
public partial class DetachTrafficSourcesResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DisableMetricsCollection operation.
/// Disables group metrics collection for the specified Auto Scaling group.
/// </summary>
public partial class DisableMetricsCollectionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _metrics = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// Identifies the metrics to disable.
/// </para>
///
/// <para>
/// You can specify one or more of the following metrics:
/// </para>
/// <ul> <li>
/// <para>
/// <code>GroupMinSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupMaxSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolWarmedCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolTotalCapacity</code>
/// </para>
/// </li> </ul>
/// <para>
/// If you omit this property, all metrics are disabled.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html#as-group-metrics">Auto
/// Scaling group metrics</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public List<string> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
}
}
| 171 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DisableMetricsCollection operation.
/// </summary>
public partial class DisableMetricsCollectionResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes information used to set up an Amazon EBS volume specified in a block device
/// mapping.
/// </summary>
public partial class Ebs
{
private bool? _deleteOnTermination;
private bool? _encrypted;
private int? _iops;
private string _snapshotId;
private int? _throughput;
private int? _volumeSize;
private string _volumeType;
/// <summary>
/// Gets and sets the property DeleteOnTermination.
/// <para>
/// Indicates whether the volume is deleted on instance termination. For Amazon EC2 Auto
/// Scaling, the default value is <code>true</code>.
/// </para>
/// </summary>
public bool DeleteOnTermination
{
get { return this._deleteOnTermination.GetValueOrDefault(); }
set { this._deleteOnTermination = value; }
}
// Check to see if DeleteOnTermination property is set
internal bool IsSetDeleteOnTermination()
{
return this._deleteOnTermination.HasValue;
}
/// <summary>
/// Gets and sets the property Encrypted.
/// <para>
/// Specifies whether the volume should be encrypted. Encrypted EBS volumes can only be
/// attached to instances that support Amazon EBS encryption. For more information, see
/// <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances">Supported
/// instance types</a>. If your AMI uses encrypted volumes, you can also only launch it
/// on supported instance types.
/// </para>
/// <note>
/// <para>
/// If you are creating a volume from a snapshot, you cannot create an unencrypted volume
/// from an encrypted snapshot. Also, you cannot specify a KMS key ID when using a launch
/// configuration.
/// </para>
///
/// <para>
/// If you enable encryption by default, the EBS volumes that you create are always encrypted,
/// either using the Amazon Web Services managed KMS key or a customer-managed KMS key,
/// regardless of whether the snapshot was encrypted.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-data-protection.html#encryption">Use
/// Amazon Web Services KMS keys to encrypt Amazon EBS volumes</a> in the <i>Amazon EC2
/// Auto Scaling User Guide</i>.
/// </para>
/// </note>
/// </summary>
public bool Encrypted
{
get { return this._encrypted.GetValueOrDefault(); }
set { this._encrypted = value; }
}
// Check to see if Encrypted property is set
internal bool IsSetEncrypted()
{
return this._encrypted.HasValue;
}
/// <summary>
/// Gets and sets the property Iops.
/// <para>
/// The number of input/output (I/O) operations per second (IOPS) to provision for the
/// volume. For <code>gp3</code> and <code>io1</code> volumes, this represents the number
/// of IOPS that are provisioned for the volume. For <code>gp2</code> volumes, this represents
/// the baseline performance of the volume and the rate at which the volume accumulates
/// I/O credits for bursting.
/// </para>
///
/// <para>
/// The following are the supported values for each volume type:
/// </para>
/// <ul> <li>
/// <para>
/// <code>gp3</code>: 3,000-16,000 IOPS
/// </para>
/// </li> <li>
/// <para>
/// <code>io1</code>: 100-64,000 IOPS
/// </para>
/// </li> </ul>
/// <para>
/// For <code>io1</code> volumes, we guarantee 64,000 IOPS only for <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances">Instances
/// built on the Nitro System</a>. Other instance families guarantee performance up to
/// 32,000 IOPS.
/// </para>
///
/// <para>
/// <code>Iops</code> is supported when the volume type is <code>gp3</code> or <code>io1</code>
/// and required only when the volume type is <code>io1</code>. (Not used with <code>standard</code>,
/// <code>gp2</code>, <code>st1</code>, or <code>sc1</code> volumes.)
/// </para>
/// </summary>
[AWSProperty(Min=100, Max=20000)]
public int Iops
{
get { return this._iops.GetValueOrDefault(); }
set { this._iops = value; }
}
// Check to see if Iops property is set
internal bool IsSetIops()
{
return this._iops.HasValue;
}
/// <summary>
/// Gets and sets the property SnapshotId.
/// <para>
/// The snapshot ID of the volume to use.
/// </para>
///
/// <para>
/// You must specify either a <code>VolumeSize</code> or a <code>SnapshotId</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string SnapshotId
{
get { return this._snapshotId; }
set { this._snapshotId = value; }
}
// Check to see if SnapshotId property is set
internal bool IsSetSnapshotId()
{
return this._snapshotId != null;
}
/// <summary>
/// Gets and sets the property Throughput.
/// <para>
/// The throughput (MiBps) to provision for a <code>gp3</code> volume.
/// </para>
/// </summary>
[AWSProperty(Min=125, Max=1000)]
public int Throughput
{
get { return this._throughput.GetValueOrDefault(); }
set { this._throughput = value; }
}
// Check to see if Throughput property is set
internal bool IsSetThroughput()
{
return this._throughput.HasValue;
}
/// <summary>
/// Gets and sets the property VolumeSize.
/// <para>
/// The volume size, in GiBs. The following are the supported volumes sizes for each volume
/// type:
/// </para>
/// <ul> <li>
/// <para>
/// <code>gp2</code> and <code>gp3</code>: 1-16,384
/// </para>
/// </li> <li>
/// <para>
/// <code>io1</code>: 4-16,384
/// </para>
/// </li> <li>
/// <para>
/// <code>st1</code> and <code>sc1</code>: 125-16,384
/// </para>
/// </li> <li>
/// <para>
/// <code>standard</code>: 1-1,024
/// </para>
/// </li> </ul>
/// <para>
/// You must specify either a <code>SnapshotId</code> or a <code>VolumeSize</code>. If
/// you specify both <code>SnapshotId</code> and <code>VolumeSize</code>, the volume size
/// must be equal or greater than the size of the snapshot.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=16384)]
public int VolumeSize
{
get { return this._volumeSize.GetValueOrDefault(); }
set { this._volumeSize = value; }
}
// Check to see if VolumeSize property is set
internal bool IsSetVolumeSize()
{
return this._volumeSize.HasValue;
}
/// <summary>
/// Gets and sets the property VolumeType.
/// <para>
/// The volume type. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html">Amazon
/// EBS volume types</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
///
/// <para>
/// Valid values: <code>standard</code> | <code>io1</code> | <code>gp2</code> | <code>st1</code>
/// | <code>sc1</code> | <code>gp3</code>
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string VolumeType
{
get { return this._volumeType; }
set { this._volumeType = value; }
}
// Check to see if VolumeType property is set
internal bool IsSetVolumeType()
{
return this._volumeType != null;
}
}
}
| 262 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an enabled Auto Scaling group metric.
/// </summary>
public partial class EnabledMetric
{
private string _granularity;
private string _metric;
/// <summary>
/// Gets and sets the property Granularity.
/// <para>
/// The granularity of the metric. The only valid value is <code>1Minute</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Granularity
{
get { return this._granularity; }
set { this._granularity = value; }
}
// Check to see if Granularity property is set
internal bool IsSetGranularity()
{
return this._granularity != null;
}
/// <summary>
/// Gets and sets the property Metric.
/// <para>
/// One of the following metrics:
/// </para>
/// <ul> <li>
/// <para>
/// <code>GroupMinSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupMaxSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolWarmedCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolTotalCapacity</code>
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html#as-group-metrics">Auto
/// Scaling group metrics</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Metric
{
get { return this._metric; }
set { this._metric = value; }
}
// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}
}
}
| 163 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the EnableMetricsCollection operation.
/// Enables group metrics collection for the specified Auto Scaling group.
///
///
/// <para>
/// You can use these metrics to track changes in an Auto Scaling group and to set alarms
/// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling
/// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor
/// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class EnableMetricsCollectionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _granularity;
private List<string> _metrics = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property Granularity.
/// <para>
/// The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch.
/// The only valid value is <code>1Minute</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Granularity
{
get { return this._granularity; }
set { this._granularity = value; }
}
// Check to see if Granularity property is set
internal bool IsSetGranularity()
{
return this._granularity != null;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// Identifies the metrics to enable.
/// </para>
///
/// <para>
/// You can specify one or more of the following metrics:
/// </para>
/// <ul> <li>
/// <para>
/// <code>GroupMinSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupMaxSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolWarmedCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolTotalCapacity</code>
/// </para>
/// </li> </ul>
/// <para>
/// If you specify <code>Granularity</code> and don't specify any metrics, all metrics
/// are enabled.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html#as-group-metrics">Auto
/// Scaling group metrics</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public List<string> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
}
}
| 202 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the EnableMetricsCollection operation.
/// </summary>
public partial class EnableMetricsCollectionResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the EnterStandby operation.
/// Moves the specified instances into the standby state.
///
///
/// <para>
/// If you choose to decrement the desired capacity of the Auto Scaling group, the instances
/// can enter standby as long as the desired capacity of the Auto Scaling group after
/// the instances are placed into standby is equal to or greater than the minimum capacity
/// of the group.
/// </para>
///
/// <para>
/// If you choose not to decrement the desired capacity of the Auto Scaling group, the
/// Auto Scaling group launches new instances to replace the instances on standby.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily
/// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
public partial class EnterStandbyRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _instanceIds = new List<string>();
private bool? _shouldDecrementDesiredCapacity;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceIds.
/// <para>
/// The IDs of the instances. You can specify up to 20 instances.
/// </para>
/// </summary>
public List<string> InstanceIds
{
get { return this._instanceIds; }
set { this._instanceIds = value; }
}
// Check to see if InstanceIds property is set
internal bool IsSetInstanceIds()
{
return this._instanceIds != null && this._instanceIds.Count > 0;
}
/// <summary>
/// Gets and sets the property ShouldDecrementDesiredCapacity.
/// <para>
/// Indicates whether to decrement the desired capacity of the Auto Scaling group by the
/// number of instances moved to <code>Standby</code> mode.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public bool ShouldDecrementDesiredCapacity
{
get { return this._shouldDecrementDesiredCapacity.GetValueOrDefault(); }
set { this._shouldDecrementDesiredCapacity = value; }
}
// Check to see if ShouldDecrementDesiredCapacity property is set
internal bool IsSetShouldDecrementDesiredCapacity()
{
return this._shouldDecrementDesiredCapacity.HasValue;
}
}
}
| 118 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the EnterStandby operation.
/// </summary>
public partial class EnterStandbyResponse : AmazonWebServiceResponse
{
private List<Activity> _activities = new List<Activity>();
/// <summary>
/// Gets and sets the property Activities.
/// <para>
/// The activities related to moving instances into <code>Standby</code> mode.
/// </para>
/// </summary>
public List<Activity> Activities
{
get { return this._activities; }
set { this._activities = value; }
}
// Check to see if Activities property is set
internal bool IsSetActivities()
{
return this._activities != null && this._activities.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the ExecutePolicy operation.
/// Executes the specified policy. This can be useful for testing the design of your scaling
/// policy.
/// </summary>
public partial class ExecutePolicyRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private double? _breachThreshold;
private bool? _honorCooldown;
private double? _metricValue;
private string _policyName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property BreachThreshold.
/// <para>
/// The breach threshold for the alarm.
/// </para>
///
/// <para>
/// Required if the policy type is <code>StepScaling</code> and not supported otherwise.
/// </para>
/// </summary>
public double BreachThreshold
{
get { return this._breachThreshold.GetValueOrDefault(); }
set { this._breachThreshold = value; }
}
// Check to see if BreachThreshold property is set
internal bool IsSetBreachThreshold()
{
return this._breachThreshold.HasValue;
}
/// <summary>
/// Gets and sets the property HonorCooldown.
/// <para>
/// Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete
/// before executing the policy.
/// </para>
///
/// <para>
/// Valid only if the policy type is <code>SimpleScaling</code>. For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html">Scaling
/// cooldowns for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public bool HonorCooldown
{
get { return this._honorCooldown.GetValueOrDefault(); }
set { this._honorCooldown = value; }
}
// Check to see if HonorCooldown property is set
internal bool IsSetHonorCooldown()
{
return this._honorCooldown.HasValue;
}
/// <summary>
/// Gets and sets the property MetricValue.
/// <para>
/// The metric value to compare to <code>BreachThreshold</code>. This enables you to execute
/// a policy of type <code>StepScaling</code> and determine which step adjustment to use.
/// For example, if the breach threshold is 50 and you want to use a step adjustment with
/// a lower bound of 0 and an upper bound of 10, you can set the metric value to 59.
/// </para>
///
/// <para>
/// If you specify a metric value that doesn't correspond to a step adjustment for the
/// policy, the call returns an error.
/// </para>
///
/// <para>
/// Required if the policy type is <code>StepScaling</code> and not supported otherwise.
/// </para>
/// </summary>
public double MetricValue
{
get { return this._metricValue.GetValueOrDefault(); }
set { this._metricValue = value; }
}
// Check to see if MetricValue property is set
internal bool IsSetMetricValue()
{
return this._metricValue.HasValue;
}
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name or ARN of the policy.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string PolicyName
{
get { return this._policyName; }
set { this._policyName = value; }
}
// Check to see if PolicyName property is set
internal bool IsSetPolicyName()
{
return this._policyName != null;
}
}
}
| 160 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the ExecutePolicy operation.
/// </summary>
public partial class ExecutePolicyResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the ExitStandby operation.
/// Moves the specified instances out of the standby state.
///
///
/// <para>
/// After you put the instances back in service, the desired capacity is incremented.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily
/// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
public partial class ExitStandbyRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _instanceIds = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceIds.
/// <para>
/// The IDs of the instances. You can specify up to 20 instances.
/// </para>
/// </summary>
public List<string> InstanceIds
{
get { return this._instanceIds; }
set { this._instanceIds = value; }
}
// Check to see if InstanceIds property is set
internal bool IsSetInstanceIds()
{
return this._instanceIds != null && this._instanceIds.Count > 0;
}
}
}
| 89 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the ExitStandby operation.
/// </summary>
public partial class ExitStandbyResponse : AmazonWebServiceResponse
{
private List<Activity> _activities = new List<Activity>();
/// <summary>
/// Gets and sets the property Activities.
/// <para>
/// The activities related to moving instances out of <code>Standby</code> mode.
/// </para>
/// </summary>
public List<Activity> Activities
{
get { return this._activities; }
set { this._activities = value; }
}
// Check to see if Activities property is set
internal bool IsSetActivities()
{
return this._activities != null && this._activities.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a scheduled action that could not be created, updated, or deleted.
/// </summary>
public partial class FailedScheduledUpdateGroupActionRequest
{
private string _errorCode;
private string _errorMessage;
private string _scheduledActionName;
/// <summary>
/// Gets and sets the property ErrorCode.
/// <para>
/// The error code.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
/// <summary>
/// Gets and sets the property ErrorMessage.
/// <para>
/// The error message accompanying the error code.
/// </para>
/// </summary>
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of the scheduled action.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ScheduledActionName
{
get { return this._scheduledActionName; }
set { this._scheduledActionName = value; }
}
// Check to see if ScheduledActionName property is set
internal bool IsSetScheduledActionName()
{
return this._scheduledActionName != null;
}
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a filter that is used to return a more specific list of results from a describe
/// operation.
///
///
/// <para>
/// If you specify multiple filters, the filters are automatically logically joined with
/// an <code>AND</code>, and the request returns only the results that match all of the
/// specified filters.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag
/// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class Filter
{
private string _name;
private List<string> _values = new List<string>();
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the filter.
/// </para>
///
/// <para>
/// The valid values for <code>Name</code> depend on which API operation you're using
/// with the filter (<a>DescribeAutoScalingGroups</a> or <a>DescribeTags</a>).
/// </para>
///
/// <para>
/// <b>DescribeAutoScalingGroups</b>
/// </para>
///
/// <para>
/// Valid values for <code>Name</code> include the following:
/// </para>
/// <ul> <li>
/// <para>
/// <code>tag-key</code> - Accepts tag keys. The results only include information about
/// the Auto Scaling groups associated with these tag keys.
/// </para>
/// </li> <li>
/// <para>
/// <code>tag-value</code> - Accepts tag values. The results only include information
/// about the Auto Scaling groups associated with these tag values.
/// </para>
/// </li> <li>
/// <para>
/// <code>tag:<key></code> - Accepts the key/value combination of the tag. Use
/// the tag key in the filter name and the tag value as the filter value. The results
/// only include information about the Auto Scaling groups associated with the specified
/// key/value combination.
/// </para>
/// </li> </ul>
/// <para>
/// <b>DescribeTags</b>
/// </para>
///
/// <para>
/// Valid values for <code>Name</code> include the following:
/// </para>
/// <ul> <li>
/// <para>
/// <code>auto-scaling-group</code> - Accepts the names of Auto Scaling groups. The results
/// only include information about the tags associated with these Auto Scaling groups.
///
/// </para>
/// </li> <li>
/// <para>
/// <code>key</code> - Accepts tag keys. The results only include information about the
/// tags associated with these tag keys.
/// </para>
/// </li> <li>
/// <para>
/// <code>value</code> - Accepts tag values. The results only include information about
/// the tags associated with these tag values.
/// </para>
/// </li> <li>
/// <para>
/// <code>propagate-at-launch</code> - Accepts a Boolean value, which specifies whether
/// tags propagate to instances at launch. The results only include information about
/// the tags associated with the specified Boolean value.
/// </para>
/// </li> </ul>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property Values.
/// <para>
/// One or more filter values. Filter values are case-sensitive.
/// </para>
///
/// <para>
/// If you specify multiple values for a filter, the values are automatically logically
/// joined with an <code>OR</code>, and the request returns all results that match any
/// of the specified values. For example, specify "tag:environment" for the filter name
/// and "production,development" for the filter values to find Auto Scaling groups with
/// the tag "environment=production" or "environment=development".
/// </para>
/// </summary>
public List<string> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
}
}
| 158 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the GetPredictiveScalingForecast operation.
/// Retrieves the forecast data for a predictive scaling policy.
///
///
/// <para>
/// Load forecasts are predictions of the hourly load values using historical load data
/// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented
/// as predicted values for the minimum capacity that is needed on an hourly basis, based
/// on the hourly load forecast.
/// </para>
///
/// <para>
/// A minimum of 24 hours of data is required to create the initial forecasts. However,
/// having a full 14 days of historical data results in more accurate forecasts.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html">Predictive
/// scaling for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class GetPredictiveScalingForecastRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private DateTime? _endTime;
private string _policyName;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The exclusive end time of the time range for the forecast data to get. The maximum
/// time duration between the start and end time is 30 days.
/// </para>
///
/// <para>
/// Although this parameter can accept a date and time that is more than two days in the
/// future, the availability of forecast data has limits. Amazon EC2 Auto Scaling only
/// issues forecasts for periods of two days in advance.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name of the policy.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string PolicyName
{
get { return this._policyName; }
set { this._policyName = value; }
}
// Check to see if PolicyName property is set
internal bool IsSetPolicyName()
{
return this._policyName != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The inclusive start time of the time range for the forecast data to get. At most,
/// the date and time can be one year before the current date and time.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
}
}
| 145 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the GetPredictiveScalingForecast operation.
/// </summary>
public partial class GetPredictiveScalingForecastResponse : AmazonWebServiceResponse
{
private CapacityForecast _capacityForecast;
private List<LoadForecast> _loadForecast = new List<LoadForecast>();
private DateTime? _updateTime;
/// <summary>
/// Gets and sets the property CapacityForecast.
/// <para>
/// The capacity forecast.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public CapacityForecast CapacityForecast
{
get { return this._capacityForecast; }
set { this._capacityForecast = value; }
}
// Check to see if CapacityForecast property is set
internal bool IsSetCapacityForecast()
{
return this._capacityForecast != null;
}
/// <summary>
/// Gets and sets the property LoadForecast.
/// <para>
/// The load forecast.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<LoadForecast> LoadForecast
{
get { return this._loadForecast; }
set { this._loadForecast = value; }
}
// Check to see if LoadForecast property is set
internal bool IsSetLoadForecast()
{
return this._loadForecast != null && this._loadForecast.Count > 0;
}
/// <summary>
/// Gets and sets the property UpdateTime.
/// <para>
/// The time the forecast was made.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime UpdateTime
{
get { return this._updateTime.GetValueOrDefault(); }
set { this._updateTime = value; }
}
// Check to see if UpdateTime property is set
internal bool IsSetUpdateTime()
{
return this._updateTime.HasValue;
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an EC2 instance.
/// </summary>
public partial class Instance
{
private string _availabilityZone;
private string _healthStatus;
private string _instanceId;
private string _instanceType;
private string _launchConfigurationName;
private LaunchTemplateSpecification _launchTemplate;
private LifecycleState _lifecycleState;
private bool? _protectedFromScaleIn;
private string _weightedCapacity;
/// <summary>
/// Gets and sets the property AvailabilityZone.
/// <para>
/// The Availability Zone in which the instance is running.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
/// <summary>
/// Gets and sets the property HealthStatus.
/// <para>
/// The last reported health status of the instance. <code>Healthy</code> means that the
/// instance is healthy and should remain in service. <code>Unhealthy</code> means that
/// the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace
/// it.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
public string HealthStatus
{
get { return this._healthStatus; }
set { this._healthStatus = value; }
}
// Check to see if HealthStatus property is set
internal bool IsSetHealthStatus()
{
return this._healthStatus != null;
}
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// The instance type of the EC2 instance.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The launch configuration associated with the instance.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// The launch template for the instance.
/// </para>
/// </summary>
public LaunchTemplateSpecification LaunchTemplate
{
get { return this._launchTemplate; }
set { this._launchTemplate = value; }
}
// Check to see if LaunchTemplate property is set
internal bool IsSetLaunchTemplate()
{
return this._launchTemplate != null;
}
/// <summary>
/// Gets and sets the property LifecycleState.
/// <para>
/// A description of the current lifecycle state. The <code>Quarantined</code> state is
/// not used. For information about lifecycle states, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html">Instance
/// lifecycle</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public LifecycleState LifecycleState
{
get { return this._lifecycleState; }
set { this._lifecycleState = value; }
}
// Check to see if LifecycleState property is set
internal bool IsSetLifecycleState()
{
return this._lifecycleState != null;
}
/// <summary>
/// Gets and sets the property ProtectedFromScaleIn.
/// <para>
/// Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling
/// when scaling in.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public bool ProtectedFromScaleIn
{
get { return this._protectedFromScaleIn.GetValueOrDefault(); }
set { this._protectedFromScaleIn = value; }
}
// Check to see if ProtectedFromScaleIn property is set
internal bool IsSetProtectedFromScaleIn()
{
return this._protectedFromScaleIn.HasValue;
}
/// <summary>
/// Gets and sets the property WeightedCapacity.
/// <para>
/// The number of capacity units contributed by the instance based on its instance type.
/// </para>
///
/// <para>
/// Valid Range: Minimum value of 1. Maximum value of 999.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string WeightedCapacity
{
get { return this._weightedCapacity; }
set { this._weightedCapacity = value; }
}
// Check to see if WeightedCapacity property is set
internal bool IsSetWeightedCapacity()
{
return this._weightedCapacity != null;
}
}
}
| 227 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The metadata options for the instances. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds">Configuring
/// the Instance Metadata Options</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </summary>
public partial class InstanceMetadataOptions
{
private InstanceMetadataEndpointState _httpEndpoint;
private int? _httpPutResponseHopLimit;
private InstanceMetadataHttpTokensState _httpTokens;
/// <summary>
/// Gets and sets the property HttpEndpoint.
/// <para>
/// This parameter enables or disables the HTTP metadata endpoint on your instances. If
/// the parameter is not specified, the default state is <code>enabled</code>.
/// </para>
/// <note>
/// <para>
/// If you specify a value of <code>disabled</code>, you will not be able to access your
/// instance metadata.
/// </para>
/// </note>
/// </summary>
public InstanceMetadataEndpointState HttpEndpoint
{
get { return this._httpEndpoint; }
set { this._httpEndpoint = value; }
}
// Check to see if HttpEndpoint property is set
internal bool IsSetHttpEndpoint()
{
return this._httpEndpoint != null;
}
/// <summary>
/// Gets and sets the property HttpPutResponseHopLimit.
/// <para>
/// The desired HTTP PUT response hop limit for instance metadata requests. The larger
/// the number, the further instance metadata requests can travel.
/// </para>
///
/// <para>
/// Default: 1
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public int HttpPutResponseHopLimit
{
get { return this._httpPutResponseHopLimit.GetValueOrDefault(); }
set { this._httpPutResponseHopLimit = value; }
}
// Check to see if HttpPutResponseHopLimit property is set
internal bool IsSetHttpPutResponseHopLimit()
{
return this._httpPutResponseHopLimit.HasValue;
}
/// <summary>
/// Gets and sets the property HttpTokens.
/// <para>
/// The state of token usage for your instance metadata requests. If the parameter is
/// not specified in the request, the default state is <code>optional</code>.
/// </para>
///
/// <para>
/// If the state is <code>optional</code>, you can choose to retrieve instance metadata
/// with or without a signed token header on your request. If you retrieve the IAM role
/// credentials without a token, the version 1.0 role credentials are returned. If you
/// retrieve the IAM role credentials using a valid signed token, the version 2.0 role
/// credentials are returned.
/// </para>
///
/// <para>
/// If the state is <code>required</code>, you must send a signed token header with any
/// instance metadata retrieval requests. In this state, retrieving the IAM role credentials
/// always returns the version 2.0 credentials; the version 1.0 credentials are not available.
/// </para>
/// </summary>
public InstanceMetadataHttpTokensState HttpTokens
{
get { return this._httpTokens; }
set { this._httpTokens = value; }
}
// Check to see if HttpTokens property is set
internal bool IsSetHttpTokens()
{
return this._httpTokens != null;
}
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes whether detailed monitoring is enabled for the Auto Scaling instances.
/// </summary>
public partial class InstanceMonitoring
{
private bool? _enabled;
/// <summary>
/// Gets and sets the property Enabled.
/// <para>
/// If <code>true</code>, detailed monitoring is enabled. Otherwise, basic monitoring
/// is enabled.
/// </para>
/// </summary>
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an instance refresh for an Auto Scaling group.
/// </summary>
public partial class InstanceRefresh
{
private string _autoScalingGroupName;
private DesiredConfiguration _desiredConfiguration;
private DateTime? _endTime;
private string _instanceRefreshId;
private int? _instancesToUpdate;
private int? _percentageComplete;
private RefreshPreferences _preferences;
private InstanceRefreshProgressDetails _progressDetails;
private RollbackDetails _rollbackDetails;
private DateTime? _startTime;
private InstanceRefreshStatus _status;
private string _statusReason;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property DesiredConfiguration.
/// <para>
/// Describes the desired configuration for the instance refresh.
/// </para>
/// </summary>
public DesiredConfiguration DesiredConfiguration
{
get { return this._desiredConfiguration; }
set { this._desiredConfiguration = value; }
}
// Check to see if DesiredConfiguration property is set
internal bool IsSetDesiredConfiguration()
{
return this._desiredConfiguration != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The date and time at which the instance refresh ended.
/// </para>
/// </summary>
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property InstanceRefreshId.
/// <para>
/// The instance refresh ID.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceRefreshId
{
get { return this._instanceRefreshId; }
set { this._instanceRefreshId = value; }
}
// Check to see if InstanceRefreshId property is set
internal bool IsSetInstanceRefreshId()
{
return this._instanceRefreshId != null;
}
/// <summary>
/// Gets and sets the property InstancesToUpdate.
/// <para>
/// The number of instances remaining to update before the instance refresh is complete.
/// </para>
/// <note>
/// <para>
/// If you roll back the instance refresh, <code>InstancesToUpdate</code> shows you the
/// number of instances that were not yet updated by the instance refresh. Therefore,
/// these instances don't need to be replaced as part of the rollback.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=0)]
public int InstancesToUpdate
{
get { return this._instancesToUpdate.GetValueOrDefault(); }
set { this._instancesToUpdate = value; }
}
// Check to see if InstancesToUpdate property is set
internal bool IsSetInstancesToUpdate()
{
return this._instancesToUpdate.HasValue;
}
/// <summary>
/// Gets and sets the property PercentageComplete.
/// <para>
/// The percentage of the instance refresh that is complete. For each instance replacement,
/// Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When
/// the instance's health status changes to healthy and the specified warm-up time passes,
/// the instance is considered updated and is added to the percentage complete.
/// </para>
/// <note>
/// <para>
/// <code>PercentageComplete</code> does not include instances that are replaced during
/// a rollback. This value gradually goes back down to zero during a rollback.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=0, Max=100)]
public int PercentageComplete
{
get { return this._percentageComplete.GetValueOrDefault(); }
set { this._percentageComplete = value; }
}
// Check to see if PercentageComplete property is set
internal bool IsSetPercentageComplete()
{
return this._percentageComplete.HasValue;
}
/// <summary>
/// Gets and sets the property Preferences.
/// <para>
/// The preferences for an instance refresh.
/// </para>
/// </summary>
public RefreshPreferences Preferences
{
get { return this._preferences; }
set { this._preferences = value; }
}
// Check to see if Preferences property is set
internal bool IsSetPreferences()
{
return this._preferences != null;
}
/// <summary>
/// Gets and sets the property ProgressDetails.
/// <para>
/// Additional progress details for an Auto Scaling group that has a warm pool.
/// </para>
/// </summary>
public InstanceRefreshProgressDetails ProgressDetails
{
get { return this._progressDetails; }
set { this._progressDetails = value; }
}
// Check to see if ProgressDetails property is set
internal bool IsSetProgressDetails()
{
return this._progressDetails != null;
}
/// <summary>
/// Gets and sets the property RollbackDetails.
/// <para>
/// The rollback details.
/// </para>
/// </summary>
public RollbackDetails RollbackDetails
{
get { return this._rollbackDetails; }
set { this._rollbackDetails = value; }
}
// Check to see if RollbackDetails property is set
internal bool IsSetRollbackDetails()
{
return this._rollbackDetails != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The date and time at which the instance refresh began.
/// </para>
/// </summary>
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The current status for the instance refresh operation:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Pending</code> - The request was created, but the instance refresh has not
/// started.
/// </para>
/// </li> <li>
/// <para>
/// <code>InProgress</code> - An instance refresh is in progress.
/// </para>
/// </li> <li>
/// <para>
/// <code>Successful</code> - An instance refresh completed successfully.
/// </para>
/// </li> <li>
/// <para>
/// <code>Failed</code> - An instance refresh failed to complete. You can troubleshoot
/// using the status reason and the scaling activities.
/// </para>
/// </li> <li>
/// <para>
/// <code>Cancelling</code> - An ongoing instance refresh is being cancelled.
/// </para>
/// </li> <li>
/// <para>
/// <code>Cancelled</code> - The instance refresh is cancelled.
/// </para>
/// </li> <li>
/// <para>
/// <code>RollbackInProgress</code> - An instance refresh is being rolled back.
/// </para>
/// </li> <li>
/// <para>
/// <code>RollbackFailed</code> - The rollback failed to complete. You can troubleshoot
/// using the status reason and the scaling activities.
/// </para>
/// </li> <li>
/// <para>
/// <code>RollbackSuccessful</code> - The rollback completed successfully.
/// </para>
/// </li> </ul>
/// </summary>
public InstanceRefreshStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property StatusReason.
/// <para>
/// The explanation for the specific status assigned to this operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
}
}
| 327 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The request failed because an active instance refresh already exists for the specified
/// Auto Scaling group.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InstanceRefreshInProgressException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new InstanceRefreshInProgressException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InstanceRefreshInProgressException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InstanceRefreshInProgressException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InstanceRefreshInProgressException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InstanceRefreshInProgressException
/// </summary>
/// <param name="innerException"></param>
public InstanceRefreshInProgressException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InstanceRefreshInProgressException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InstanceRefreshInProgressException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InstanceRefreshInProgressException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InstanceRefreshInProgressException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InstanceRefreshInProgressException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InstanceRefreshInProgressException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Reports progress on replacing instances that are in the Auto Scaling group.
/// </summary>
public partial class InstanceRefreshLivePoolProgress
{
private int? _instancesToUpdate;
private int? _percentageComplete;
/// <summary>
/// Gets and sets the property InstancesToUpdate.
/// <para>
/// The number of instances remaining to update.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int InstancesToUpdate
{
get { return this._instancesToUpdate.GetValueOrDefault(); }
set { this._instancesToUpdate = value; }
}
// Check to see if InstancesToUpdate property is set
internal bool IsSetInstancesToUpdate()
{
return this._instancesToUpdate.HasValue;
}
/// <summary>
/// Gets and sets the property PercentageComplete.
/// <para>
/// The percentage of instances in the Auto Scaling group that have been replaced. For
/// each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status
/// and warm-up time. When the instance's health status changes to healthy and the specified
/// warm-up time passes, the instance is considered updated and is added to the percentage
/// complete.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100)]
public int PercentageComplete
{
get { return this._percentageComplete.GetValueOrDefault(); }
set { this._percentageComplete = value; }
}
// Check to see if PercentageComplete property is set
internal bool IsSetPercentageComplete()
{
return this._percentageComplete.HasValue;
}
}
}
| 82 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Reports progress on replacing instances in an Auto Scaling group that has a warm pool.
/// This includes separate details for instances in the warm pool and instances in the
/// Auto Scaling group (the live pool).
/// </summary>
public partial class InstanceRefreshProgressDetails
{
private InstanceRefreshLivePoolProgress _livePoolProgress;
private InstanceRefreshWarmPoolProgress _warmPoolProgress;
/// <summary>
/// Gets and sets the property LivePoolProgress.
/// <para>
/// Reports progress on replacing instances that are in the Auto Scaling group.
/// </para>
/// </summary>
public InstanceRefreshLivePoolProgress LivePoolProgress
{
get { return this._livePoolProgress; }
set { this._livePoolProgress = value; }
}
// Check to see if LivePoolProgress property is set
internal bool IsSetLivePoolProgress()
{
return this._livePoolProgress != null;
}
/// <summary>
/// Gets and sets the property WarmPoolProgress.
/// <para>
/// Reports progress on replacing instances that are in the warm pool.
/// </para>
/// </summary>
public InstanceRefreshWarmPoolProgress WarmPoolProgress
{
get { return this._warmPoolProgress; }
set { this._warmPoolProgress = value; }
}
// Check to see if WarmPoolProgress property is set
internal bool IsSetWarmPoolProgress()
{
return this._warmPoolProgress != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Reports progress on replacing instances that are in the warm pool.
/// </summary>
public partial class InstanceRefreshWarmPoolProgress
{
private int? _instancesToUpdate;
private int? _percentageComplete;
/// <summary>
/// Gets and sets the property InstancesToUpdate.
/// <para>
/// The number of instances remaining to update.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int InstancesToUpdate
{
get { return this._instancesToUpdate.GetValueOrDefault(); }
set { this._instancesToUpdate = value; }
}
// Check to see if InstancesToUpdate property is set
internal bool IsSetInstancesToUpdate()
{
return this._instancesToUpdate.HasValue;
}
/// <summary>
/// Gets and sets the property PercentageComplete.
/// <para>
/// The percentage of instances in the warm pool that have been replaced. For each instance
/// replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up
/// time. When the instance's health status changes to healthy and the specified warm-up
/// time passes, the instance is considered updated and is added to the percentage complete.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100)]
public int PercentageComplete
{
get { return this._percentageComplete.GetValueOrDefault(); }
set { this._percentageComplete = value; }
}
// Check to see if PercentageComplete property is set
internal bool IsSetPercentageComplete()
{
return this._percentageComplete.HasValue;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The attributes for the instance types for a mixed instances policy. Amazon EC2 Auto
/// Scaling uses your specified requirements to identify instance types. Then, it uses
/// your On-Demand and Spot allocation strategies to launch instances from these instance
/// types.
///
///
/// <para>
/// When you specify multiple attributes, you get instance types that satisfy all of the
/// specified attributes. If you specify multiple values for an attribute, you get instance
/// types that satisfy any of the specified values.
/// </para>
///
/// <para>
/// To limit the list of instance types from which Amazon EC2 Auto Scaling can identify
/// matching instance types, you can use one of the following parameters, but not both
/// in the same request:
/// </para>
/// <ul> <li>
/// <para>
/// <code>AllowedInstanceTypes</code> - The instance types to include in the list. All
/// other instance types are ignored, even if they match your specified attributes.
/// </para>
/// </li> <li>
/// <para>
/// <code>ExcludedInstanceTypes</code> - The instance types to exclude from the list,
/// even if they match your specified attributes.
/// </para>
/// </li> </ul> <note>
/// <para>
/// You must specify <code>VCpuCount</code> and <code>MemoryMiB</code>. All other attributes
/// are optional. Any unspecified optional attribute is set to its default.
/// </para>
/// </note>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html">Creating
/// an Auto Scaling group using attribute-based instance type selection</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>. For help determining which instance types match your
/// attributes before you apply them to your Auto Scaling group, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements">Preview
/// instance types with specified attributes</a> in the <i>Amazon EC2 User Guide for Linux
/// Instances</i>.
/// </para>
/// </summary>
public partial class InstanceRequirements
{
private AcceleratorCountRequest _acceleratorCount;
private List<string> _acceleratorManufacturers = new List<string>();
private List<string> _acceleratorNames = new List<string>();
private AcceleratorTotalMemoryMiBRequest _acceleratorTotalMemoryMiB;
private List<string> _acceleratorTypes = new List<string>();
private List<string> _allowedInstanceTypes = new List<string>();
private BareMetal _bareMetal;
private BaselineEbsBandwidthMbpsRequest _baselineEbsBandwidthMbps;
private BurstablePerformance _burstablePerformance;
private List<string> _cpuManufacturers = new List<string>();
private List<string> _excludedInstanceTypes = new List<string>();
private List<string> _instanceGenerations = new List<string>();
private LocalStorage _localStorage;
private List<string> _localStorageTypes = new List<string>();
private MemoryGiBPerVCpuRequest _memoryGiBPerVCpu;
private MemoryMiBRequest _memoryMiB;
private NetworkBandwidthGbpsRequest _networkBandwidthGbps;
private NetworkInterfaceCountRequest _networkInterfaceCount;
private int? _onDemandMaxPricePercentageOverLowestPrice;
private bool? _requireHibernateSupport;
private int? _spotMaxPricePercentageOverLowestPrice;
private TotalLocalStorageGBRequest _totalLocalStorageGB;
private VCpuCountRequest _vCpuCount;
/// <summary>
/// Gets and sets the property AcceleratorCount.
/// <para>
/// The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services
/// Inferentia chips) for an instance type.
/// </para>
///
/// <para>
/// To exclude accelerator-enabled instance types, set <code>Max</code> to <code>0</code>.
/// </para>
///
/// <para>
/// Default: No minimum or maximum limits
/// </para>
/// </summary>
public AcceleratorCountRequest AcceleratorCount
{
get { return this._acceleratorCount; }
set { this._acceleratorCount = value; }
}
// Check to see if AcceleratorCount property is set
internal bool IsSetAcceleratorCount()
{
return this._acceleratorCount != null;
}
/// <summary>
/// Gets and sets the property AcceleratorManufacturers.
/// <para>
/// Indicates whether instance types must have accelerators by specific manufacturers.
/// </para>
/// <ul> <li>
/// <para>
/// For instance types with NVIDIA devices, specify <code>nvidia</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with AMD devices, specify <code>amd</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with Amazon Web Services devices, specify <code>amazon-web-services</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with Xilinx devices, specify <code>xilinx</code>.
/// </para>
/// </li> </ul>
/// <para>
/// Default: Any manufacturer
/// </para>
/// </summary>
public List<string> AcceleratorManufacturers
{
get { return this._acceleratorManufacturers; }
set { this._acceleratorManufacturers = value; }
}
// Check to see if AcceleratorManufacturers property is set
internal bool IsSetAcceleratorManufacturers()
{
return this._acceleratorManufacturers != null && this._acceleratorManufacturers.Count > 0;
}
/// <summary>
/// Gets and sets the property AcceleratorNames.
/// <para>
/// Lists the accelerators that must be on an instance type.
/// </para>
/// <ul> <li>
/// <para>
/// For instance types with NVIDIA A100 GPUs, specify <code>a100</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with NVIDIA V100 GPUs, specify <code>v100</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with NVIDIA K80 GPUs, specify <code>k80</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with NVIDIA T4 GPUs, specify <code>t4</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with NVIDIA M60 GPUs, specify <code>m60</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with AMD Radeon Pro V520 GPUs, specify <code>radeon-pro-v520</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with Xilinx VU9P FPGAs, specify <code>vu9p</code>.
/// </para>
/// </li> </ul>
/// <para>
/// Default: Any accelerator
/// </para>
/// </summary>
public List<string> AcceleratorNames
{
get { return this._acceleratorNames; }
set { this._acceleratorNames = value; }
}
// Check to see if AcceleratorNames property is set
internal bool IsSetAcceleratorNames()
{
return this._acceleratorNames != null && this._acceleratorNames.Count > 0;
}
/// <summary>
/// Gets and sets the property AcceleratorTotalMemoryMiB.
/// <para>
/// The minimum and maximum total memory size for the accelerators on an instance type,
/// in MiB.
/// </para>
///
/// <para>
/// Default: No minimum or maximum limits
/// </para>
/// </summary>
public AcceleratorTotalMemoryMiBRequest AcceleratorTotalMemoryMiB
{
get { return this._acceleratorTotalMemoryMiB; }
set { this._acceleratorTotalMemoryMiB = value; }
}
// Check to see if AcceleratorTotalMemoryMiB property is set
internal bool IsSetAcceleratorTotalMemoryMiB()
{
return this._acceleratorTotalMemoryMiB != null;
}
/// <summary>
/// Gets and sets the property AcceleratorTypes.
/// <para>
/// Lists the accelerator types that must be on an instance type.
/// </para>
/// <ul> <li>
/// <para>
/// For instance types with GPU accelerators, specify <code>gpu</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with FPGA accelerators, specify <code>fpga</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with inference accelerators, specify <code>inference</code>.
/// </para>
/// </li> </ul>
/// <para>
/// Default: Any accelerator type
/// </para>
/// </summary>
public List<string> AcceleratorTypes
{
get { return this._acceleratorTypes; }
set { this._acceleratorTypes = value; }
}
// Check to see if AcceleratorTypes property is set
internal bool IsSetAcceleratorTypes()
{
return this._acceleratorTypes != null && this._acceleratorTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property AllowedInstanceTypes.
/// <para>
/// The instance types to apply your specified attributes against. All other instance
/// types are ignored, even if they match your specified attributes.
/// </para>
///
/// <para>
/// You can use strings with one or more wild cards, represented by an asterisk (<code>*</code>),
/// to allow an instance type, size, or generation. The following are examples: <code>m5.8xlarge</code>,
/// <code>c5*.*</code>, <code>m5a.*</code>, <code>r*</code>, <code>*3*</code>.
/// </para>
///
/// <para>
/// For example, if you specify <code>c5*</code>, Amazon EC2 Auto Scaling will allow the
/// entire C5 instance family, which includes all C5a and C5n instance types. If you specify
/// <code>m5a.*</code>, Amazon EC2 Auto Scaling will allow all the M5a instance types,
/// but not the M5n instance types.
/// </para>
/// <note>
/// <para>
/// If you specify <code>AllowedInstanceTypes</code>, you can't specify <code>ExcludedInstanceTypes</code>.
/// </para>
/// </note>
/// <para>
/// Default: All instance types
/// </para>
/// </summary>
[AWSProperty(Max=400)]
public List<string> AllowedInstanceTypes
{
get { return this._allowedInstanceTypes; }
set { this._allowedInstanceTypes = value; }
}
// Check to see if AllowedInstanceTypes property is set
internal bool IsSetAllowedInstanceTypes()
{
return this._allowedInstanceTypes != null && this._allowedInstanceTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property BareMetal.
/// <para>
/// Indicates whether bare metal instance types are included, excluded, or required.
/// </para>
///
/// <para>
/// Default: <code>excluded</code>
/// </para>
/// </summary>
public BareMetal BareMetal
{
get { return this._bareMetal; }
set { this._bareMetal = value; }
}
// Check to see if BareMetal property is set
internal bool IsSetBareMetal()
{
return this._bareMetal != null;
}
/// <summary>
/// Gets and sets the property BaselineEbsBandwidthMbps.
/// <para>
/// The minimum and maximum baseline bandwidth performance for an instance type, in Mbps.
/// For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html">Amazon
/// EBS–optimized instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
///
/// <para>
/// Default: No minimum or maximum limits
/// </para>
/// </summary>
public BaselineEbsBandwidthMbpsRequest BaselineEbsBandwidthMbps
{
get { return this._baselineEbsBandwidthMbps; }
set { this._baselineEbsBandwidthMbps = value; }
}
// Check to see if BaselineEbsBandwidthMbps property is set
internal bool IsSetBaselineEbsBandwidthMbps()
{
return this._baselineEbsBandwidthMbps != null;
}
/// <summary>
/// Gets and sets the property BurstablePerformance.
/// <para>
/// Indicates whether burstable performance instance types are included, excluded, or
/// required. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html">Burstable
/// performance instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
///
/// <para>
/// Default: <code>excluded</code>
/// </para>
/// </summary>
public BurstablePerformance BurstablePerformance
{
get { return this._burstablePerformance; }
set { this._burstablePerformance = value; }
}
// Check to see if BurstablePerformance property is set
internal bool IsSetBurstablePerformance()
{
return this._burstablePerformance != null;
}
/// <summary>
/// Gets and sets the property CpuManufacturers.
/// <para>
/// Lists which specific CPU manufacturers to include.
/// </para>
/// <ul> <li>
/// <para>
/// For instance types with Intel CPUs, specify <code>intel</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with AMD CPUs, specify <code>amd</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with Amazon Web Services CPUs, specify <code>amazon-web-services</code>.
/// </para>
/// </li> </ul> <note>
/// <para>
/// Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances
/// will be launched with a compatible CPU architecture based on the Amazon Machine Image
/// (AMI) that you specify in your launch template.
/// </para>
/// </note>
/// <para>
/// Default: Any manufacturer
/// </para>
/// </summary>
public List<string> CpuManufacturers
{
get { return this._cpuManufacturers; }
set { this._cpuManufacturers = value; }
}
// Check to see if CpuManufacturers property is set
internal bool IsSetCpuManufacturers()
{
return this._cpuManufacturers != null && this._cpuManufacturers.Count > 0;
}
/// <summary>
/// Gets and sets the property ExcludedInstanceTypes.
/// <para>
/// The instance types to exclude. You can use strings with one or more wild cards, represented
/// by an asterisk (<code>*</code>), to exclude an instance family, type, size, or generation.
/// The following are examples: <code>m5.8xlarge</code>, <code>c5*.*</code>, <code>m5a.*</code>,
/// <code>r*</code>, <code>*3*</code>.
/// </para>
///
/// <para>
/// For example, if you specify <code>c5*</code>, you are excluding the entire C5 instance
/// family, which includes all C5a and C5n instance types. If you specify <code>m5a.*</code>,
/// Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n instance
/// types.
/// </para>
/// <note>
/// <para>
/// If you specify <code>ExcludedInstanceTypes</code>, you can't specify <code>AllowedInstanceTypes</code>.
/// </para>
/// </note>
/// <para>
/// Default: No excluded instance types
/// </para>
/// </summary>
[AWSProperty(Max=400)]
public List<string> ExcludedInstanceTypes
{
get { return this._excludedInstanceTypes; }
set { this._excludedInstanceTypes = value; }
}
// Check to see if ExcludedInstanceTypes property is set
internal bool IsSetExcludedInstanceTypes()
{
return this._excludedInstanceTypes != null && this._excludedInstanceTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property InstanceGenerations.
/// <para>
/// Indicates whether current or previous generation instance types are included.
/// </para>
/// <ul> <li>
/// <para>
/// For current generation instance types, specify <code>current</code>. The current generation
/// includes EC2 instance types currently recommended for use. This typically includes
/// the latest two to three generations in each instance family. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance
/// types</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </li> <li>
/// <para>
/// For previous generation instance types, specify <code>previous</code>.
/// </para>
/// </li> </ul>
/// <para>
/// Default: Any current or previous generation
/// </para>
/// </summary>
public List<string> InstanceGenerations
{
get { return this._instanceGenerations; }
set { this._instanceGenerations = value; }
}
// Check to see if InstanceGenerations property is set
internal bool IsSetInstanceGenerations()
{
return this._instanceGenerations != null && this._instanceGenerations.Count > 0;
}
/// <summary>
/// Gets and sets the property LocalStorage.
/// <para>
/// Indicates whether instance types with instance store volumes are included, excluded,
/// or required. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html">Amazon
/// EC2 instance store</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
///
/// <para>
/// Default: <code>included</code>
/// </para>
/// </summary>
public LocalStorage LocalStorage
{
get { return this._localStorage; }
set { this._localStorage = value; }
}
// Check to see if LocalStorage property is set
internal bool IsSetLocalStorage()
{
return this._localStorage != null;
}
/// <summary>
/// Gets and sets the property LocalStorageTypes.
/// <para>
/// Indicates the type of local storage that is required.
/// </para>
/// <ul> <li>
/// <para>
/// For instance types with hard disk drive (HDD) storage, specify <code>hdd</code>.
/// </para>
/// </li> <li>
/// <para>
/// For instance types with solid state drive (SSD) storage, specify <code>ssd</code>.
/// </para>
/// </li> </ul>
/// <para>
/// Default: Any local storage type
/// </para>
/// </summary>
public List<string> LocalStorageTypes
{
get { return this._localStorageTypes; }
set { this._localStorageTypes = value; }
}
// Check to see if LocalStorageTypes property is set
internal bool IsSetLocalStorageTypes()
{
return this._localStorageTypes != null && this._localStorageTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property MemoryGiBPerVCpu.
/// <para>
/// The minimum and maximum amount of memory per vCPU for an instance type, in GiB.
/// </para>
///
/// <para>
/// Default: No minimum or maximum limits
/// </para>
/// </summary>
public MemoryGiBPerVCpuRequest MemoryGiBPerVCpu
{
get { return this._memoryGiBPerVCpu; }
set { this._memoryGiBPerVCpu = value; }
}
// Check to see if MemoryGiBPerVCpu property is set
internal bool IsSetMemoryGiBPerVCpu()
{
return this._memoryGiBPerVCpu != null;
}
/// <summary>
/// Gets and sets the property MemoryMiB.
/// <para>
/// The minimum and maximum instance memory size for an instance type, in MiB.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public MemoryMiBRequest MemoryMiB
{
get { return this._memoryMiB; }
set { this._memoryMiB = value; }
}
// Check to see if MemoryMiB property is set
internal bool IsSetMemoryMiB()
{
return this._memoryMiB != null;
}
/// <summary>
/// Gets and sets the property NetworkBandwidthGbps.
/// <para>
/// The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).
/// </para>
///
/// <para>
/// Default: No minimum or maximum limits
/// </para>
/// </summary>
public NetworkBandwidthGbpsRequest NetworkBandwidthGbps
{
get { return this._networkBandwidthGbps; }
set { this._networkBandwidthGbps = value; }
}
// Check to see if NetworkBandwidthGbps property is set
internal bool IsSetNetworkBandwidthGbps()
{
return this._networkBandwidthGbps != null;
}
/// <summary>
/// Gets and sets the property NetworkInterfaceCount.
/// <para>
/// The minimum and maximum number of network interfaces for an instance type.
/// </para>
///
/// <para>
/// Default: No minimum or maximum limits
/// </para>
/// </summary>
public NetworkInterfaceCountRequest NetworkInterfaceCount
{
get { return this._networkInterfaceCount; }
set { this._networkInterfaceCount = value; }
}
// Check to see if NetworkInterfaceCount property is set
internal bool IsSetNetworkInterfaceCount()
{
return this._networkInterfaceCount != null;
}
/// <summary>
/// Gets and sets the property OnDemandMaxPricePercentageOverLowestPrice.
/// <para>
/// The price protection threshold for On-Demand Instances. This is the maximum you’ll
/// pay for an On-Demand Instance, expressed as a percentage higher than the least expensive
/// current generation M, C, or R instance type with your specified attributes. When Amazon
/// EC2 Auto Scaling selects instance types with your attributes, we will exclude instance
/// types whose price is higher than your threshold. The parameter accepts an integer,
/// which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection,
/// specify a high value, such as <code>999999</code>.
/// </para>
///
/// <para>
/// If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or <code>memory-mib</code>,
/// the price protection threshold is applied based on the per vCPU or per memory price
/// instead of the per instance price.
/// </para>
///
/// <para>
/// Default: <code>20</code>
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int OnDemandMaxPricePercentageOverLowestPrice
{
get { return this._onDemandMaxPricePercentageOverLowestPrice.GetValueOrDefault(); }
set { this._onDemandMaxPricePercentageOverLowestPrice = value; }
}
// Check to see if OnDemandMaxPricePercentageOverLowestPrice property is set
internal bool IsSetOnDemandMaxPricePercentageOverLowestPrice()
{
return this._onDemandMaxPricePercentageOverLowestPrice.HasValue;
}
/// <summary>
/// Gets and sets the property RequireHibernateSupport.
/// <para>
/// Indicates whether instance types must provide On-Demand Instance hibernation support.
/// </para>
///
/// <para>
/// Default: <code>false</code>
/// </para>
/// </summary>
public bool RequireHibernateSupport
{
get { return this._requireHibernateSupport.GetValueOrDefault(); }
set { this._requireHibernateSupport = value; }
}
// Check to see if RequireHibernateSupport property is set
internal bool IsSetRequireHibernateSupport()
{
return this._requireHibernateSupport.HasValue;
}
/// <summary>
/// Gets and sets the property SpotMaxPricePercentageOverLowestPrice.
/// <para>
/// The price protection threshold for Spot Instances. This is the maximum you’ll pay
/// for a Spot Instance, expressed as a percentage higher than the least expensive current
/// generation M, C, or R instance type with your specified attributes. When Amazon EC2
/// Auto Scaling selects instance types with your attributes, we will exclude instance
/// types whose price is higher than your threshold. The parameter accepts an integer,
/// which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection,
/// specify a high value, such as <code>999999</code>.
/// </para>
///
/// <para>
/// If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or <code>memory-mib</code>,
/// the price protection threshold is applied based on the per vCPU or per memory price
/// instead of the per instance price.
/// </para>
///
/// <para>
/// Default: <code>100</code>
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int SpotMaxPricePercentageOverLowestPrice
{
get { return this._spotMaxPricePercentageOverLowestPrice.GetValueOrDefault(); }
set { this._spotMaxPricePercentageOverLowestPrice = value; }
}
// Check to see if SpotMaxPricePercentageOverLowestPrice property is set
internal bool IsSetSpotMaxPricePercentageOverLowestPrice()
{
return this._spotMaxPricePercentageOverLowestPrice.HasValue;
}
/// <summary>
/// Gets and sets the property TotalLocalStorageGB.
/// <para>
/// The minimum and maximum total local storage size for an instance type, in GB.
/// </para>
///
/// <para>
/// Default: No minimum or maximum limits
/// </para>
/// </summary>
public TotalLocalStorageGBRequest TotalLocalStorageGB
{
get { return this._totalLocalStorageGB; }
set { this._totalLocalStorageGB = value; }
}
// Check to see if TotalLocalStorageGB property is set
internal bool IsSetTotalLocalStorageGB()
{
return this._totalLocalStorageGB != null;
}
/// <summary>
/// Gets and sets the property VCpuCount.
/// <para>
/// The minimum and maximum number of vCPUs for an instance type.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VCpuCountRequest VCpuCount
{
get { return this._vCpuCount; }
set { this._vCpuCount = value; }
}
// Check to see if VCpuCount property is set
internal bool IsSetVCpuCount()
{
return this._vCpuCount != null;
}
}
}
| 767 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an instance reuse policy for a warm pool.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm
/// pools for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class InstanceReusePolicy
{
private bool? _reuseOnScaleIn;
/// <summary>
/// Gets and sets the property ReuseOnScaleIn.
/// <para>
/// Specifies whether instances in the Auto Scaling group can be returned to the warm
/// pool on scale in.
/// </para>
/// </summary>
public bool ReuseOnScaleIn
{
get { return this._reuseOnScaleIn.GetValueOrDefault(); }
set { this._reuseOnScaleIn = value; }
}
// Check to see if ReuseOnScaleIn property is set
internal bool IsSetReuseOnScaleIn()
{
return this._reuseOnScaleIn.HasValue;
}
}
}
| 64 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Use this structure to specify the distribution of On-Demand Instances and Spot Instances
/// and the allocation strategies used to fulfill On-Demand and Spot capacities for a
/// mixed instances policy.
/// </summary>
public partial class InstancesDistribution
{
private string _onDemandAllocationStrategy;
private int? _onDemandBaseCapacity;
private int? _onDemandPercentageAboveBaseCapacity;
private string _spotAllocationStrategy;
private int? _spotInstancePools;
private string _spotMaxPrice;
/// <summary>
/// Gets and sets the property OnDemandAllocationStrategy.
/// <para>
/// The allocation strategy to apply to your On-Demand Instances when they are launched.
/// Possible instance types are determined by the launch template overrides that you specify.
/// </para>
///
/// <para>
/// The following lists the valid values:
/// </para>
/// <dl> <dt>lowest-price</dt> <dd>
/// <para>
/// Uses price to determine which instance types are the highest priority, launching the
/// lowest priced instance types within an Availability Zone first. This is the default
/// value for Auto Scaling groups that specify <a>InstanceRequirements</a>.
/// </para>
/// </dd> <dt>prioritized</dt> <dd>
/// <para>
/// You set the order of instance types for the launch template overrides from highest
/// to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling launches
/// your highest priority instance types first. If all your On-Demand capacity cannot
/// be fulfilled using your highest priority instance type, then Amazon EC2 Auto Scaling
/// launches the remaining capacity using the second priority instance type, and so on.
/// This is the default value for Auto Scaling groups that don't specify <a>InstanceRequirements</a>
/// and cannot be used for groups that do.
/// </para>
/// </dd> </dl>
/// </summary>
public string OnDemandAllocationStrategy
{
get { return this._onDemandAllocationStrategy; }
set { this._onDemandAllocationStrategy = value; }
}
// Check to see if OnDemandAllocationStrategy property is set
internal bool IsSetOnDemandAllocationStrategy()
{
return this._onDemandAllocationStrategy != null;
}
/// <summary>
/// Gets and sets the property OnDemandBaseCapacity.
/// <para>
/// The minimum amount of the Auto Scaling group's capacity that must be fulfilled by
/// On-Demand Instances. This base portion is launched first as your group scales.
/// </para>
///
/// <para>
/// This number has the same unit of measurement as the group's desired capacity. If you
/// change the default unit of measurement (number of instances) by specifying weighted
/// capacity values in your launch template overrides list, or by changing the default
/// desired capacity type setting of the group, you must specify this number using the
/// same unit of measurement.
/// </para>
///
/// <para>
/// Default: 0
/// </para>
/// </summary>
public int OnDemandBaseCapacity
{
get { return this._onDemandBaseCapacity.GetValueOrDefault(); }
set { this._onDemandBaseCapacity = value; }
}
// Check to see if OnDemandBaseCapacity property is set
internal bool IsSetOnDemandBaseCapacity()
{
return this._onDemandBaseCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property OnDemandPercentageAboveBaseCapacity.
/// <para>
/// Controls the percentages of On-Demand Instances and Spot Instances for your additional
/// capacity beyond <code>OnDemandBaseCapacity</code>. Expressed as a number (for example,
/// 20 specifies 20% On-Demand Instances, 80% Spot Instances). If set to 100, only On-Demand
/// Instances are used.
/// </para>
///
/// <para>
/// Default: 100
/// </para>
/// </summary>
public int OnDemandPercentageAboveBaseCapacity
{
get { return this._onDemandPercentageAboveBaseCapacity.GetValueOrDefault(); }
set { this._onDemandPercentageAboveBaseCapacity = value; }
}
// Check to see if OnDemandPercentageAboveBaseCapacity property is set
internal bool IsSetOnDemandPercentageAboveBaseCapacity()
{
return this._onDemandPercentageAboveBaseCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property SpotAllocationStrategy.
/// <para>
/// The allocation strategy to apply to your Spot Instances when they are launched. Possible
/// instance types are determined by the launch template overrides that you specify.
/// </para>
///
/// <para>
/// The following lists the valid values:
/// </para>
/// <dl> <dt>capacity-optimized</dt> <dd>
/// <para>
/// Requests Spot Instances using pools that are optimally chosen based on the available
/// Spot capacity. This strategy has the lowest risk of interruption. To give certain
/// instance types a higher chance of launching first, use <code>capacity-optimized-prioritized</code>.
/// </para>
/// </dd> <dt>capacity-optimized-prioritized</dt> <dd>
/// <para>
/// You set the order of instance types for the launch template overrides from highest
/// to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors
/// the instance type priorities on a best effort basis but optimizes for capacity first.
/// Note that if the On-Demand allocation strategy is set to <code>prioritized</code>,
/// the same priority is applied when fulfilling On-Demand capacity. This is not a valid
/// value for Auto Scaling groups that specify <a>InstanceRequirements</a>.
/// </para>
/// </dd> <dt>lowest-price</dt> <dd>
/// <para>
/// Requests Spot Instances using the lowest priced pools within an Availability Zone,
/// across the number of Spot pools that you specify for the <code>SpotInstancePools</code>
/// property. To ensure that your desired capacity is met, you might receive Spot Instances
/// from several pools. This is the default value, but it might lead to high interruption
/// rates because this strategy only considers instance price and not available capacity.
/// </para>
/// </dd> <dt>price-capacity-optimized (recommended)</dt> <dd>
/// <para>
/// The price and capacity optimized allocation strategy looks at both price and capacity
/// to select the Spot Instance pools that are the least likely to be interrupted and
/// have the lowest possible price.
/// </para>
/// </dd> </dl>
/// </summary>
public string SpotAllocationStrategy
{
get { return this._spotAllocationStrategy; }
set { this._spotAllocationStrategy = value; }
}
// Check to see if SpotAllocationStrategy property is set
internal bool IsSetSpotAllocationStrategy()
{
return this._spotAllocationStrategy != null;
}
/// <summary>
/// Gets and sets the property SpotInstancePools.
/// <para>
/// The number of Spot Instance pools across which to allocate your Spot Instances. The
/// Spot pools are determined from the different instance types in the overrides. Valid
/// only when the <code>SpotAllocationStrategy</code> is <code>lowest-price</code>. Value
/// must be in the range of 1–20.
/// </para>
///
/// <para>
/// Default: 2
/// </para>
/// </summary>
public int SpotInstancePools
{
get { return this._spotInstancePools.GetValueOrDefault(); }
set { this._spotInstancePools = value; }
}
// Check to see if SpotInstancePools property is set
internal bool IsSetSpotInstancePools()
{
return this._spotInstancePools.HasValue;
}
/// <summary>
/// Gets and sets the property SpotMaxPrice.
/// <para>
/// The maximum price per unit hour that you are willing to pay for a Spot Instance. If
/// your maximum price is lower than the Spot price for the instance types that you selected,
/// your Spot Instances are not launched. We do not recommend specifying a maximum price
/// because it can lead to increased interruptions. When Spot Instances launch, you pay
/// the current Spot price. To remove a maximum price that you previously set, include
/// the property but specify an empty string ("") for the value.
/// </para>
/// <important>
/// <para>
/// If you specify a maximum price, your instances will be interrupted more frequently
/// than if you do not specify one.
/// </para>
/// </important>
/// <para>
/// Valid Range: Minimum value of 0.001
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=255)]
public string SpotMaxPrice
{
get { return this._spotMaxPrice; }
set { this._spotMaxPrice = value; }
}
// Check to see if SpotMaxPrice property is set
internal bool IsSetSpotMaxPrice()
{
return this._spotMaxPrice != null;
}
}
}
| 253 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The <code>NextToken</code> value is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidNextTokenException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new InvalidNextTokenException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidNextTokenException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidNextTokenException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="innerException"></param>
public InvalidNextTokenException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidNextTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidNextTokenException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InvalidNextTokenException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InvalidNextTokenException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The request failed because a desired configuration was not found or an incompatible
/// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch
/// template version (<code>$Latest</code> or <code>$Default</code>) is present on the
/// Auto Scaling group.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class IrreversibleInstanceRefreshException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new IrreversibleInstanceRefreshException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public IrreversibleInstanceRefreshException(string message)
: base(message) {}
/// <summary>
/// Construct instance of IrreversibleInstanceRefreshException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public IrreversibleInstanceRefreshException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of IrreversibleInstanceRefreshException
/// </summary>
/// <param name="innerException"></param>
public IrreversibleInstanceRefreshException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of IrreversibleInstanceRefreshException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public IrreversibleInstanceRefreshException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of IrreversibleInstanceRefreshException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public IrreversibleInstanceRefreshException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the IrreversibleInstanceRefreshException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected IrreversibleInstanceRefreshException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a launch configuration.
/// </summary>
public partial class LaunchConfiguration
{
private bool? _associatePublicIpAddress;
private List<BlockDeviceMapping> _blockDeviceMappings = new List<BlockDeviceMapping>();
private string _classicLinkVPCId;
private List<string> _classicLinkVPCSecurityGroups = new List<string>();
private DateTime? _createdTime;
private bool? _ebsOptimized;
private string _iamInstanceProfile;
private string _imageId;
private InstanceMonitoring _instanceMonitoring;
private string _instanceType;
private string _kernelId;
private string _keyName;
private string _launchConfigurationARN;
private string _launchConfigurationName;
private InstanceMetadataOptions _metadataOptions;
private string _placementTenancy;
private string _ramdiskId;
private List<string> _securityGroups = new List<string>();
private string _spotPrice;
private string _userData;
/// <summary>
/// Gets and sets the property AssociatePublicIpAddress.
/// <para>
/// Specifies whether to assign a public IPv4 address to the group's instances. If the
/// instance is launched into a default subnet, the default is to assign a public IPv4
/// address, unless you disabled the option to assign a public IPv4 address on the subnet.
/// If the instance is launched into a nondefault subnet, the default is not to assign
/// a public IPv4 address, unless you enabled the option to assign a public IPv4 address
/// on the subnet. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html">Launching
/// Auto Scaling instances in a VPC</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public bool AssociatePublicIpAddress
{
get { return this._associatePublicIpAddress.GetValueOrDefault(); }
set { this._associatePublicIpAddress = value; }
}
// Check to see if AssociatePublicIpAddress property is set
internal bool IsSetAssociatePublicIpAddress()
{
return this._associatePublicIpAddress.HasValue;
}
/// <summary>
/// Gets and sets the property BlockDeviceMappings.
/// <para>
/// The block device mapping entries that define the block devices to attach to the instances
/// at launch. By default, the block devices specified in the block device mapping for
/// the AMI are used. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html">Block
/// Device Mapping</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </summary>
public List<BlockDeviceMapping> BlockDeviceMappings
{
get { return this._blockDeviceMappings; }
set { this._blockDeviceMappings = value; }
}
// Check to see if BlockDeviceMappings property is set
internal bool IsSetBlockDeviceMappings()
{
return this._blockDeviceMappings != null && this._blockDeviceMappings.Count > 0;
}
/// <summary>
/// Gets and sets the property ClassicLinkVPCId.
/// <para>
/// Available for backward compatibility.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ClassicLinkVPCId
{
get { return this._classicLinkVPCId; }
set { this._classicLinkVPCId = value; }
}
// Check to see if ClassicLinkVPCId property is set
internal bool IsSetClassicLinkVPCId()
{
return this._classicLinkVPCId != null;
}
/// <summary>
/// Gets and sets the property ClassicLinkVPCSecurityGroups.
/// <para>
/// Available for backward compatibility.
/// </para>
/// </summary>
public List<string> ClassicLinkVPCSecurityGroups
{
get { return this._classicLinkVPCSecurityGroups; }
set { this._classicLinkVPCSecurityGroups = value; }
}
// Check to see if ClassicLinkVPCSecurityGroups property is set
internal bool IsSetClassicLinkVPCSecurityGroups()
{
return this._classicLinkVPCSecurityGroups != null && this._classicLinkVPCSecurityGroups.Count > 0;
}
/// <summary>
/// Gets and sets the property CreatedTime.
/// <para>
/// The creation date and time for the launch configuration.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
/// <summary>
/// Gets and sets the property EbsOptimized.
/// <para>
/// Specifies whether the launch configuration is optimized for EBS I/O (<code>true</code>)
/// or not (<code>false</code>). For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html">Amazon
/// EBS-Optimized Instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </summary>
public bool EbsOptimized
{
get { return this._ebsOptimized.GetValueOrDefault(); }
set { this._ebsOptimized = value; }
}
// Check to see if EbsOptimized property is set
internal bool IsSetEbsOptimized()
{
return this._ebsOptimized.HasValue;
}
/// <summary>
/// Gets and sets the property IamInstanceProfile.
/// <para>
/// The name or the Amazon Resource Name (ARN) of the instance profile associated with
/// the IAM role for the instance. The instance profile contains the IAM role. For more
/// information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/us-iam-role.html">IAM
/// role for applications that run on Amazon EC2 instances</a> in the <i>Amazon EC2 Auto
/// Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string IamInstanceProfile
{
get { return this._iamInstanceProfile; }
set { this._iamInstanceProfile = value; }
}
// Check to see if IamInstanceProfile property is set
internal bool IsSetIamInstanceProfile()
{
return this._iamInstanceProfile != null;
}
/// <summary>
/// Gets and sets the property ImageId.
/// <para>
/// The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For
/// more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html">Find
/// a Linux AMI</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ImageId
{
get { return this._imageId; }
set { this._imageId = value; }
}
// Check to see if ImageId property is set
internal bool IsSetImageId()
{
return this._imageId != null;
}
/// <summary>
/// Gets and sets the property InstanceMonitoring.
/// <para>
/// Controls whether instances in this group are launched with detailed (<code>true</code>)
/// or basic (<code>false</code>) monitoring.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html">Configure
/// Monitoring for Auto Scaling Instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public InstanceMonitoring InstanceMonitoring
{
get { return this._instanceMonitoring; }
set { this._instanceMonitoring = value; }
}
// Check to see if InstanceMonitoring property is set
internal bool IsSetInstanceMonitoring()
{
return this._instanceMonitoring != null;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// The instance type for the instances. For information about available instance types,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes">Available
/// instance types</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
/// <summary>
/// Gets and sets the property KernelId.
/// <para>
/// The ID of the kernel associated with the AMI.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string KernelId
{
get { return this._kernelId; }
set { this._kernelId = value; }
}
// Check to see if KernelId property is set
internal bool IsSetKernelId()
{
return this._kernelId != null;
}
/// <summary>
/// Gets and sets the property KeyName.
/// <para>
/// The name of the key pair.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html">Amazon
/// EC2 Key Pairs</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string KeyName
{
get { return this._keyName; }
set { this._keyName = value; }
}
// Check to see if KeyName property is set
internal bool IsSetKeyName()
{
return this._keyName != null;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationARN.
/// <para>
/// The Amazon Resource Name (ARN) of the launch configuration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string LaunchConfigurationARN
{
get { return this._launchConfigurationARN; }
set { this._launchConfigurationARN = value; }
}
// Check to see if LaunchConfigurationARN property is set
internal bool IsSetLaunchConfigurationARN()
{
return this._launchConfigurationARN != null;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The name of the launch configuration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
/// <summary>
/// Gets and sets the property MetadataOptions.
/// <para>
/// The metadata options for the instances. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds">Configuring
/// the Instance Metadata Options</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public InstanceMetadataOptions MetadataOptions
{
get { return this._metadataOptions; }
set { this._metadataOptions = value; }
}
// Check to see if MetadataOptions property is set
internal bool IsSetMetadataOptions()
{
return this._metadataOptions != null;
}
/// <summary>
/// Gets and sets the property PlacementTenancy.
/// <para>
/// The tenancy of the instance, either <code>default</code> or <code>dedicated</code>.
/// An instance with <code>dedicated</code> tenancy runs on isolated, single-tenant hardware
/// and can only be launched into a VPC.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html">Configuring
/// instance tenancy with Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string PlacementTenancy
{
get { return this._placementTenancy; }
set { this._placementTenancy = value; }
}
// Check to see if PlacementTenancy property is set
internal bool IsSetPlacementTenancy()
{
return this._placementTenancy != null;
}
/// <summary>
/// Gets and sets the property RamdiskId.
/// <para>
/// The ID of the RAM disk associated with the AMI.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string RamdiskId
{
get { return this._ramdiskId; }
set { this._ramdiskId = value; }
}
// Check to see if RamdiskId property is set
internal bool IsSetRamdiskId()
{
return this._ramdiskId != null;
}
/// <summary>
/// Gets and sets the property SecurityGroups.
/// <para>
/// A list that contains the security groups to assign to the instances in the Auto Scaling
/// group. For more information, see <a href="https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html">Security
/// Groups for Your VPC</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.
/// </para>
/// </summary>
public List<string> SecurityGroups
{
get { return this._securityGroups; }
set { this._securityGroups = value; }
}
// Check to see if SecurityGroups property is set
internal bool IsSetSecurityGroups()
{
return this._securityGroups != null && this._securityGroups.Count > 0;
}
/// <summary>
/// Gets and sets the property SpotPrice.
/// <para>
/// The maximum hourly price to be paid for any Spot Instance launched to fulfill the
/// request. Spot Instances are launched when the price you specify exceeds the current
/// Spot price. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-spot-instances.html">Requesting
/// Spot Instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string SpotPrice
{
get { return this._spotPrice; }
set { this._spotPrice = value; }
}
// Check to see if SpotPrice property is set
internal bool IsSetSpotPrice()
{
return this._spotPrice != null;
}
/// <summary>
/// Gets and sets the property UserData.
/// <para>
/// The user data to make available to the launched EC2 instances. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">Instance
/// metadata and user data</a> (Linux) and <a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html">Instance
/// metadata and user data</a> (Windows). If you are using a command line tool, base64-encoding
/// is performed for you, and you can load the text from a file. Otherwise, you must provide
/// base64-encoded text. User data is limited to 16 KB.
/// </para>
/// </summary>
[AWSProperty(Max=21847)]
public string UserData
{
get { return this._userData; }
set { this._userData = value; }
}
// Check to see if UserData property is set
internal bool IsSetUserData()
{
return this._userData != null;
}
}
}
| 480 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Use this structure to specify the launch templates and instance types (overrides)
/// for a mixed instances policy.
/// </summary>
public partial class LaunchTemplate
{
private LaunchTemplateSpecification _launchTemplateSpecification;
private List<LaunchTemplateOverrides> _overrides = new List<LaunchTemplateOverrides>();
/// <summary>
/// Gets and sets the property LaunchTemplateSpecification.
/// <para>
/// The launch template.
/// </para>
/// </summary>
public LaunchTemplateSpecification LaunchTemplateSpecification
{
get { return this._launchTemplateSpecification; }
set { this._launchTemplateSpecification = value; }
}
// Check to see if LaunchTemplateSpecification property is set
internal bool IsSetLaunchTemplateSpecification()
{
return this._launchTemplateSpecification != null;
}
/// <summary>
/// Gets and sets the property Overrides.
/// <para>
/// Any properties that you specify override the same properties in the launch template.
/// </para>
/// </summary>
public List<LaunchTemplateOverrides> Overrides
{
get { return this._overrides; }
set { this._overrides = value; }
}
// Check to see if Overrides property is set
internal bool IsSetOverrides()
{
return this._overrides != null && this._overrides.Count > 0;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Use this structure to let Amazon EC2 Auto Scaling do the following when the Auto Scaling
/// group has a mixed instances policy:
///
/// <ul> <li>
/// <para>
/// Override the instance type that is specified in the launch template.
/// </para>
/// </li> <li>
/// <para>
/// Use multiple instance types.
/// </para>
/// </li> </ul>
/// <para>
/// Specify the instance types that you want, or define your instance requirements instead
/// and let Amazon EC2 Auto Scaling provision the available instance types that meet your
/// requirements. This can provide Amazon EC2 Auto Scaling with a larger selection of
/// instance types to choose from when fulfilling Spot and On-Demand capacities. You can
/// view which instance types are matched before you apply the instance requirements to
/// your Auto Scaling group.
/// </para>
///
/// <para>
/// After you define your instance requirements, you don't have to keep updating these
/// settings to get new EC2 instance types automatically. Amazon EC2 Auto Scaling uses
/// the instance requirements of the Auto Scaling group to determine whether a new EC2
/// instance type can be used.
/// </para>
/// </summary>
public partial class LaunchTemplateOverrides
{
private InstanceRequirements _instanceRequirements;
private string _instanceType;
private LaunchTemplateSpecification _launchTemplateSpecification;
private string _weightedCapacity;
/// <summary>
/// Gets and sets the property InstanceRequirements.
/// <para>
/// The instance requirements. Amazon EC2 Auto Scaling uses your specified requirements
/// to identify instance types. Then, it uses your On-Demand and Spot allocation strategies
/// to launch instances from these instance types.
/// </para>
///
/// <para>
/// You can specify up to four separate sets of instance requirements per Auto Scaling
/// group. This is useful for provisioning instances from different Amazon Machine Images
/// (AMIs) in the same Auto Scaling group. To do this, create the AMIs and create a new
/// launch template for each AMI. Then, create a compatible set of instance requirements
/// for each launch template.
/// </para>
/// <note>
/// <para>
/// If you specify <code>InstanceRequirements</code>, you can't specify <code>InstanceType</code>.
/// </para>
/// </note>
/// </summary>
public InstanceRequirements InstanceRequirements
{
get { return this._instanceRequirements; }
set { this._instanceRequirements = value; }
}
// Check to see if InstanceRequirements property is set
internal bool IsSetInstanceRequirements()
{
return this._instanceRequirements != null;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// The instance type, such as <code>m3.xlarge</code>. You must specify an instance type
/// that is supported in your requested Region and Availability Zones. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance
/// types</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
/// </para>
///
/// <para>
/// You can specify up to 40 instance types per Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplateSpecification.
/// <para>
/// Provides a launch template for the specified instance type or set of instance requirements.
/// For example, some instance types might require a launch template with a different
/// AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's specified
/// in the <code>LaunchTemplate</code> definition. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html">Specifying
/// a different launch template for an instance type</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
///
/// <para>
/// You can specify up to 20 launch templates per Auto Scaling group. The launch templates
/// specified in the overrides and in the <code>LaunchTemplate</code> definition count
/// towards this limit.
/// </para>
/// </summary>
public LaunchTemplateSpecification LaunchTemplateSpecification
{
get { return this._launchTemplateSpecification; }
set { this._launchTemplateSpecification = value; }
}
// Check to see if LaunchTemplateSpecification property is set
internal bool IsSetLaunchTemplateSpecification()
{
return this._launchTemplateSpecification != null;
}
/// <summary>
/// Gets and sets the property WeightedCapacity.
/// <para>
/// If you provide a list of instance types to use, you can specify the number of capacity
/// units provided by each instance type in terms of virtual CPUs, memory, storage, throughput,
/// or other relative performance characteristic. When a Spot or On-Demand Instance is
/// launched, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling
/// launches instances until the desired capacity is totally fulfilled, even if this results
/// in an overage. For example, if there are two units remaining to fulfill capacity,
/// and Amazon EC2 Auto Scaling can only launch an instance with a <code>WeightedCapacity</code>
/// of five units, the instance is launched, and the desired capacity is exceeded by three
/// units. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html">Configuring
/// instance weighting for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>. Value must be in the range of 1–999.
/// </para>
///
/// <para>
/// If you specify a value for <code>WeightedCapacity</code> for one instance type, you
/// must specify a value for <code>WeightedCapacity</code> for all of them.
/// </para>
/// <important>
/// <para>
/// Every Auto Scaling group has three size parameters (<code>DesiredCapacity</code>,
/// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based
/// on a specific number of instances. However, if you configure a mixed instances policy
/// that defines weights for the instance types, you must specify these sizes with the
/// same units that you use for weighting instances.
/// </para>
/// </important>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string WeightedCapacity
{
get { return this._weightedCapacity; }
set { this._weightedCapacity = value; }
}
// Check to see if WeightedCapacity property is set
internal bool IsSetWeightedCapacity()
{
return this._weightedCapacity != null;
}
}
}
| 199 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes the launch template and the version of the launch template that Amazon EC2
/// Auto Scaling uses to launch Amazon EC2 instances. For more information about launch
/// templates, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html">Launch
/// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </summary>
public partial class LaunchTemplateSpecification
{
private string _launchTemplateId;
private string _launchTemplateName;
private string _version;
/// <summary>
/// Gets and sets the property LaunchTemplateId.
/// <para>
/// The ID of the launch template. To get the template ID, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html">DescribeLaunchTemplates</a>
/// API operation. New launch templates can be created using the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html">CreateLaunchTemplate</a>
/// API.
/// </para>
///
/// <para>
/// Conditional: You must specify either a <code>LaunchTemplateId</code> or a <code>LaunchTemplateName</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LaunchTemplateId
{
get { return this._launchTemplateId; }
set { this._launchTemplateId = value; }
}
// Check to see if LaunchTemplateId property is set
internal bool IsSetLaunchTemplateId()
{
return this._launchTemplateId != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplateName.
/// <para>
/// The name of the launch template. To get the template name, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html">DescribeLaunchTemplates</a>
/// API operation. New launch templates can be created using the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html">CreateLaunchTemplate</a>
/// API.
/// </para>
///
/// <para>
/// Conditional: You must specify either a <code>LaunchTemplateId</code> or a <code>LaunchTemplateName</code>.
/// </para>
/// </summary>
[AWSProperty(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;
}
/// <summary>
/// Gets and sets the property Version.
/// <para>
/// The version number, <code>$Latest</code>, or <code>$Default</code>. To get the version
/// number, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplateVersions.html">DescribeLaunchTemplateVersions</a>
/// API operation. New launch template versions can be created using the Amazon EC2 <a
/// href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplateVersion.html">CreateLaunchTemplateVersion</a>
/// API. If the value is <code>$Latest</code>, Amazon EC2 Auto Scaling selects the latest
/// version of the launch template when launching instances. If the value is <code>$Default</code>,
/// Amazon EC2 Auto Scaling selects the default version of the launch template when launching
/// instances. The default value is <code>$Default</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
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;
}
}
}
| 120 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a lifecycle hook. A lifecycle hook lets you create solutions that are aware
/// of events in the Auto Scaling instance lifecycle, and then perform a custom action
/// on instances when the corresponding lifecycle event occurs.
/// </summary>
public partial class LifecycleHook
{
private string _autoScalingGroupName;
private string _defaultResult;
private int? _globalTimeout;
private int? _heartbeatTimeout;
private string _lifecycleHookName;
private string _lifecycleTransition;
private string _notificationMetadata;
private string _notificationTargetARN;
private string _roleARN;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group for the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property DefaultResult.
/// <para>
/// The action the Auto Scaling group takes when the lifecycle hook timeout elapses or
/// if an unexpected failure occurs.
/// </para>
///
/// <para>
/// Valid values: <code>CONTINUE</code> | <code>ABANDON</code>
/// </para>
/// </summary>
public string DefaultResult
{
get { return this._defaultResult; }
set { this._defaultResult = value; }
}
// Check to see if DefaultResult property is set
internal bool IsSetDefaultResult()
{
return this._defaultResult != null;
}
/// <summary>
/// Gets and sets the property GlobalTimeout.
/// <para>
/// The maximum time, in seconds, that an instance can remain in a wait state. The maximum
/// is 172800 seconds (48 hours) or 100 times <code>HeartbeatTimeout</code>, whichever
/// is smaller.
/// </para>
/// </summary>
public int GlobalTimeout
{
get { return this._globalTimeout.GetValueOrDefault(); }
set { this._globalTimeout = value; }
}
// Check to see if GlobalTimeout property is set
internal bool IsSetGlobalTimeout()
{
return this._globalTimeout.HasValue;
}
/// <summary>
/// Gets and sets the property HeartbeatTimeout.
/// <para>
/// The maximum time, in seconds, that can elapse before the lifecycle hook times out.
/// If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that
/// you specified in the <code>DefaultResult</code> property.
/// </para>
/// </summary>
public int HeartbeatTimeout
{
get { return this._heartbeatTimeout.GetValueOrDefault(); }
set { this._heartbeatTimeout = value; }
}
// Check to see if HeartbeatTimeout property is set
internal bool IsSetHeartbeatTimeout()
{
return this._heartbeatTimeout.HasValue;
}
/// <summary>
/// Gets and sets the property LifecycleHookName.
/// <para>
/// The name of the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LifecycleHookName
{
get { return this._lifecycleHookName; }
set { this._lifecycleHookName = value; }
}
// Check to see if LifecycleHookName property is set
internal bool IsSetLifecycleHookName()
{
return this._lifecycleHookName != null;
}
/// <summary>
/// Gets and sets the property LifecycleTransition.
/// <para>
/// The lifecycle transition.
/// </para>
///
/// <para>
/// Valid values: <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> | <code>autoscaling:EC2_INSTANCE_TERMINATING</code>
///
/// </para>
/// </summary>
public string LifecycleTransition
{
get { return this._lifecycleTransition; }
set { this._lifecycleTransition = value; }
}
// Check to see if LifecycleTransition property is set
internal bool IsSetLifecycleTransition()
{
return this._lifecycleTransition != null;
}
/// <summary>
/// Gets and sets the property NotificationMetadata.
/// <para>
/// Additional information that is included any time Amazon EC2 Auto Scaling sends a message
/// to the notification target.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string NotificationMetadata
{
get { return this._notificationMetadata; }
set { this._notificationMetadata = value; }
}
// Check to see if NotificationMetadata property is set
internal bool IsSetNotificationMetadata()
{
return this._notificationMetadata != null;
}
/// <summary>
/// Gets and sets the property NotificationTargetARN.
/// <para>
/// The ARN of the target that Amazon EC2 Auto Scaling sends notifications to when an
/// instance is in a wait state for the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=255)]
public string NotificationTargetARN
{
get { return this._notificationTargetARN; }
set { this._notificationTargetARN = value; }
}
// Check to see if NotificationTargetARN property is set
internal bool IsSetNotificationTargetARN()
{
return this._notificationTargetARN != null;
}
/// <summary>
/// Gets and sets the property RoleARN.
/// <para>
/// The ARN of the IAM role that allows the Auto Scaling group to publish to the specified
/// notification target (an Amazon SNS topic or an Amazon SQS queue).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string RoleARN
{
get { return this._roleARN; }
set { this._roleARN = value; }
}
// Check to see if RoleARN property is set
internal bool IsSetRoleARN()
{
return this._roleARN != null;
}
}
}
| 233 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes information used to specify a lifecycle hook for an Auto Scaling group.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon
/// EC2 Auto Scaling lifecycle hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class LifecycleHookSpecification
{
private string _defaultResult;
private int? _heartbeatTimeout;
private string _lifecycleHookName;
private string _lifecycleTransition;
private string _notificationMetadata;
private string _notificationTargetARN;
private string _roleARN;
/// <summary>
/// Gets and sets the property DefaultResult.
/// <para>
/// The action the Auto Scaling group takes when the lifecycle hook timeout elapses or
/// if an unexpected failure occurs. The default value is <code>ABANDON</code>.
/// </para>
///
/// <para>
/// Valid values: <code>CONTINUE</code> | <code>ABANDON</code>
/// </para>
/// </summary>
public string DefaultResult
{
get { return this._defaultResult; }
set { this._defaultResult = value; }
}
// Check to see if DefaultResult property is set
internal bool IsSetDefaultResult()
{
return this._defaultResult != null;
}
/// <summary>
/// Gets and sets the property HeartbeatTimeout.
/// <para>
/// The maximum time, in seconds, that can elapse before the lifecycle hook times out.
/// The range is from <code>30</code> to <code>7200</code> seconds. The default value
/// is <code>3600</code> seconds (1 hour).
/// </para>
/// </summary>
public int HeartbeatTimeout
{
get { return this._heartbeatTimeout.GetValueOrDefault(); }
set { this._heartbeatTimeout = value; }
}
// Check to see if HeartbeatTimeout property is set
internal bool IsSetHeartbeatTimeout()
{
return this._heartbeatTimeout.HasValue;
}
/// <summary>
/// Gets and sets the property LifecycleHookName.
/// <para>
/// The name of the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LifecycleHookName
{
get { return this._lifecycleHookName; }
set { this._lifecycleHookName = value; }
}
// Check to see if LifecycleHookName property is set
internal bool IsSetLifecycleHookName()
{
return this._lifecycleHookName != null;
}
/// <summary>
/// Gets and sets the property LifecycleTransition.
/// <para>
/// The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.
/// </para>
/// <ul> <li>
/// <para>
/// To create a lifecycle hook for scale-out events, specify <code>autoscaling:EC2_INSTANCE_LAUNCHING</code>.
/// </para>
/// </li> <li>
/// <para>
/// To create a lifecycle hook for scale-in events, specify <code>autoscaling:EC2_INSTANCE_TERMINATING</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public string LifecycleTransition
{
get { return this._lifecycleTransition; }
set { this._lifecycleTransition = value; }
}
// Check to see if LifecycleTransition property is set
internal bool IsSetLifecycleTransition()
{
return this._lifecycleTransition != null;
}
/// <summary>
/// Gets and sets the property NotificationMetadata.
/// <para>
/// Additional information that you want to include any time Amazon EC2 Auto Scaling sends
/// a message to the notification target.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string NotificationMetadata
{
get { return this._notificationMetadata; }
set { this._notificationMetadata = value; }
}
// Check to see if NotificationMetadata property is set
internal bool IsSetNotificationMetadata()
{
return this._notificationMetadata != null;
}
/// <summary>
/// Gets and sets the property NotificationTargetARN.
/// <para>
/// The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling
/// sends notifications to when an instance is in a wait state for the lifecycle hook.
/// You can specify an Amazon SNS topic or an Amazon SQS queue.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=255)]
public string NotificationTargetARN
{
get { return this._notificationTargetARN; }
set { this._notificationTargetARN = value; }
}
// Check to see if NotificationTargetARN property is set
internal bool IsSetNotificationTargetARN()
{
return this._notificationTargetARN != null;
}
/// <summary>
/// Gets and sets the property RoleARN.
/// <para>
/// The ARN of the IAM role that allows the Auto Scaling group to publish to the specified
/// notification target. For information about creating this role, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/prepare-for-lifecycle-notifications.html#lifecycle-hook-notification-target">Configure
/// a notification target for a lifecycle hook</a> in the <i>Amazon EC2 Auto Scaling User
/// Guide</i>.
/// </para>
///
/// <para>
/// Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string RoleARN
{
get { return this._roleARN; }
set { this._roleARN = value; }
}
// Check to see if RoleARN property is set
internal bool IsSetRoleARN()
{
return this._roleARN != null;
}
}
}
| 208 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example,
/// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a>
/// in the <i>Amazon EC2 Auto Scaling API Reference</i>.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class LimitExceededException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new LimitExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public LimitExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public LimitExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="innerException"></param>
public LimitExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public LimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the LimitExceededException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected LimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes the state of a Classic Load Balancer.
/// </summary>
public partial class LoadBalancerState
{
private string _loadBalancerName;
private string _state;
/// <summary>
/// Gets and sets the property LoadBalancerName.
/// <para>
/// The name of the load balancer.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LoadBalancerName
{
get { return this._loadBalancerName; }
set { this._loadBalancerName = value; }
}
// Check to see if LoadBalancerName property is set
internal bool IsSetLoadBalancerName()
{
return this._loadBalancerName != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// One of the following load balancer states:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Adding</code> - The Auto Scaling instances are being registered with the load
/// balancer.
/// </para>
/// </li> <li>
/// <para>
/// <code>Added</code> - All Auto Scaling instances are registered with the load balancer.
/// </para>
/// </li> <li>
/// <para>
/// <code>InService</code> - At least one Auto Scaling instance passed an <code>ELB</code>
/// health check.
/// </para>
/// </li> <li>
/// <para>
/// <code>Removing</code> - The Auto Scaling instances are being deregistered from the
/// load balancer. If connection draining is enabled, Elastic Load Balancing waits for
/// in-flight requests to complete before deregistering the instances.
/// </para>
/// </li> <li>
/// <para>
/// <code>Removed</code> - All Auto Scaling instances are deregistered from the load
/// balancer.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes the state of a target group.
/// </summary>
public partial class LoadBalancerTargetGroupState
{
private string _loadBalancerTargetGroupARN;
private string _state;
/// <summary>
/// Gets and sets the property LoadBalancerTargetGroupARN.
/// <para>
/// The Amazon Resource Name (ARN) of the target group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=511)]
public string LoadBalancerTargetGroupARN
{
get { return this._loadBalancerTargetGroupARN; }
set { this._loadBalancerTargetGroupARN = value; }
}
// Check to see if LoadBalancerTargetGroupARN property is set
internal bool IsSetLoadBalancerTargetGroupARN()
{
return this._loadBalancerTargetGroupARN != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the target group.
/// </para>
/// <ul> <li>
/// <para>
/// <code>Adding</code> - The Auto Scaling instances are being registered with the target
/// group.
/// </para>
/// </li> <li>
/// <para>
/// <code>Added</code> - All Auto Scaling instances are registered with the target group.
/// </para>
/// </li> <li>
/// <para>
/// <code>InService</code> - At least one Auto Scaling instance passed an <code>ELB</code>
/// health check.
/// </para>
/// </li> <li>
/// <para>
/// <code>Removing</code> - The Auto Scaling instances are being deregistered from the
/// target group. If connection draining is enabled, Elastic Load Balancing waits for
/// in-flight requests to complete before deregistering the instances.
/// </para>
/// </li> <li>
/// <para>
/// <code>Removed</code> - All Auto Scaling instances are deregistered from the target
/// group.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// A <code>GetPredictiveScalingForecast</code> call returns the load forecast for a predictive
/// scaling policy. This structure includes the data points for that load forecast, along
/// with the timestamps of those data points and the metric specification.
/// </summary>
public partial class LoadForecast
{
private PredictiveScalingMetricSpecification _metricSpecification;
private List<DateTime> _timestamps = new List<DateTime>();
private List<double> _values = new List<double>();
/// <summary>
/// Gets and sets the property MetricSpecification.
/// <para>
/// The metric specification for the load forecast.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public PredictiveScalingMetricSpecification MetricSpecification
{
get { return this._metricSpecification; }
set { this._metricSpecification = value; }
}
// Check to see if MetricSpecification property is set
internal bool IsSetMetricSpecification()
{
return this._metricSpecification != null;
}
/// <summary>
/// Gets and sets the property Timestamps.
/// <para>
/// The timestamps for the data points, in UTC format.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<DateTime> Timestamps
{
get { return this._timestamps; }
set { this._timestamps = value; }
}
// Check to see if Timestamps property is set
internal bool IsSetTimestamps()
{
return this._timestamps != null && this._timestamps.Count > 0;
}
/// <summary>
/// Gets and sets the property Values.
/// <para>
/// The values of the data points.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<double> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
}
}
| 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.