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 application-autoscaling-2016-02-06.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.ApplicationAutoScaling.Endpoints
{
/// <summary>
/// Contains parameters used for resolving ApplicationAutoScaling endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal ApplicationAutoScalingEndpointProvider and ApplicationAutoScalingEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class ApplicationAutoScalingEndpointParameters : EndpointParameters
{
/// <summary>
/// ApplicationAutoScalingEndpointParameters constructor
/// </summary>
public ApplicationAutoScalingEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling
{
///<summary>
/// Common exception for the ApplicationAutoScaling service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonApplicationAutoScalingException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonApplicationAutoScalingException
/// </summary>
/// <param name="message"></param>
public AmazonApplicationAutoScalingException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonApplicationAutoScalingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonApplicationAutoScalingException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonApplicationAutoScalingException
/// </summary>
/// <param name="innerException"></param>
public AmazonApplicationAutoScalingException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonApplicationAutoScalingException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonApplicationAutoScalingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonApplicationAutoScalingException
/// </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 AmazonApplicationAutoScalingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonApplicationAutoScalingException 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 AmazonApplicationAutoScalingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
} | 105 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Constants used for properties of type AdjustmentType.
/// </summary>
public class AdjustmentType : ConstantClass
{
/// <summary>
/// Constant ChangeInCapacity for AdjustmentType
/// </summary>
public static readonly AdjustmentType ChangeInCapacity = new AdjustmentType("ChangeInCapacity");
/// <summary>
/// Constant ExactCapacity for AdjustmentType
/// </summary>
public static readonly AdjustmentType ExactCapacity = new AdjustmentType("ExactCapacity");
/// <summary>
/// Constant PercentChangeInCapacity for AdjustmentType
/// </summary>
public static readonly AdjustmentType PercentChangeInCapacity = new AdjustmentType("PercentChangeInCapacity");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AdjustmentType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AdjustmentType FindValue(string value)
{
return FindValue<AdjustmentType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AdjustmentType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type MetricAggregationType.
/// </summary>
public class MetricAggregationType : ConstantClass
{
/// <summary>
/// Constant Average for MetricAggregationType
/// </summary>
public static readonly MetricAggregationType Average = new MetricAggregationType("Average");
/// <summary>
/// Constant Maximum for MetricAggregationType
/// </summary>
public static readonly MetricAggregationType Maximum = new MetricAggregationType("Maximum");
/// <summary>
/// Constant Minimum for MetricAggregationType
/// </summary>
public static readonly MetricAggregationType Minimum = new MetricAggregationType("Minimum");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public MetricAggregationType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static MetricAggregationType FindValue(string value)
{
return FindValue<MetricAggregationType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator MetricAggregationType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type MetricStatistic.
/// </summary>
public class MetricStatistic : ConstantClass
{
/// <summary>
/// Constant Average for MetricStatistic
/// </summary>
public static readonly MetricStatistic Average = new MetricStatistic("Average");
/// <summary>
/// Constant Maximum for MetricStatistic
/// </summary>
public static readonly MetricStatistic Maximum = new MetricStatistic("Maximum");
/// <summary>
/// Constant Minimum for MetricStatistic
/// </summary>
public static readonly MetricStatistic Minimum = new MetricStatistic("Minimum");
/// <summary>
/// Constant SampleCount for MetricStatistic
/// </summary>
public static readonly MetricStatistic SampleCount = new MetricStatistic("SampleCount");
/// <summary>
/// Constant Sum for MetricStatistic
/// </summary>
public static readonly MetricStatistic Sum = new MetricStatistic("Sum");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public MetricStatistic(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static MetricStatistic FindValue(string value)
{
return FindValue<MetricStatistic>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator MetricStatistic(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type MetricType.
/// </summary>
public class MetricType : ConstantClass
{
/// <summary>
/// Constant ALBRequestCountPerTarget for MetricType
/// </summary>
public static readonly MetricType ALBRequestCountPerTarget = new MetricType("ALBRequestCountPerTarget");
/// <summary>
/// Constant AppStreamAverageCapacityUtilization for MetricType
/// </summary>
public static readonly MetricType AppStreamAverageCapacityUtilization = new MetricType("AppStreamAverageCapacityUtilization");
/// <summary>
/// Constant CassandraReadCapacityUtilization for MetricType
/// </summary>
public static readonly MetricType CassandraReadCapacityUtilization = new MetricType("CassandraReadCapacityUtilization");
/// <summary>
/// Constant CassandraWriteCapacityUtilization for MetricType
/// </summary>
public static readonly MetricType CassandraWriteCapacityUtilization = new MetricType("CassandraWriteCapacityUtilization");
/// <summary>
/// Constant ComprehendInferenceUtilization for MetricType
/// </summary>
public static readonly MetricType ComprehendInferenceUtilization = new MetricType("ComprehendInferenceUtilization");
/// <summary>
/// Constant DynamoDBReadCapacityUtilization for MetricType
/// </summary>
public static readonly MetricType DynamoDBReadCapacityUtilization = new MetricType("DynamoDBReadCapacityUtilization");
/// <summary>
/// Constant DynamoDBWriteCapacityUtilization for MetricType
/// </summary>
public static readonly MetricType DynamoDBWriteCapacityUtilization = new MetricType("DynamoDBWriteCapacityUtilization");
/// <summary>
/// Constant EC2SpotFleetRequestAverageCPUUtilization for MetricType
/// </summary>
public static readonly MetricType EC2SpotFleetRequestAverageCPUUtilization = new MetricType("EC2SpotFleetRequestAverageCPUUtilization");
/// <summary>
/// Constant EC2SpotFleetRequestAverageNetworkIn for MetricType
/// </summary>
public static readonly MetricType EC2SpotFleetRequestAverageNetworkIn = new MetricType("EC2SpotFleetRequestAverageNetworkIn");
/// <summary>
/// Constant EC2SpotFleetRequestAverageNetworkOut for MetricType
/// </summary>
public static readonly MetricType EC2SpotFleetRequestAverageNetworkOut = new MetricType("EC2SpotFleetRequestAverageNetworkOut");
/// <summary>
/// Constant ECSServiceAverageCPUUtilization for MetricType
/// </summary>
public static readonly MetricType ECSServiceAverageCPUUtilization = new MetricType("ECSServiceAverageCPUUtilization");
/// <summary>
/// Constant ECSServiceAverageMemoryUtilization for MetricType
/// </summary>
public static readonly MetricType ECSServiceAverageMemoryUtilization = new MetricType("ECSServiceAverageMemoryUtilization");
/// <summary>
/// Constant ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage for MetricType
/// </summary>
public static readonly MetricType ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage = new MetricType("ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage");
/// <summary>
/// Constant ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage for MetricType
/// </summary>
public static readonly MetricType ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage = new MetricType("ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage");
/// <summary>
/// Constant ElastiCachePrimaryEngineCPUUtilization for MetricType
/// </summary>
public static readonly MetricType ElastiCachePrimaryEngineCPUUtilization = new MetricType("ElastiCachePrimaryEngineCPUUtilization");
/// <summary>
/// Constant ElastiCacheReplicaEngineCPUUtilization for MetricType
/// </summary>
public static readonly MetricType ElastiCacheReplicaEngineCPUUtilization = new MetricType("ElastiCacheReplicaEngineCPUUtilization");
/// <summary>
/// Constant KafkaBrokerStorageUtilization for MetricType
/// </summary>
public static readonly MetricType KafkaBrokerStorageUtilization = new MetricType("KafkaBrokerStorageUtilization");
/// <summary>
/// Constant LambdaProvisionedConcurrencyUtilization for MetricType
/// </summary>
public static readonly MetricType LambdaProvisionedConcurrencyUtilization = new MetricType("LambdaProvisionedConcurrencyUtilization");
/// <summary>
/// Constant NeptuneReaderAverageCPUUtilization for MetricType
/// </summary>
public static readonly MetricType NeptuneReaderAverageCPUUtilization = new MetricType("NeptuneReaderAverageCPUUtilization");
/// <summary>
/// Constant RDSReaderAverageCPUUtilization for MetricType
/// </summary>
public static readonly MetricType RDSReaderAverageCPUUtilization = new MetricType("RDSReaderAverageCPUUtilization");
/// <summary>
/// Constant RDSReaderAverageDatabaseConnections for MetricType
/// </summary>
public static readonly MetricType RDSReaderAverageDatabaseConnections = new MetricType("RDSReaderAverageDatabaseConnections");
/// <summary>
/// Constant SageMakerVariantInvocationsPerInstance for MetricType
/// </summary>
public static readonly MetricType SageMakerVariantInvocationsPerInstance = new MetricType("SageMakerVariantInvocationsPerInstance");
/// <summary>
/// Constant SageMakerVariantProvisionedConcurrencyUtilization for MetricType
/// </summary>
public static readonly MetricType SageMakerVariantProvisionedConcurrencyUtilization = new MetricType("SageMakerVariantProvisionedConcurrencyUtilization");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public MetricType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static MetricType FindValue(string value)
{
return FindValue<MetricType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator MetricType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PolicyType.
/// </summary>
public class PolicyType : ConstantClass
{
/// <summary>
/// Constant StepScaling for PolicyType
/// </summary>
public static readonly PolicyType StepScaling = new PolicyType("StepScaling");
/// <summary>
/// Constant TargetTrackingScaling for PolicyType
/// </summary>
public static readonly PolicyType TargetTrackingScaling = new PolicyType("TargetTrackingScaling");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PolicyType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PolicyType FindValue(string value)
{
return FindValue<PolicyType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PolicyType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ScalableDimension.
/// </summary>
public class ScalableDimension : ConstantClass
{
/// <summary>
/// Constant AppstreamFleetDesiredCapacity for ScalableDimension
/// </summary>
public static readonly ScalableDimension AppstreamFleetDesiredCapacity = new ScalableDimension("appstream:fleet:DesiredCapacity");
/// <summary>
/// Constant CassandraTableReadCapacityUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension CassandraTableReadCapacityUnits = new ScalableDimension("cassandra:table:ReadCapacityUnits");
/// <summary>
/// Constant CassandraTableWriteCapacityUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension CassandraTableWriteCapacityUnits = new ScalableDimension("cassandra:table:WriteCapacityUnits");
/// <summary>
/// Constant ComprehendDocumentClassifierEndpointDesiredInferenceUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension ComprehendDocumentClassifierEndpointDesiredInferenceUnits = new ScalableDimension("comprehend:document-classifier-endpoint:DesiredInferenceUnits");
/// <summary>
/// Constant ComprehendEntityRecognizerEndpointDesiredInferenceUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension ComprehendEntityRecognizerEndpointDesiredInferenceUnits = new ScalableDimension("comprehend:entity-recognizer-endpoint:DesiredInferenceUnits");
/// <summary>
/// Constant CustomResourceResourceTypeProperty for ScalableDimension
/// </summary>
public static readonly ScalableDimension CustomResourceResourceTypeProperty = new ScalableDimension("custom-resource:ResourceType:Property");
/// <summary>
/// Constant DynamodbIndexReadCapacityUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension DynamodbIndexReadCapacityUnits = new ScalableDimension("dynamodb:index:ReadCapacityUnits");
/// <summary>
/// Constant DynamodbIndexWriteCapacityUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension DynamodbIndexWriteCapacityUnits = new ScalableDimension("dynamodb:index:WriteCapacityUnits");
/// <summary>
/// Constant DynamodbTableReadCapacityUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension DynamodbTableReadCapacityUnits = new ScalableDimension("dynamodb:table:ReadCapacityUnits");
/// <summary>
/// Constant DynamodbTableWriteCapacityUnits for ScalableDimension
/// </summary>
public static readonly ScalableDimension DynamodbTableWriteCapacityUnits = new ScalableDimension("dynamodb:table:WriteCapacityUnits");
/// <summary>
/// Constant Ec2SpotFleetRequestTargetCapacity for ScalableDimension
/// </summary>
public static readonly ScalableDimension Ec2SpotFleetRequestTargetCapacity = new ScalableDimension("ec2:spot-fleet-request:TargetCapacity");
/// <summary>
/// Constant EcsServiceDesiredCount for ScalableDimension
/// </summary>
public static readonly ScalableDimension EcsServiceDesiredCount = new ScalableDimension("ecs:service:DesiredCount");
/// <summary>
/// Constant ElasticacheReplicationGroupNodeGroups for ScalableDimension
/// </summary>
public static readonly ScalableDimension ElasticacheReplicationGroupNodeGroups = new ScalableDimension("elasticache:replication-group:NodeGroups");
/// <summary>
/// Constant ElasticacheReplicationGroupReplicas for ScalableDimension
/// </summary>
public static readonly ScalableDimension ElasticacheReplicationGroupReplicas = new ScalableDimension("elasticache:replication-group:Replicas");
/// <summary>
/// Constant ElasticmapreduceInstancegroupInstanceCount for ScalableDimension
/// </summary>
public static readonly ScalableDimension ElasticmapreduceInstancegroupInstanceCount = new ScalableDimension("elasticmapreduce:instancegroup:InstanceCount");
/// <summary>
/// Constant KafkaBrokerStorageVolumeSize for ScalableDimension
/// </summary>
public static readonly ScalableDimension KafkaBrokerStorageVolumeSize = new ScalableDimension("kafka:broker-storage:VolumeSize");
/// <summary>
/// Constant LambdaFunctionProvisionedConcurrency for ScalableDimension
/// </summary>
public static readonly ScalableDimension LambdaFunctionProvisionedConcurrency = new ScalableDimension("lambda:function:ProvisionedConcurrency");
/// <summary>
/// Constant NeptuneClusterReadReplicaCount for ScalableDimension
/// </summary>
public static readonly ScalableDimension NeptuneClusterReadReplicaCount = new ScalableDimension("neptune:cluster:ReadReplicaCount");
/// <summary>
/// Constant RdsClusterReadReplicaCount for ScalableDimension
/// </summary>
public static readonly ScalableDimension RdsClusterReadReplicaCount = new ScalableDimension("rds:cluster:ReadReplicaCount");
/// <summary>
/// Constant SagemakerVariantDesiredInstanceCount for ScalableDimension
/// </summary>
public static readonly ScalableDimension SagemakerVariantDesiredInstanceCount = new ScalableDimension("sagemaker:variant:DesiredInstanceCount");
/// <summary>
/// Constant SagemakerVariantDesiredProvisionedConcurrency for ScalableDimension
/// </summary>
public static readonly ScalableDimension SagemakerVariantDesiredProvisionedConcurrency = new ScalableDimension("sagemaker:variant:DesiredProvisionedConcurrency");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ScalableDimension(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ScalableDimension FindValue(string value)
{
return FindValue<ScalableDimension>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ScalableDimension(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ScalingActivityStatusCode.
/// </summary>
public class ScalingActivityStatusCode : ConstantClass
{
/// <summary>
/// Constant Failed for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Failed = new ScalingActivityStatusCode("Failed");
/// <summary>
/// Constant InProgress for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode InProgress = new ScalingActivityStatusCode("InProgress");
/// <summary>
/// Constant Overridden for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Overridden = new ScalingActivityStatusCode("Overridden");
/// <summary>
/// Constant Pending for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Pending = new ScalingActivityStatusCode("Pending");
/// <summary>
/// Constant Successful for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Successful = new ScalingActivityStatusCode("Successful");
/// <summary>
/// Constant Unfulfilled for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Unfulfilled = new ScalingActivityStatusCode("Unfulfilled");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ScalingActivityStatusCode(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ScalingActivityStatusCode FindValue(string value)
{
return FindValue<ScalingActivityStatusCode>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ScalingActivityStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ServiceNamespace.
/// </summary>
public class ServiceNamespace : ConstantClass
{
/// <summary>
/// Constant Appstream for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Appstream = new ServiceNamespace("appstream");
/// <summary>
/// Constant Cassandra for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Cassandra = new ServiceNamespace("cassandra");
/// <summary>
/// Constant Comprehend for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Comprehend = new ServiceNamespace("comprehend");
/// <summary>
/// Constant CustomResource for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace CustomResource = new ServiceNamespace("custom-resource");
/// <summary>
/// Constant Dynamodb for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Dynamodb = new ServiceNamespace("dynamodb");
/// <summary>
/// Constant Ec2 for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Ec2 = new ServiceNamespace("ec2");
/// <summary>
/// Constant Ecs for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Ecs = new ServiceNamespace("ecs");
/// <summary>
/// Constant Elasticache for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Elasticache = new ServiceNamespace("elasticache");
/// <summary>
/// Constant Elasticmapreduce for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Elasticmapreduce = new ServiceNamespace("elasticmapreduce");
/// <summary>
/// Constant Kafka for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Kafka = new ServiceNamespace("kafka");
/// <summary>
/// Constant Lambda for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Lambda = new ServiceNamespace("lambda");
/// <summary>
/// Constant Neptune for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Neptune = new ServiceNamespace("neptune");
/// <summary>
/// Constant Rds for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Rds = new ServiceNamespace("rds");
/// <summary>
/// Constant Sagemaker for ServiceNamespace
/// </summary>
public static readonly ServiceNamespace Sagemaker = new ServiceNamespace("sagemaker");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ServiceNamespace(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ServiceNamespace FindValue(string value)
{
return FindValue<ServiceNamespace>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ServiceNamespace(string value)
{
return FindValue(value);
}
}
} | 670 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.ApplicationAutoScaling.Internal
{
/// <summary>
/// Amazon ApplicationAutoScaling endpoint provider.
/// Resolves endpoint for given set of ApplicationAutoScalingEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonApplicationAutoScalingEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for ApplicationAutoScalingEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if (IsSet(refs["Endpoint"]))
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (IsSet(refs["Region"]))
{
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
if (Equals("aws-us-gov", GetAttr(refs["PartitionResult"], "name")))
{
return new Endpoint(Interpolate(@"https://application-autoscaling.{Region}.amazonaws.com", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
return new Endpoint(Interpolate(@"https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
}
throw new AmazonClientException("Invalid Configuration: Missing Region");
throw new AmazonClientException("Cannot resolve endpoint");
}
}
} | 107 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.ApplicationAutoScaling.Endpoints;
#pragma warning disable 1591
namespace Amazon.ApplicationAutoScaling.Internal
{
/// <summary>
/// Amazon ApplicationAutoScaling endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for ApplicationAutoScaling service requests.
/// Collects values for ApplicationAutoScalingEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses ApplicationAutoScalingEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonApplicationAutoScalingEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonApplicationAutoScalingConfig)requestContext.ClientConfig;
var result = new ApplicationAutoScalingEndpointParameters();
result.Region = config.RegionEndpoint?.SystemName;
result.UseDualStack = config.UseDualstackEndpoint;
result.UseFIPS = config.UseFIPSEndpoint;
result.Endpoint = config.ServiceURL;
// The region needs to be determined from the ServiceURL if not set.
var regionEndpoint = config.RegionEndpoint;
if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL))
{
var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL);
result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName;
}
// To support legacy endpoint overridding rules in the endpoints.json
if (result.Region == "us-east-1-regional")
{
result.Region = "us-east-1";
}
// Use AlternateEndpoint region override if set
if (requestContext.Request.AlternateEndpoint != null)
{
result.Region = requestContext.Request.AlternateEndpoint.SystemName;
}
// Assign staticContextParams and contextParam per operation
return result;
}
}
} | 83 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.ApplicationAutoScaling.Internal
{
/// <summary>
/// Service metadata for Amazon ApplicationAutoScaling service
/// </summary>
public partial class AmazonApplicationAutoScalingMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Application Auto Scaling";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
} | 55 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a CloudWatch alarm associated with a scaling policy.
/// </summary>
public partial class Alarm
{
private string _alarmARN;
private string _alarmName;
/// <summary>
/// Gets and sets the property AlarmARN.
/// <para>
/// The Amazon Resource Name (ARN) of the alarm.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string AlarmARN
{
get { return this._alarmARN; }
set { this._alarmARN = value; }
}
// Check to see if AlarmARN property is set
internal bool IsSetAlarmARN()
{
return this._alarmARN != null;
}
/// <summary>
/// Gets and sets the property AlarmName.
/// <para>
/// The name of the alarm.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string AlarmName
{
get { return this._alarmName; }
set { this._alarmName = value; }
}
// Check to see if AlarmName property is set
internal bool IsSetAlarmName()
{
return this._alarmName != 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Base class for ApplicationAutoScaling operation requests.
/// </summary>
public partial class AmazonApplicationAutoScalingRequest : AmazonWebServiceRequest
{
}
} | 30 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ConcurrentUpdateException : AmazonApplicationAutoScalingException
{
/// <summary>
/// Constructs a new ConcurrentUpdateException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ConcurrentUpdateException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ConcurrentUpdateException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ConcurrentUpdateException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ConcurrentUpdateException
/// </summary>
/// <param name="innerException"></param>
public ConcurrentUpdateException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ConcurrentUpdateException
/// </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 ConcurrentUpdateException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ConcurrentUpdateException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConcurrentUpdateException(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 ConcurrentUpdateException 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 ConcurrentUpdateException(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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a CloudWatch metric of your choosing for a target tracking scaling policy
/// to use with Application Auto Scaling.
///
///
/// <para>
/// For information about the available metrics for a service, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon
/// Web Services services that publish CloudWatch metrics</a> in the <i>Amazon CloudWatch
/// User Guide</i>.
/// </para>
///
/// <para>
/// To create your customized metric specification:
/// </para>
/// <ul> <li>
/// <para>
/// Add values for each required parameter from CloudWatch. You can use an existing metric,
/// or a new metric that you create. To use your own metric, you must first publish the
/// metric to CloudWatch. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publish
/// custom metrics</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </li> <li>
/// <para>
/// Choose a metric that changes proportionally with capacity. The value of the metric
/// should increase or decrease in inverse proportion to the number of capacity units.
/// That is, the value of the metric should decrease when capacity increases, and increase
/// when capacity decreases.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the CloudWatch terminology below, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html">Amazon
/// CloudWatch concepts</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </summary>
public partial class CustomizedMetricSpecification
{
private List<MetricDimension> _dimensions = new List<MetricDimension>();
private string _metricName;
private List<TargetTrackingMetricDataQuery> _metrics = new List<TargetTrackingMetricDataQuery>();
private string _awsNamespace;
private MetricStatistic _statistic;
private string _unit;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions of the metric.
/// </para>
///
/// <para>
/// Conditional: If you published your metric with dimensions, you must specify the same
/// dimensions in your scaling policy.
/// </para>
/// </summary>
public List<MetricDimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric. To get the exact metric name, namespace, and dimensions, inspect
/// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a>
/// object that's returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.
/// </para>
/// </summary>
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// The metrics to include in the target tracking scaling policy, as a metric data query.
/// This can include both raw metric and metric math expressions.
/// </para>
/// </summary>
public List<TargetTrackingMetricDataQuery> 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;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric.
/// </para>
/// </summary>
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property Statistic.
/// <para>
/// The statistic of the metric.
/// </para>
/// </summary>
public MetricStatistic Statistic
{
get { return this._statistic; }
set { this._statistic = value; }
}
// Check to see if Statistic property is set
internal bool IsSetStatistic()
{
return this._statistic != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit of the metric. For a complete list of the units that CloudWatch supports,
/// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a>
/// data type in the <i>Amazon CloudWatch API Reference</i>.
/// </para>
/// </summary>
public string Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
} | 193 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteScalingPolicy operation.
/// Deletes the specified scaling policy for an Application Auto Scaling scalable target.
///
///
/// <para>
/// Deleting a step scaling policy deletes the underlying alarm action, but does not delete
/// the CloudWatch alarm associated with the scaling policy, even if it no longer has
/// an associated action.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#delete-step-scaling-policy">Delete
/// a step scaling policy</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#delete-target-tracking-policy">Delete
/// a target tracking scaling policy</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DeleteScalingPolicyRequest : AmazonApplicationAutoScalingRequest
{
private string _policyName;
private string _resourceId;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name of the scaling 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;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource associated with the scalable target. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
}
} | 333 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteScalingPolicy operation.
/// </summary>
public partial class DeleteScalingPolicyResponse : 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteScheduledAction operation.
/// Deletes the specified scheduled action for an Application Auto Scaling scalable target.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/scheduled-scaling-additional-cli-commands.html#delete-scheduled-action">Delete
/// a scheduled action</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DeleteScheduledActionRequest : AmazonApplicationAutoScalingRequest
{
private string _resourceId;
private ScalableDimension _scalableDimension;
private string _scheduledActionName;
private ServiceNamespace _serviceNamespace;
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource associated with the scheduled action. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of the scheduled action.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
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;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
}
} | 326 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeregisterScalableTarget operation.
/// Deregisters an Application Auto Scaling scalable target when you have finished using
/// it. To see which resources have been registered, use <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>.
///
///
/// <note>
/// <para>
/// Deregistering a scalable target deletes the scaling policies and the scheduled actions
/// that are associated with it.
/// </para>
/// </note>
/// </summary>
public partial class DeregisterScalableTargetRequest : AmazonApplicationAutoScalingRequest
{
private string _resourceId;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource associated with the scalable target. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension associated with the scalable target. This string consists of
/// the service namespace, resource type, and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
}
} | 309 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the DeregisterScalableTarget operation.
/// </summary>
public partial class DeregisterScalableTargetResponse : 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeScalableTargets operation.
/// Gets information about the scalable targets in the specified namespace.
///
///
/// <para>
/// You can filter the results using <code>ResourceIds</code> and <code>ScalableDimension</code>.
/// </para>
/// </summary>
public partial class DescribeScalableTargetsRequest : AmazonApplicationAutoScalingRequest
{
private int? _maxResults;
private string _nextToken;
private List<string> _resourceIds = new List<string>();
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of scalable targets. This value can be between 1 and 50. The default
/// value is 50.
/// </para>
///
/// <para>
/// If this parameter is used, the operation returns up to <code>MaxResults</code> results
/// at a time, along with a <code>NextToken</code> value. To get the next set of results,
/// include the <code>NextToken</code> value in a subsequent call. If this parameter is
/// not used, the operation returns up to 50 results and a <code>NextToken</code> value,
/// if applicable.
/// </para>
/// </summary>
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results.
/// </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 ResourceIds.
/// <para>
/// The identifier of the resource associated with the scalable target. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Max=50)]
public List<string> ResourceIds
{
get { return this._resourceIds; }
set { this._resourceIds = value; }
}
// Check to see if ResourceIds property is set
internal bool IsSetResourceIds()
{
return this._resourceIds != null && this._resourceIds.Count > 0;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension associated with the scalable target. This string consists of
/// the service namespace, resource type, and scaling property. If you specify a scalable
/// dimension, you must also specify a resource ID.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
}
} | 352 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeScalableTargets operation.
/// </summary>
public partial class DescribeScalableTargetsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ScalableTarget> _scalableTargets = new List<ScalableTarget>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token required to get the next set of results. This value is <code>null</code>
/// if there are no more results 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 ScalableTargets.
/// <para>
/// The scalable targets that match the request parameters.
/// </para>
/// </summary>
public List<ScalableTarget> ScalableTargets
{
get { return this._scalableTargets; }
set { this._scalableTargets = value; }
}
// Check to see if ScalableTargets property is set
internal bool IsSetScalableTargets()
{
return this._scalableTargets != null && this._scalableTargets.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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeScalingActivities operation.
/// Provides descriptive information about the scaling activities in the specified namespace
/// from the previous six weeks.
///
///
/// <para>
/// You can filter the results using <code>ResourceId</code> and <code>ScalableDimension</code>.
/// </para>
///
/// <para>
/// For information about viewing scaling activities using the Amazon Web Services CLI,
/// see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html">Scaling
/// activities for Application Auto Scaling</a>.
/// </para>
/// </summary>
public partial class DescribeScalingActivitiesRequest : AmazonApplicationAutoScalingRequest
{
private bool? _includeNotScaledActivities;
private int? _maxResults;
private string _nextToken;
private string _resourceId;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
/// <summary>
/// Gets and sets the property IncludeNotScaledActivities.
/// <para>
/// Specifies whether to include activities that aren't scaled (<i>not scaled activities</i>)
/// in the response. Not scaled activities are activities that aren't completed or started
/// for various reasons, such as preventing infinite scaling loops. For help interpreting
/// the not scaled reason details in the response, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html">Scaling
/// activities for Application Auto Scaling</a>.
/// </para>
/// </summary>
public bool IncludeNotScaledActivities
{
get { return this._includeNotScaledActivities.GetValueOrDefault(); }
set { this._includeNotScaledActivities = value; }
}
// Check to see if IncludeNotScaledActivities property is set
internal bool IsSetIncludeNotScaledActivities()
{
return this._includeNotScaledActivities.HasValue;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of scalable targets. This value can be between 1 and 50. The default
/// value is 50.
/// </para>
///
/// <para>
/// If this parameter is used, the operation returns up to <code>MaxResults</code> results
/// at a time, along with a <code>NextToken</code> value. To get the next set of results,
/// include the <code>NextToken</code> value in a subsequent call. If this parameter is
/// not used, the operation returns up to 50 results and a <code>NextToken</code> value,
/// if applicable.
/// </para>
/// </summary>
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results.
/// </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 ResourceId.
/// <para>
/// The identifier of the resource associated with the scaling activity. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property. If you specify a scalable dimension, you must also specify a
/// resource ID.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
}
} | 382 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeScalingActivities operation.
/// </summary>
public partial class DescribeScalingActivitiesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ScalingActivity> _scalingActivities = new List<ScalingActivity>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token required to get the next set of results. This value is <code>null</code>
/// if there are no more results 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 ScalingActivities.
/// <para>
/// A list of scaling activity objects.
/// </para>
/// </summary>
public List<ScalingActivity> ScalingActivities
{
get { return this._scalingActivities; }
set { this._scalingActivities = value; }
}
// Check to see if ScalingActivities property is set
internal bool IsSetScalingActivities()
{
return this._scalingActivities != null && this._scalingActivities.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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeScalingPolicies operation.
/// Describes the Application Auto Scaling scaling policies for the specified service
/// namespace.
///
///
/// <para>
/// You can filter the results using <code>ResourceId</code>, <code>ScalableDimension</code>,
/// and <code>PolicyNames</code>.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html">Target
/// tracking scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html">Step
/// scaling policies</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeScalingPoliciesRequest : AmazonApplicationAutoScalingRequest
{
private int? _maxResults;
private string _nextToken;
private List<string> _policyNames = new List<string>();
private string _resourceId;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of scalable targets. This value can be between 1 and 10. The default
/// value is 10.
/// </para>
///
/// <para>
/// If this parameter is used, the operation returns up to <code>MaxResults</code> results
/// at a time, along with a <code>NextToken</code> value. To get the next set of results,
/// include the <code>NextToken</code> value in a subsequent call. If this parameter is
/// not used, the operation returns up to 10 results and a <code>NextToken</code> value,
/// if applicable.
/// </para>
/// </summary>
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results.
/// </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 the scaling policies to describe.
/// </para>
/// </summary>
[AWSProperty(Max=50)]
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 ResourceId.
/// <para>
/// The identifier of the resource associated with the scaling policy. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property. If you specify a scalable dimension, you must also specify a
/// resource ID.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
}
} | 380 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeScalingPolicies operation.
/// </summary>
public partial class DescribeScalingPoliciesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ScalingPolicy> _scalingPolicies = new List<ScalingPolicy>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token required to get the next set of results. This value is <code>null</code>
/// if there are no more results 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>
/// Information about 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;
}
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DescribeScheduledActions operation.
/// Describes the Application Auto Scaling scheduled actions for the specified service
/// namespace.
///
///
/// <para>
/// You can filter the results using the <code>ResourceId</code>, <code>ScalableDimension</code>,
/// and <code>ScheduledActionNames</code> parameters.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html">Scheduled
/// scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/scheduled-scaling-additional-cli-commands.html">Managing
/// scheduled scaling</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DescribeScheduledActionsRequest : AmazonApplicationAutoScalingRequest
{
private int? _maxResults;
private string _nextToken;
private string _resourceId;
private ScalableDimension _scalableDimension;
private List<string> _scheduledActionNames = new List<string>();
private ServiceNamespace _serviceNamespace;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of scheduled action results. This value can be between 1 and 50.
/// The default value is 50.
/// </para>
///
/// <para>
/// If this parameter is used, the operation returns up to <code>MaxResults</code> results
/// at a time, along with a <code>NextToken</code> value. To get the next set of results,
/// include the <code>NextToken</code> value in a subsequent call. If this parameter is
/// not used, the operation returns up to 50 results and a <code>NextToken</code> value,
/// if applicable.
/// </para>
/// </summary>
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results.
/// </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 ResourceId.
/// <para>
/// The identifier of the resource associated with the scheduled action. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property. If you specify a scalable dimension, you must also specify a
/// resource ID.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionNames.
/// <para>
/// The names of the scheduled actions to describe.
/// </para>
/// </summary>
[AWSProperty(Max=50)]
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 ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
}
} | 380 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the DescribeScheduledActions operation.
/// </summary>
public partial class DescribeScheduledActionsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ScheduledAction> _scheduledActions = new List<ScheduledAction>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token required to get the next set of results. This value is <code>null</code>
/// if there are no more results 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 ScheduledActions.
/// <para>
/// Information about the scheduled actions.
/// </para>
/// </summary>
public List<ScheduledAction> ScheduledActions
{
get { return this._scheduledActions; }
set { this._scheduledActions = value; }
}
// Check to see if ScheduledActions property is set
internal bool IsSetScheduledActions()
{
return this._scheduledActions != null && this._scheduledActions.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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Failed access to resources caused an exception. This exception is thrown when Application
/// Auto Scaling is unable to retrieve the alarms associated with a scaling policy due
/// to a client error, for example, if the role ARN specified for a scalable target does
/// not have permission to call the CloudWatch <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a>
/// on your behalf.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class FailedResourceAccessException : AmazonApplicationAutoScalingException
{
/// <summary>
/// Constructs a new FailedResourceAccessException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public FailedResourceAccessException(string message)
: base(message) {}
/// <summary>
/// Construct instance of FailedResourceAccessException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public FailedResourceAccessException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of FailedResourceAccessException
/// </summary>
/// <param name="innerException"></param>
public FailedResourceAccessException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of FailedResourceAccessException
/// </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 FailedResourceAccessException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of FailedResourceAccessException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public FailedResourceAccessException(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 FailedResourceAccessException 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 FailedResourceAccessException(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
}
} | 128 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// The service encountered an internal error.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServiceException : AmazonApplicationAutoScalingException
{
/// <summary>
/// Constructs a new InternalServiceException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServiceException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServiceException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </summary>
/// <param name="innerException"></param>
public InternalServiceException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </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 InternalServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServiceException(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 InternalServiceException 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 InternalServiceException(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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// The next token supplied was invalid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidNextTokenException : AmazonApplicationAutoScalingException
{
/// <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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// A per-account resource limit is exceeded. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html">Application
/// Auto Scaling service quotas</a>.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class LimitExceededException : AmazonApplicationAutoScalingException
{
/// <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
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// Returns all the tags on the specified Application Auto Scaling scalable target.
///
///
/// <para>
/// For general information about tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services resources</a> in the <i>Amazon Web Services General Reference</i>.
/// </para>
/// </summary>
public partial class ListTagsForResourceRequest : AmazonApplicationAutoScalingRequest
{
private string _resourceARN;
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// Specify the ARN of the scalable target.
/// </para>
///
/// <para>
/// For example: <code>arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123</code>
///
/// </para>
///
/// <para>
/// To get the ARN for a scalable target, use <a>DescribeScalableTargets</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
}
} | 74 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A list of tags. Each tag consists of a tag key and a tag value.
/// </para>
/// </summary>
public Dictionary<string, string> 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;
}
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Describes the dimension names and values associated with a metric.
/// </summary>
public partial class MetricDimension
{
private string _name;
private string _value;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the dimension.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the dimension.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Describes the reason for an activity that isn't scaled (<i>not scaled activity</i>),
/// in machine-readable format. For help interpreting the not scaled reason details, see
/// <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html">Scaling
/// activities for Application Auto Scaling</a>.
/// </summary>
public partial class NotScaledReason
{
private string _code;
private int? _currentCapacity;
private int? _maxCapacity;
private int? _minCapacity;
/// <summary>
/// Gets and sets the property Code.
/// <para>
/// A code that represents the reason for not scaling.
/// </para>
///
/// <para>
/// Valid values:
/// </para>
/// <ul> <li>
/// <para>
/// AutoScalingAnticipatedFlapping
/// </para>
/// </li> <li>
/// <para>
/// TargetServicePutResourceAsUnscalable
/// </para>
/// </li> <li>
/// <para>
/// AlreadyAtMaxCapacity
/// </para>
/// </li> <li>
/// <para>
/// AlreadyAtMinCapacity
/// </para>
/// </li> <li>
/// <para>
/// AlreadyAtDesiredCapacity
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
/// <summary>
/// Gets and sets the property CurrentCapacity.
/// <para>
/// The current capacity.
/// </para>
/// </summary>
public int CurrentCapacity
{
get { return this._currentCapacity.GetValueOrDefault(); }
set { this._currentCapacity = value; }
}
// Check to see if CurrentCapacity property is set
internal bool IsSetCurrentCapacity()
{
return this._currentCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property MaxCapacity.
/// <para>
/// The maximum capacity.
/// </para>
/// </summary>
public int MaxCapacity
{
get { return this._maxCapacity.GetValueOrDefault(); }
set { this._maxCapacity = value; }
}
// Check to see if MaxCapacity property is set
internal bool IsSetMaxCapacity()
{
return this._maxCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property MinCapacity.
/// <para>
/// The minimum capacity.
/// </para>
/// </summary>
public int MinCapacity
{
get { return this._minCapacity.GetValueOrDefault(); }
set { this._minCapacity = value; }
}
// Check to see if MinCapacity property is set
internal bool IsSetMinCapacity()
{
return this._minCapacity.HasValue;
}
}
} | 143 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// The specified object could not be found. For any operation that depends on the existence
/// of a scalable target, this exception is thrown if the scalable target with the specified
/// service namespace, resource ID, and scalable dimension does not exist. For any operation
/// that deletes or deregisters a resource, this exception is thrown if the resource cannot
/// be found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ObjectNotFoundException : AmazonApplicationAutoScalingException
{
/// <summary>
/// Constructs a new ObjectNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ObjectNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ObjectNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ObjectNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ObjectNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ObjectNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ObjectNotFoundException
/// </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 ObjectNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ObjectNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ObjectNotFoundException(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 ObjectNotFoundException 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 ObjectNotFoundException(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
}
} | 128 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a predefined metric for a target tracking scaling policy to use with Application
/// Auto Scaling.
///
///
/// <para>
/// Only the Amazon Web Services that you're using send metrics to Amazon CloudWatch.
/// To determine whether a desired metric already exists by looking up its namespace and
/// dimension using the CloudWatch metrics dashboard in the console, follow the procedure
/// in <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html">Building
/// dashboards with CloudWatch</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class PredefinedMetricSpecification
{
private MetricType _predefinedMetricType;
private string _resourceLabel;
/// <summary>
/// Gets and sets the property PredefinedMetricType.
/// <para>
/// The metric type. The <code>ALBRequestCountPerTarget</code> metric type applies only
/// to Spot Fleets and ECS services.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public MetricType PredefinedMetricType
{
get { return this._predefinedMetricType; }
set { this._predefinedMetricType = value; }
}
// Check to see if PredefinedMetricType property is set
internal bool IsSetPredefinedMetricType()
{
return this._predefinedMetricType != null;
}
/// <summary>
/// Gets and sets the property ResourceLabel.
/// <para>
/// Identifies the resource associated with the metric type. You can't specify a resource
/// label unless the metric type is <code>ALBRequestCountPerTarget</code> and there is
/// a target group attached to the Spot Fleet or ECS service.
/// </para>
///
/// <para>
/// You create the resource label by appending the final portion of the load balancer
/// ARN and the final portion of the target group ARN into a single value, separated by
/// a forward slash (/). The format of the resource label is:
/// </para>
///
/// <para>
/// <code>app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff</code>.
/// </para>
///
/// <para>
/// Where:
/// </para>
/// <ul> <li>
/// <para>
/// app/<load-balancer-name>/<load-balancer-id> is the final portion of the
/// load balancer ARN
/// </para>
/// </li> <li>
/// <para>
/// targetgroup/<target-group-name>/<target-group-id> is the final portion
/// of the target group ARN.
/// </para>
/// </li> </ul>
/// <para>
/// To find the ARN for an Application Load Balancer, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html">DescribeLoadBalancers</a>
/// API operation. To find the ARN for the target group, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html">DescribeTargetGroups</a>
/// API operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string ResourceLabel
{
get { return this._resourceLabel; }
set { this._resourceLabel = value; }
}
// Check to see if ResourceLabel property is set
internal bool IsSetResourceLabel()
{
return this._resourceLabel != null;
}
}
} | 121 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the PutScalingPolicy operation.
/// Creates or updates a scaling policy for an Application Auto Scaling scalable target.
///
///
/// <para>
/// Each scalable target is identified by a service namespace, resource ID, and scalable
/// dimension. A scaling policy applies to the scalable target identified by those three
/// attributes. You cannot create a scaling policy until you have registered the resource
/// as a scalable target.
/// </para>
///
/// <para>
/// Multiple scaling policies can be in force at the same time for the same scalable target.
/// You can have one or more target tracking scaling policies, one or more step scaling
/// policies, or both. However, there is a chance that multiple policies could conflict,
/// instructing the scalable target to scale out or in at the same time. Application Auto
/// Scaling gives precedence to the policy that provides the largest capacity for both
/// scale out and scale in. For example, if one policy increases capacity by 3, another
/// policy increases capacity by 200 percent, and the current capacity is 10, Application
/// Auto Scaling uses the policy with the highest calculated capacity (200% of 10 = 20)
/// and scales out to 30.
/// </para>
///
/// <para>
/// We recommend caution, however, when using target tracking scaling policies with step
/// scaling policies because conflicts between these policies can cause undesirable behavior.
/// For example, if the step scaling policy initiates a scale-in activity before the target
/// tracking policy is ready to scale in, the scale-in activity will not be blocked. After
/// the scale-in activity completes, the target tracking policy could instruct the scalable
/// target to scale out again.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html">Target
/// tracking scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html">Step
/// scaling policies</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// <note>
/// <para>
/// If a scalable target is deregistered, the scalable target is no longer available to
/// use scaling policies. Any scaling policies that were specified for the scalable target
/// are deleted.
/// </para>
/// </note>
/// </summary>
public partial class PutScalingPolicyRequest : AmazonApplicationAutoScalingRequest
{
private string _policyName;
private PolicyType _policyType;
private string _resourceId;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
private StepScalingPolicyConfiguration _stepScalingPolicyConfiguration;
private TargetTrackingScalingPolicyConfiguration _targetTrackingScalingPolicyConfiguration;
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name of the scaling policy.
/// </para>
///
/// <para>
/// You cannot change the name of a scaling policy, but you can delete the original scaling
/// policy and create a new scaling policy with the same settings and a different name.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
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 PolicyType.
/// <para>
/// The scaling policy type. This parameter is required if you are creating a scaling
/// policy.
/// </para>
///
/// <para>
/// The following policy types are supported:
/// </para>
///
/// <para>
/// <code>TargetTrackingScaling</code>—Not supported for Amazon EMR
/// </para>
///
/// <para>
/// <code>StepScaling</code>—Not supported for DynamoDB, Amazon Comprehend, Lambda, Amazon
/// Keyspaces, Amazon MSK, Amazon ElastiCache, or Neptune.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html">Target
/// tracking scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html">Step
/// scaling policies</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public PolicyType PolicyType
{
get { return this._policyType; }
set { this._policyType = value; }
}
// Check to see if PolicyType property is set
internal bool IsSetPolicyType()
{
return this._policyType != null;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource associated with the scaling policy. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
/// <summary>
/// Gets and sets the property StepScalingPolicyConfiguration.
/// <para>
/// A step scaling policy.
/// </para>
///
/// <para>
/// This parameter is required if you are creating a policy and the policy type is <code>StepScaling</code>.
/// </para>
/// </summary>
public StepScalingPolicyConfiguration StepScalingPolicyConfiguration
{
get { return this._stepScalingPolicyConfiguration; }
set { this._stepScalingPolicyConfiguration = value; }
}
// Check to see if StepScalingPolicyConfiguration property is set
internal bool IsSetStepScalingPolicyConfiguration()
{
return this._stepScalingPolicyConfiguration != null;
}
/// <summary>
/// Gets and sets the property TargetTrackingScalingPolicyConfiguration.
/// <para>
/// A target tracking scaling policy. Includes support for predefined or customized metrics.
/// </para>
///
/// <para>
/// This parameter is required if you are creating a policy and the policy type is <code>TargetTrackingScaling</code>.
/// </para>
/// </summary>
public TargetTrackingScalingPolicyConfiguration TargetTrackingScalingPolicyConfiguration
{
get { return this._targetTrackingScalingPolicyConfiguration; }
set { this._targetTrackingScalingPolicyConfiguration = value; }
}
// Check to see if TargetTrackingScalingPolicyConfiguration property is set
internal bool IsSetTargetTrackingScalingPolicyConfiguration()
{
return this._targetTrackingScalingPolicyConfiguration != null;
}
}
} | 452 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the PutScalingPolicy operation.
/// </summary>
public partial class PutScalingPolicyResponse : AmazonWebServiceResponse
{
private List<Alarm> _alarms = new List<Alarm>();
private string _policyARN;
/// <summary>
/// Gets and sets the property Alarms.
/// <para>
/// The CloudWatch alarms created for the target tracking scaling policy.
/// </para>
/// </summary>
public List<Alarm> Alarms
{
get { return this._alarms; }
set { this._alarms = value; }
}
// Check to see if Alarms property is set
internal bool IsSetAlarms()
{
return this._alarms != null && this._alarms.Count > 0;
}
/// <summary>
/// Gets and sets the property PolicyARN.
/// <para>
/// The Amazon Resource Name (ARN) of the resulting scaling policy.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string PolicyARN
{
get { return this._policyARN; }
set { this._policyARN = value; }
}
// Check to see if PolicyARN property is set
internal bool IsSetPolicyARN()
{
return this._policyARN != null;
}
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the PutScheduledAction operation.
/// Creates or updates a scheduled action for an Application Auto Scaling scalable target.
///
///
///
/// <para>
/// Each scalable target is identified by a service namespace, resource ID, and scalable
/// dimension. A scheduled action applies to the scalable target identified by those three
/// attributes. You cannot create a scheduled action until you have registered the resource
/// as a scalable target.
/// </para>
///
/// <para>
/// When you specify start and end times with a recurring schedule using a cron expression
/// or rates, they form the boundaries for when the recurring action starts and stops.
/// </para>
///
/// <para>
/// To update a scheduled action, specify the parameters that you want to change. If you
/// don't specify start and end times, the old values are deleted.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html">Scheduled
/// scaling</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// <note>
/// <para>
/// If a scalable target is deregistered, the scalable target is no longer available to
/// run scheduled actions. Any scheduled actions that were specified for the scalable
/// target are deleted.
/// </para>
/// </note>
/// </summary>
public partial class PutScheduledActionRequest : AmazonApplicationAutoScalingRequest
{
private DateTime? _endTime;
private string _resourceId;
private ScalableDimension _scalableDimension;
private ScalableTargetAction _scalableTargetAction;
private string _schedule;
private string _scheduledActionName;
private ServiceNamespace _serviceNamespace;
private DateTime? _startTime;
private string _timezone;
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The date and time for the recurring schedule to end, in UTC.
/// </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 ResourceId.
/// <para>
/// The identifier of the resource associated with the scheduled action. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ScalableTargetAction.
/// <para>
/// The new minimum and maximum capacity. You can set both values or just one. At the
/// scheduled time, if the current capacity is below the minimum capacity, Application
/// Auto Scaling scales out to the minimum capacity. If the current capacity is above
/// the maximum capacity, Application Auto Scaling scales in to the maximum capacity.
/// </para>
/// </summary>
public ScalableTargetAction ScalableTargetAction
{
get { return this._scalableTargetAction; }
set { this._scalableTargetAction = value; }
}
// Check to see if ScalableTargetAction property is set
internal bool IsSetScalableTargetAction()
{
return this._scalableTargetAction != null;
}
/// <summary>
/// Gets and sets the property Schedule.
/// <para>
/// The schedule for this action. The following formats are supported:
/// </para>
/// <ul> <li>
/// <para>
/// At expressions - "<code>at(<i>yyyy</i>-<i>mm</i>-<i>dd</i>T<i>hh</i>:<i>mm</i>:<i>ss</i>)</code>"
/// </para>
/// </li> <li>
/// <para>
/// Rate expressions - "<code>rate(<i>value</i> <i>unit</i>)</code>"
/// </para>
/// </li> <li>
/// <para>
/// Cron expressions - "<code>cron(<i>fields</i>)</code>"
/// </para>
/// </li> </ul>
/// <para>
/// At expressions are useful for one-time schedules. Cron expressions are useful for
/// scheduled actions that run periodically at a specified date and time, and rate expressions
/// are useful for scheduled actions that run at a regular interval.
/// </para>
///
/// <para>
/// At and cron expressions use Universal Coordinated Time (UTC) by default.
/// </para>
///
/// <para>
/// The cron format consists of six fields separated by white spaces: [Minutes] [Hours]
/// [Day_of_Month] [Month] [Day_of_Week] [Year].
/// </para>
///
/// <para>
/// For rate expressions, <i>value</i> is a positive integer and <i>unit</i> is <code>minute</code>
/// | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code>
/// | <code>days</code>.
/// </para>
///
/// <para>
/// For more information and examples, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/examples-scheduled-actions.html">Example
/// scheduled actions for Application Auto Scaling</a> in the <i>Application Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string Schedule
{
get { return this._schedule; }
set { this._schedule = value; }
}
// Check to see if Schedule property is set
internal bool IsSetSchedule()
{
return this._schedule != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of the scheduled action. This name must be unique among all other scheduled
/// actions on the specified scalable target.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
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;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The date and time for this scheduled action to start, in UTC.
/// </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 Timezone.
/// <para>
/// Specifies the time zone used when setting a scheduled action by using an at or cron
/// expression. If a time zone is not provided, UTC is used by default.
/// </para>
///
/// <para>
/// Valid values are the canonical names of the IANA time zones supported by Joda-Time
/// (such as <code>Etc/GMT+9</code> or <code>Pacific/Tahiti</code>). For more information,
/// see <a href="https://www.joda.org/joda-time/timezones.html">https://www.joda.org/joda-time/timezones.html</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string Timezone
{
get { return this._timezone; }
set { this._timezone = value; }
}
// Check to see if Timezone property is set
internal bool IsSetTimezone()
{
return this._timezone != null;
}
}
} | 498 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the PutScheduledAction operation.
/// </summary>
public partial class PutScheduledActionResponse : 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the RegisterScalableTarget operation.
/// Registers or updates a scalable target, which is the resource that you want to scale.
///
///
/// <para>
/// Scalable targets are uniquely identified by the combination of resource ID, scalable
/// dimension, and namespace, which represents some capacity dimension of the underlying
/// service.
/// </para>
///
/// <para>
/// When you register a new scalable target, you must specify values for the minimum and
/// maximum capacity. If the specified resource is not active in the target service, this
/// operation does not change the resource's current capacity. Otherwise, it changes the
/// resource's current capacity to a value that is inside of this range.
/// </para>
///
/// <para>
/// If you add a scaling policy, current capacity is adjustable within the specified range
/// when scaling starts. Application Auto Scaling scaling policies will not scale capacity
/// to values that are outside of the minimum and maximum range.
/// </para>
///
/// <para>
/// After you register a scalable target, you do not need to register it again to use
/// other Application Auto Scaling operations. To see which resources have been registered,
/// use <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>.
/// You can also view the scaling policies for a service namespace by using <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>.
/// If you no longer need a scalable target, you can deregister it by using <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DeregisterScalableTarget.html">DeregisterScalableTarget</a>.
/// </para>
///
/// <para>
/// To update a scalable target, specify the parameters that you want to change. Include
/// the parameters that identify the scalable target: resource ID, scalable dimension,
/// and namespace. Any parameters that you don't specify are not changed by this update
/// request.
/// </para>
/// <note>
/// <para>
/// If you call the <code>RegisterScalableTarget</code> API operation to create a scalable
/// target, there might be a brief delay until the operation achieves <a href="https://en.wikipedia.org/wiki/Eventual_consistency">eventual
/// consistency</a>. You might become aware of this brief delay if you get unexpected
/// errors when performing sequential operations. The typical strategy is to retry the
/// request, and some Amazon Web Services SDKs include automatic backoff and retry logic.
/// </para>
///
/// <para>
/// If you call the <code>RegisterScalableTarget</code> API operation to update an existing
/// scalable target, Application Auto Scaling retrieves the current capacity of the resource.
/// If it's below the minimum capacity or above the maximum capacity, Application Auto
/// Scaling adjusts the capacity of the scalable target to place it within these bounds,
/// even if you don't include the <code>MinCapacity</code> or <code>MaxCapacity</code>
/// request parameters.
/// </para>
/// </note>
/// </summary>
public partial class RegisterScalableTargetRequest : AmazonApplicationAutoScalingRequest
{
private int? _maxCapacity;
private int? _minCapacity;
private string _resourceId;
private string _roleARN;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
private SuspendedState _suspendedState;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property MaxCapacity.
/// <para>
/// The maximum value that you plan to scale out to. When a scaling policy is in effect,
/// Application Auto Scaling can scale out (expand) as needed to the maximum capacity
/// limit in response to changing demand. This property is required when registering a
/// new scalable target.
/// </para>
///
/// <para>
/// Although you can specify a large maximum capacity, note that service quotas might
/// impose lower limits. Each service has its own default quotas for the maximum capacity
/// of the resource. If you want to specify a higher limit, you can request an increase.
/// For more information, consult the documentation for that service. For information
/// about the default quotas for each service, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html">Service
/// endpoints and quotas</a> in the <i>Amazon Web Services General Reference</i>.
/// </para>
/// </summary>
public int MaxCapacity
{
get { return this._maxCapacity.GetValueOrDefault(); }
set { this._maxCapacity = value; }
}
// Check to see if MaxCapacity property is set
internal bool IsSetMaxCapacity()
{
return this._maxCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property MinCapacity.
/// <para>
/// The minimum value that you plan to scale in to. When a scaling policy is in effect,
/// Application Auto Scaling can scale in (contract) as needed to the minimum capacity
/// limit in response to changing demand. This property is required when registering a
/// new scalable target.
/// </para>
///
/// <para>
/// For the following resources, the minimum value allowed is 0.
/// </para>
/// <ul> <li>
/// <para>
/// AppStream 2.0 fleets
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB clusters
/// </para>
/// </li> <li>
/// <para>
/// ECS services
/// </para>
/// </li> <li>
/// <para>
/// EMR clusters
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variants
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleets
/// </para>
/// </li> <li>
/// <para>
/// custom resources
/// </para>
/// </li> </ul>
/// <para>
/// It's strongly recommended that you specify a value greater than 0. A value greater
/// than 0 means that data points are continuously reported to CloudWatch that scaling
/// policies can use to scale on a metric like average CPU utilization.
/// </para>
///
/// <para>
/// For all other resources, the minimum allowed value depends on the type of resource
/// that you are using. If you provide a value that is lower than what a resource can
/// accept, an error occurs. In which case, the error message will provide the minimum
/// value that the resource can accept.
/// </para>
/// </summary>
public int MinCapacity
{
get { return this._minCapacity.GetValueOrDefault(); }
set { this._minCapacity = value; }
}
// Check to see if MinCapacity property is set
internal bool IsSetMinCapacity()
{
return this._minCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource that is associated with the scalable target. This string
/// consists of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property RoleARN.
/// <para>
/// This parameter is required for services that do not support service-linked roles (such
/// as Amazon EMR), and it must specify the ARN of an IAM role that allows Application
/// Auto Scaling to modify the scalable target on your behalf.
/// </para>
///
/// <para>
/// If the service supports service-linked roles, Application Auto Scaling uses a service-linked
/// role, which it creates if it does not yet exist. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-roles">Application
/// Auto Scaling IAM roles</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
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;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension associated with the scalable target. This string consists of
/// the service namespace, resource type, and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource. For a
/// resource provided by your own application or service, use <code>custom-resource</code>
/// instead.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
/// <summary>
/// Gets and sets the property SuspendedState.
/// <para>
/// An embedded object that contains attributes and attribute values that are used to
/// suspend and resume automatic scaling. Setting the value of an attribute to <code>true</code>
/// suspends the specified scaling activities. Setting it to <code>false</code> (default)
/// resumes the specified scaling activities.
/// </para>
///
/// <para>
/// <b>Suspension Outcomes</b>
/// </para>
/// <ul> <li>
/// <para>
/// For <code>DynamicScalingInSuspended</code>, while a suspension is in effect, all scale-in
/// activities that are triggered by a scaling policy are suspended.
/// </para>
/// </li> <li>
/// <para>
/// For <code>DynamicScalingOutSuspended</code>, while a suspension is in effect, all
/// scale-out activities that are triggered by a scaling policy are suspended.
/// </para>
/// </li> <li>
/// <para>
/// For <code>ScheduledScalingSuspended</code>, while a suspension is in effect, all scaling
/// activities that involve scheduled actions are suspended.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html">Suspending
/// and resuming scaling</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public SuspendedState SuspendedState
{
get { return this._suspendedState; }
set { this._suspendedState = value; }
}
// Check to see if SuspendedState property is set
internal bool IsSetSuspendedState()
{
return this._suspendedState != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Assigns one or more tags to the scalable target. Use this parameter to tag the scalable
/// target when it is created. To tag an existing scalable target, use the <a>TagResource</a>
/// operation.
/// </para>
///
/// <para>
/// Each tag consists of a tag key and a tag value. Both the tag key and the tag value
/// are required. You cannot have more than one tag on a scalable target with the same
/// tag key.
/// </para>
///
/// <para>
/// Use tags to control access to a scalable target. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html">Tagging
/// support for Application Auto Scaling</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public Dictionary<string, string> 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;
}
}
} | 565 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the RegisterScalableTarget operation.
/// </summary>
public partial class RegisterScalableTargetResponse : AmazonWebServiceResponse
{
private string _scalableTargetARN;
/// <summary>
/// Gets and sets the property ScalableTargetARN.
/// <para>
/// The ARN of the scalable target.
/// </para>
/// </summary>
public string ScalableTargetARN
{
get { return this._scalableTargetARN; }
set { this._scalableTargetARN = value; }
}
// Check to see if ScalableTargetARN property is set
internal bool IsSetScalableTargetARN()
{
return this._scalableTargetARN != null;
}
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// The specified resource doesn't exist.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonApplicationAutoScalingException
{
private string _resourceName;
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </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 ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(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 ResourceNotFoundException 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 ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.ResourceName = (string)info.GetValue("ResourceName", typeof(string));
}
/// <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);
info.AddValue("ResourceName", this.ResourceName);
}
#endif
/// <summary>
/// Gets and sets the property ResourceName.
/// <para>
/// The name of the Application Auto Scaling resource. This value is an Amazon Resource
/// Name (ARN).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1011)]
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a scalable target.
/// </summary>
public partial class ScalableTarget
{
private DateTime? _creationTime;
private int? _maxCapacity;
private int? _minCapacity;
private string _resourceId;
private string _roleARN;
private ScalableDimension _scalableDimension;
private string _scalableTargetARN;
private ServiceNamespace _serviceNamespace;
private SuspendedState _suspendedState;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The Unix timestamp for when the scalable target was created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property MaxCapacity.
/// <para>
/// The maximum value to scale to in response to a scale-out activity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int MaxCapacity
{
get { return this._maxCapacity.GetValueOrDefault(); }
set { this._maxCapacity = value; }
}
// Check to see if MaxCapacity property is set
internal bool IsSetMaxCapacity()
{
return this._maxCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property MinCapacity.
/// <para>
/// The minimum value to scale to in response to a scale-in activity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int MinCapacity
{
get { return this._minCapacity.GetValueOrDefault(); }
set { this._minCapacity = value; }
}
// Check to see if MinCapacity property is set
internal bool IsSetMinCapacity()
{
return this._minCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource associated with the scalable target. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property RoleARN.
/// <para>
/// The ARN of an IAM role that allows Application Auto Scaling to modify the scalable
/// target on your behalf.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
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;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension associated with the scalable target. This string consists of
/// the service namespace, resource type, and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ScalableTargetARN.
/// <para>
/// The ARN of the scalable target.
/// </para>
/// </summary>
public string ScalableTargetARN
{
get { return this._scalableTargetARN; }
set { this._scalableTargetARN = value; }
}
// Check to see if ScalableTargetARN property is set
internal bool IsSetScalableTargetARN()
{
return this._scalableTargetARN != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource, or a
/// <code>custom-resource</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
/// <summary>
/// Gets and sets the property SuspendedState.
/// <para>
/// Specifies whether the scaling activities for a scalable target are in a suspended
/// state.
/// </para>
/// </summary>
public SuspendedState SuspendedState
{
get { return this._suspendedState; }
set { this._suspendedState = value; }
}
// Check to see if SuspendedState property is set
internal bool IsSetSuspendedState()
{
return this._suspendedState != null;
}
}
} | 418 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents the minimum and maximum capacity for a scheduled action.
/// </summary>
public partial class ScalableTargetAction
{
private int? _maxCapacity;
private int? _minCapacity;
/// <summary>
/// Gets and sets the property MaxCapacity.
/// <para>
/// The maximum capacity.
/// </para>
///
/// <para>
/// Although you can specify a large maximum capacity, note that service quotas may impose
/// lower limits. Each service has its own default quotas for the maximum capacity of
/// the resource. If you want to specify a higher limit, you can request an increase.
/// For more information, consult the documentation for that service. For information
/// about the default quotas for each service, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html">Service
/// endpoints and quotas</a> in the <i>Amazon Web Services General Reference</i>.
/// </para>
/// </summary>
public int MaxCapacity
{
get { return this._maxCapacity.GetValueOrDefault(); }
set { this._maxCapacity = value; }
}
// Check to see if MaxCapacity property is set
internal bool IsSetMaxCapacity()
{
return this._maxCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property MinCapacity.
/// <para>
/// The minimum capacity.
/// </para>
///
/// <para>
/// When the scheduled action runs, the resource will have at least this much capacity,
/// but it might have more depending on other settings, such as the target utilization
/// level of a target tracking scaling policy.
/// </para>
/// </summary>
public int MinCapacity
{
get { return this._minCapacity.GetValueOrDefault(); }
set { this._minCapacity = value; }
}
// Check to see if MinCapacity property is set
internal bool IsSetMinCapacity()
{
return this._minCapacity.HasValue;
}
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a scaling activity.
/// </summary>
public partial class ScalingActivity
{
private string _activityId;
private string _cause;
private string _description;
private string _details;
private DateTime? _endTime;
private List<NotScaledReason> _notScaledReasons = new List<NotScaledReason>();
private string _resourceId;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
private DateTime? _startTime;
private ScalingActivityStatusCode _statusCode;
private string _statusMessage;
/// <summary>
/// Gets and sets the property ActivityId.
/// <para>
/// The unique identifier of the scaling activity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ActivityId
{
get { return this._activityId; }
set { this._activityId = value; }
}
// Check to see if ActivityId property is set
internal bool IsSetActivityId()
{
return this._activityId != null;
}
/// <summary>
/// Gets and sets the property Cause.
/// <para>
/// A simple description of what caused the scaling activity to happen.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Cause
{
get { return this._cause; }
set { this._cause = value; }
}
// Check to see if Cause property is set
internal bool IsSetCause()
{
return this._cause != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A simple description of what action the scaling activity intends to accomplish.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Details.
/// <para>
/// The details about the scaling activity.
/// </para>
/// </summary>
public string Details
{
get { return this._details; }
set { this._details = value; }
}
// Check to see if Details property is set
internal bool IsSetDetails()
{
return this._details != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The Unix timestamp for when the scaling activity 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 NotScaledReasons.
/// <para>
/// Machine-readable data that describes the reason for a not scaled activity. Only available
/// when <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalingActivities.html">DescribeScalingActivities</a>
/// includes not scaled activities.
/// </para>
/// </summary>
public List<NotScaledReason> NotScaledReasons
{
get { return this._notScaledReasons; }
set { this._notScaledReasons = value; }
}
// Check to see if NotScaledReasons property is set
internal bool IsSetNotScaledReasons()
{
return this._notScaledReasons != null && this._notScaledReasons.Count > 0;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource associated with the scaling activity. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource, or a
/// <code>custom-resource</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The Unix timestamp for when the scaling activity began.
/// </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;
}
/// <summary>
/// Gets and sets the property StatusCode.
/// <para>
/// Indicates the status of the scaling activity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ScalingActivityStatusCode StatusCode
{
get { return this._statusCode; }
set { this._statusCode = value; }
}
// Check to see if StatusCode property is set
internal bool IsSetStatusCode()
{
return this._statusCode != null;
}
/// <summary>
/// Gets and sets the property StatusMessage.
/// <para>
/// A simple message about the current status of the scaling activity.
/// </para>
/// </summary>
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
} | 476 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a scaling policy to use with Application Auto Scaling.
///
///
/// <para>
/// For more information about configuring scaling policies for a specific service, see
/// <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/integrated-services-list.html">Amazon
/// Web Services services that you can use with Application Auto Scaling</a> in the <i>Application
/// Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class ScalingPolicy
{
private List<Alarm> _alarms = new List<Alarm>();
private DateTime? _creationTime;
private string _policyARN;
private string _policyName;
private PolicyType _policyType;
private string _resourceId;
private ScalableDimension _scalableDimension;
private ServiceNamespace _serviceNamespace;
private StepScalingPolicyConfiguration _stepScalingPolicyConfiguration;
private TargetTrackingScalingPolicyConfiguration _targetTrackingScalingPolicyConfiguration;
/// <summary>
/// Gets and sets the property Alarms.
/// <para>
/// The CloudWatch alarms associated with the scaling policy.
/// </para>
/// </summary>
public List<Alarm> Alarms
{
get { return this._alarms; }
set { this._alarms = value; }
}
// Check to see if Alarms property is set
internal bool IsSetAlarms()
{
return this._alarms != null && this._alarms.Count > 0;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The Unix timestamp for when the scaling policy was created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property PolicyARN.
/// <para>
/// The Amazon Resource Name (ARN) of the scaling policy.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string PolicyARN
{
get { return this._policyARN; }
set { this._policyARN = value; }
}
// Check to see if PolicyARN property is set
internal bool IsSetPolicyARN()
{
return this._policyARN != null;
}
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name of the scaling policy.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
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 PolicyType.
/// <para>
/// The scaling policy type.
/// </para>
///
/// <para>
/// The following policy types are supported:
/// </para>
///
/// <para>
/// <code>TargetTrackingScaling</code>—Not supported for Amazon EMR
/// </para>
///
/// <para>
/// <code>StepScaling</code>—Not supported for DynamoDB, Amazon Comprehend, Lambda, Amazon
/// Keyspaces, Amazon MSK, Amazon ElastiCache, or Neptune.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public PolicyType PolicyType
{
get { return this._policyType; }
set { this._policyType = value; }
}
// Check to see if PolicyType property is set
internal bool IsSetPolicyType()
{
return this._policyType != null;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The identifier of the resource associated with the scaling policy. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource, or a
/// <code>custom-resource</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
/// <summary>
/// Gets and sets the property StepScalingPolicyConfiguration.
/// <para>
/// A step scaling policy.
/// </para>
/// </summary>
public StepScalingPolicyConfiguration StepScalingPolicyConfiguration
{
get { return this._stepScalingPolicyConfiguration; }
set { this._stepScalingPolicyConfiguration = value; }
}
// Check to see if StepScalingPolicyConfiguration property is set
internal bool IsSetStepScalingPolicyConfiguration()
{
return this._stepScalingPolicyConfiguration != null;
}
/// <summary>
/// Gets and sets the property TargetTrackingScalingPolicyConfiguration.
/// <para>
/// A target tracking scaling policy.
/// </para>
/// </summary>
public TargetTrackingScalingPolicyConfiguration TargetTrackingScalingPolicyConfiguration
{
get { return this._targetTrackingScalingPolicyConfiguration; }
set { this._targetTrackingScalingPolicyConfiguration = value; }
}
// Check to see if TargetTrackingScalingPolicyConfiguration property is set
internal bool IsSetTargetTrackingScalingPolicyConfiguration()
{
return this._targetTrackingScalingPolicyConfiguration != null;
}
}
} | 456 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a scheduled action.
/// </summary>
public partial class ScheduledAction
{
private DateTime? _creationTime;
private DateTime? _endTime;
private string _resourceId;
private ScalableDimension _scalableDimension;
private ScalableTargetAction _scalableTargetAction;
private string _schedule;
private string _scheduledActionARN;
private string _scheduledActionName;
private ServiceNamespace _serviceNamespace;
private DateTime? _startTime;
private string _timezone;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time that the scheduled action was created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The date and time that the action is scheduled to end, in UTC.
/// </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 ResourceId.
/// <para>
/// The identifier of the resource associated with the scaling policy. This string consists
/// of the resource type and unique identifier.
/// </para>
/// <ul> <li>
/// <para>
/// ECS service - The resource type is <code>service</code> and the unique identifier
/// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>.
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleet - The resource type is <code>spot-fleet-request</code> and the unique identifier
/// is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// EMR cluster - The resource type is <code>instancegroup</code> and the unique identifier
/// is the cluster ID and instance group ID. Example: <code>instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0</code>.
/// </para>
/// </li> <li>
/// <para>
/// AppStream 2.0 fleet - The resource type is <code>fleet</code> and the unique identifier
/// is the fleet name. Example: <code>fleet/sample-fleet</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>table/my-table</code>.
/// </para>
/// </li> <li>
/// <para>
/// DynamoDB global secondary index - The resource type is <code>index</code> and the
/// unique identifier is the index name. Example: <code>table/my-table/index/my-table-index</code>.
/// </para>
/// </li> <li>
/// <para>
/// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:my-db-cluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker endpoint variant - The resource type is <code>variant</code> and the unique
/// identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> <li>
/// <para>
/// Custom resources are not supported with a resource type. This parameter must specify
/// the <code>OutputValue</code> from the CloudFormation template stack used to access
/// the resources. The unique identifier is defined by the service provider. More information
/// is available in our <a href="https://github.com/aws/aws-auto-scaling-custom-resource">GitHub
/// repository</a>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification endpoint - The resource type and unique
/// identifier are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend entity recognizer endpoint - The resource type and unique identifier
/// are specified using the endpoint ARN. Example: <code>arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE</code>.
/// </para>
/// </li> <li>
/// <para>
/// Lambda provisioned concurrency - The resource type is <code>function</code> and the
/// unique identifier is the function name with a function version or alias name suffix
/// that is not <code>$LATEST</code>. Example: <code>function:my-function:prod</code>
/// or <code>function:my-function:1</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces table - The resource type is <code>table</code> and the unique identifier
/// is the table name. Example: <code>keyspace/mykeyspace/table/mytable</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon MSK cluster - The resource type and unique identifier are specified using the
/// cluster ARN. Example: <code>arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5</code>.
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache replication group - The resource type is <code>replication-group</code>
/// and the unique identifier is the replication group name. Example: <code>replication-group/mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// Neptune cluster - The resource type is <code>cluster</code> and the unique identifier
/// is the cluster name. Example: <code>cluster:mycluster</code>.
/// </para>
/// </li> <li>
/// <para>
/// SageMaker Serverless endpoint - The resource type is <code>variant</code> and the
/// unique identifier is the resource ID. Example: <code>endpoint/my-end-point/variant/KMeansClustering</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ScalableDimension.
/// <para>
/// The scalable dimension. This string consists of the service namespace, resource type,
/// and scaling property.
/// </para>
/// <ul> <li>
/// <para>
/// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticmapreduce:instancegroup:InstanceCount</code> - The instance count of
/// an EMR Instance Group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot
/// Fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>appstream:fleet:DesiredCapacity</code> - The desired capacity of an AppStream
/// 2.0 fleet.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB table.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for
/// a DynamoDB global secondary index.
/// </para>
/// </li> <li>
/// <para>
/// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora
/// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
/// edition.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances
/// for a SageMaker model endpoint variant.
/// </para>
/// </li> <li>
/// <para>
/// <code>custom-resource:ResourceType:Property</code> - The scalable dimension for a
/// custom resource provided by your own application or service.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:document-classifier-endpoint:DesiredInferenceUnits</code> - The
/// number of inference units for an Amazon Comprehend document classification endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>comprehend:entity-recognizer-endpoint:DesiredInferenceUnits</code> - The number
/// of inference units for an Amazon Comprehend entity recognizer endpoint.
/// </para>
/// </li> <li>
/// <para>
/// <code>lambda:function:ProvisionedConcurrency</code> - The provisioned concurrency
/// for a Lambda function.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:ReadCapacityUnits</code> - The provisioned read capacity for
/// an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>cassandra:table:WriteCapacityUnits</code> - The provisioned write capacity
/// for an Amazon Keyspaces table.
/// </para>
/// </li> <li>
/// <para>
/// <code>kafka:broker-storage:VolumeSize</code> - The provisioned volume size (in GiB)
/// for brokers in an Amazon MSK cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:NodeGroups</code> - The number of node groups
/// for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>elasticache:replication-group:Replicas</code> - The number of replicas per
/// node group for an Amazon ElastiCache replication group.
/// </para>
/// </li> <li>
/// <para>
/// <code>neptune:cluster:ReadReplicaCount</code> - The count of read replicas in an
/// Amazon Neptune DB cluster.
/// </para>
/// </li> <li>
/// <para>
/// <code>sagemaker:variant:DesiredProvisionedConcurrency</code> - The provisioned concurrency
/// for a SageMaker Serverless endpoint.
/// </para>
/// </li> </ul>
/// </summary>
public ScalableDimension ScalableDimension
{
get { return this._scalableDimension; }
set { this._scalableDimension = value; }
}
// Check to see if ScalableDimension property is set
internal bool IsSetScalableDimension()
{
return this._scalableDimension != null;
}
/// <summary>
/// Gets and sets the property ScalableTargetAction.
/// <para>
/// The new minimum and maximum capacity. You can set both values or just one. At the
/// scheduled time, if the current capacity is below the minimum capacity, Application
/// Auto Scaling scales out to the minimum capacity. If the current capacity is above
/// the maximum capacity, Application Auto Scaling scales in to the maximum capacity.
/// </para>
/// </summary>
public ScalableTargetAction ScalableTargetAction
{
get { return this._scalableTargetAction; }
set { this._scalableTargetAction = value; }
}
// Check to see if ScalableTargetAction property is set
internal bool IsSetScalableTargetAction()
{
return this._scalableTargetAction != null;
}
/// <summary>
/// Gets and sets the property Schedule.
/// <para>
/// The schedule for this action. The following formats are supported:
/// </para>
/// <ul> <li>
/// <para>
/// At expressions - "<code>at(<i>yyyy</i>-<i>mm</i>-<i>dd</i>T<i>hh</i>:<i>mm</i>:<i>ss</i>)</code>"
/// </para>
/// </li> <li>
/// <para>
/// Rate expressions - "<code>rate(<i>value</i> <i>unit</i>)</code>"
/// </para>
/// </li> <li>
/// <para>
/// Cron expressions - "<code>cron(<i>fields</i>)</code>"
/// </para>
/// </li> </ul>
/// <para>
/// At expressions are useful for one-time schedules. Cron expressions are useful for
/// scheduled actions that run periodically at a specified date and time, and rate expressions
/// are useful for scheduled actions that run at a regular interval.
/// </para>
///
/// <para>
/// At and cron expressions use Universal Coordinated Time (UTC) by default.
/// </para>
///
/// <para>
/// The cron format consists of six fields separated by white spaces: [Minutes] [Hours]
/// [Day_of_Month] [Month] [Day_of_Week] [Year].
/// </para>
///
/// <para>
/// For rate expressions, <i>value</i> is a positive integer and <i>unit</i> is <code>minute</code>
/// | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code>
/// | <code>days</code>.
/// </para>
///
/// <para>
/// For more information and examples, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/examples-scheduled-actions.html">Example
/// scheduled actions for Application Auto Scaling</a> in the <i>Application Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string Schedule
{
get { return this._schedule; }
set { this._schedule = value; }
}
// Check to see if Schedule property is set
internal bool IsSetSchedule()
{
return this._schedule != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionARN.
/// <para>
/// The Amazon Resource Name (ARN) of the scheduled action.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string ScheduledActionARN
{
get { return this._scheduledActionARN; }
set { this._scheduledActionARN = value; }
}
// Check to see if ScheduledActionARN property is set
internal bool IsSetScheduledActionARN()
{
return this._scheduledActionARN != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of the scheduled action.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
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;
}
/// <summary>
/// Gets and sets the property ServiceNamespace.
/// <para>
/// The namespace of the Amazon Web Services service that provides the resource, or a
/// <code>custom-resource</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ServiceNamespace ServiceNamespace
{
get { return this._serviceNamespace; }
set { this._serviceNamespace = value; }
}
// Check to see if ServiceNamespace property is set
internal bool IsSetServiceNamespace()
{
return this._serviceNamespace != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The date and time that the action is scheduled to begin, in UTC.
/// </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 Timezone.
/// <para>
/// The time zone used when referring to the date and time of a scheduled action, when
/// the scheduled action uses an at or cron expression.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string Timezone
{
get { return this._timezone; }
set { this._timezone = value; }
}
// Check to see if Timezone property is set
internal bool IsSetTimezone()
{
return this._timezone != null;
}
}
} | 497 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a step adjustment for a <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepScalingPolicyConfiguration.html">StepScalingPolicyConfiguration</a>.
/// Describes an adjustment based on the difference between the value of the aggregated
/// CloudWatch metric and the breach threshold that you've defined for the alarm.
///
///
/// <para>
/// For the following examples, suppose that you have an alarm with a breach threshold
/// of 50:
/// </para>
/// <ul> <li>
/// <para>
/// To initiate the adjustment when the metric is greater than or equal to 50 and less
/// than 60, specify a lower bound of <code>0</code> and an upper bound of <code>10</code>.
/// </para>
/// </li> <li>
/// <para>
/// To initiate the adjustment when the metric is greater than 40 and less than or equal
/// to 50, specify a lower bound of <code>-10</code> and an upper bound of <code>0</code>.
/// </para>
/// </li> </ul>
/// <para>
/// There are a few rules for the step adjustments for your step policy:
/// </para>
/// <ul> <li>
/// <para>
/// The ranges of your step adjustments can't overlap or have a gap.
/// </para>
/// </li> <li>
/// <para>
/// At most one step adjustment can have a null lower bound. If one step adjustment has
/// a negative lower bound, then there must be a step adjustment with a null lower bound.
/// </para>
/// </li> <li>
/// <para>
/// At most one step adjustment can have a null upper bound. If one step adjustment has
/// a positive upper bound, then there must be a step adjustment with a null upper bound.
/// </para>
/// </li> <li>
/// <para>
/// The upper and lower bound can't be null in the same step adjustment.
/// </para>
/// </li> </ul>
/// </summary>
public partial class StepAdjustment
{
private double? _metricIntervalLowerBound;
private double? _metricIntervalUpperBound;
private int? _scalingAdjustment;
/// <summary>
/// Gets and sets the property MetricIntervalLowerBound.
/// <para>
/// The lower bound for the difference between the alarm threshold and the CloudWatch
/// metric. If the metric value is above the breach threshold, the lower bound is inclusive
/// (the metric must be greater than or equal to the threshold plus the lower bound).
/// Otherwise, it's exclusive (the metric must be greater than the threshold plus the
/// lower bound). A null value indicates negative infinity.
/// </para>
/// </summary>
public double MetricIntervalLowerBound
{
get { return this._metricIntervalLowerBound.GetValueOrDefault(); }
set { this._metricIntervalLowerBound = value; }
}
// Check to see if MetricIntervalLowerBound property is set
internal bool IsSetMetricIntervalLowerBound()
{
return this._metricIntervalLowerBound.HasValue;
}
/// <summary>
/// Gets and sets the property MetricIntervalUpperBound.
/// <para>
/// The upper bound for the difference between the alarm threshold and the CloudWatch
/// metric. If the metric value is above the breach threshold, the upper bound is exclusive
/// (the metric must be less than the threshold plus the upper bound). Otherwise, it's
/// inclusive (the metric must be less than or equal to the threshold plus the upper bound).
/// A null value indicates positive infinity.
/// </para>
///
/// <para>
/// The upper bound must be greater than the lower bound.
/// </para>
/// </summary>
public double MetricIntervalUpperBound
{
get { return this._metricIntervalUpperBound.GetValueOrDefault(); }
set { this._metricIntervalUpperBound = value; }
}
// Check to see if MetricIntervalUpperBound property is set
internal bool IsSetMetricIntervalUpperBound()
{
return this._metricIntervalUpperBound.HasValue;
}
/// <summary>
/// Gets and sets the property ScalingAdjustment.
/// <para>
/// The amount by which to scale, based on the specified adjustment type. A positive value
/// adds to the current capacity while a negative number removes from the current capacity.
/// For exact capacity, you must specify a non-negative value.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int ScalingAdjustment
{
get { return this._scalingAdjustment.GetValueOrDefault(); }
set { this._scalingAdjustment = value; }
}
// Check to see if ScalingAdjustment property is set
internal bool IsSetScalingAdjustment()
{
return this._scalingAdjustment.HasValue;
}
}
} | 151 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a step scaling policy configuration to use with Application Auto Scaling.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html">Step
/// scaling policies</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class StepScalingPolicyConfiguration
{
private AdjustmentType _adjustmentType;
private int? _cooldown;
private MetricAggregationType _metricAggregationType;
private int? _minAdjustmentMagnitude;
private List<StepAdjustment> _stepAdjustments = new List<StepAdjustment>();
/// <summary>
/// Gets and sets the property AdjustmentType.
/// <para>
/// Specifies how the <code>ScalingAdjustment</code> value in a <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepAdjustment.html">StepAdjustment</a>
/// is interpreted (for example, an absolute number or a percentage). The valid values
/// are <code>ChangeInCapacity</code>, <code>ExactCapacity</code>, and <code>PercentChangeInCapacity</code>.
///
/// </para>
///
/// <para>
/// <code>AdjustmentType</code> is required if you are adding a new step scaling policy
/// configuration.
/// </para>
/// </summary>
public AdjustmentType AdjustmentType
{
get { return this._adjustmentType; }
set { this._adjustmentType = value; }
}
// Check to see if AdjustmentType property is set
internal bool IsSetAdjustmentType()
{
return this._adjustmentType != null;
}
/// <summary>
/// Gets and sets the property Cooldown.
/// <para>
/// The amount of time, in seconds, to wait for a previous scaling activity to take effect.
/// If not specified, the default value is 300. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#step-scaling-cooldown">Cooldown
/// period</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public int Cooldown
{
get { return this._cooldown.GetValueOrDefault(); }
set { this._cooldown = value; }
}
// Check to see if Cooldown property is set
internal bool IsSetCooldown()
{
return this._cooldown.HasValue;
}
/// <summary>
/// Gets and sets the property MetricAggregationType.
/// <para>
/// The aggregation type for the CloudWatch metrics. Valid values are <code>Minimum</code>,
/// <code>Maximum</code>, and <code>Average</code>. If the aggregation type is null, the
/// value is treated as <code>Average</code>.
/// </para>
/// </summary>
public MetricAggregationType MetricAggregationType
{
get { return this._metricAggregationType; }
set { this._metricAggregationType = value; }
}
// Check to see if MetricAggregationType property is set
internal bool IsSetMetricAggregationType()
{
return this._metricAggregationType != null;
}
/// <summary>
/// Gets and sets the property MinAdjustmentMagnitude.
/// <para>
/// The minimum value to scale by when the adjustment type is <code>PercentChangeInCapacity</code>.
/// For example, suppose that you create a step scaling policy to scale out an Amazon
/// ECS service by 25 percent and you specify a <code>MinAdjustmentMagnitude</code> of
/// 2. If the service has 4 tasks and the scaling policy is performed, 25 percent of 4
/// is 1. However, because you specified a <code>MinAdjustmentMagnitude</code> of 2, Application
/// Auto Scaling scales out the service by 2 tasks.
/// </para>
/// </summary>
public int MinAdjustmentMagnitude
{
get { return this._minAdjustmentMagnitude.GetValueOrDefault(); }
set { this._minAdjustmentMagnitude = value; }
}
// Check to see if MinAdjustmentMagnitude property is set
internal bool IsSetMinAdjustmentMagnitude()
{
return this._minAdjustmentMagnitude.HasValue;
}
/// <summary>
/// Gets and sets the property StepAdjustments.
/// <para>
/// A set of adjustments that enable you to scale based on the size of the alarm breach.
/// </para>
///
/// <para>
/// At least one step adjustment is required if you are adding a new step scaling policy
/// configuration.
/// </para>
/// </summary>
public List<StepAdjustment> StepAdjustments
{
get { return this._stepAdjustments; }
set { this._stepAdjustments = value; }
}
// Check to see if StepAdjustments property is set
internal bool IsSetStepAdjustments()
{
return this._stepAdjustments != null && this._stepAdjustments.Count > 0;
}
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Specifies whether the scaling activities for a scalable target are in a suspended
/// state.
/// </summary>
public partial class SuspendedState
{
private bool? _dynamicScalingInSuspended;
private bool? _dynamicScalingOutSuspended;
private bool? _scheduledScalingSuspended;
/// <summary>
/// Gets and sets the property DynamicScalingInSuspended.
/// <para>
/// Whether scale in by a target tracking scaling policy or a step scaling policy is suspended.
/// Set the value to <code>true</code> if you don't want Application Auto Scaling to remove
/// capacity when a scaling policy is triggered. The default is <code>false</code>.
/// </para>
/// </summary>
public bool DynamicScalingInSuspended
{
get { return this._dynamicScalingInSuspended.GetValueOrDefault(); }
set { this._dynamicScalingInSuspended = value; }
}
// Check to see if DynamicScalingInSuspended property is set
internal bool IsSetDynamicScalingInSuspended()
{
return this._dynamicScalingInSuspended.HasValue;
}
/// <summary>
/// Gets and sets the property DynamicScalingOutSuspended.
/// <para>
/// Whether scale out by a target tracking scaling policy or a step scaling policy is
/// suspended. Set the value to <code>true</code> if you don't want Application Auto Scaling
/// to add capacity when a scaling policy is triggered. The default is <code>false</code>.
///
/// </para>
/// </summary>
public bool DynamicScalingOutSuspended
{
get { return this._dynamicScalingOutSuspended.GetValueOrDefault(); }
set { this._dynamicScalingOutSuspended = value; }
}
// Check to see if DynamicScalingOutSuspended property is set
internal bool IsSetDynamicScalingOutSuspended()
{
return this._dynamicScalingOutSuspended.HasValue;
}
/// <summary>
/// Gets and sets the property ScheduledScalingSuspended.
/// <para>
/// Whether scheduled scaling is suspended. Set the value to <code>true</code> if you
/// don't want Application Auto Scaling to add or remove capacity by initiating scheduled
/// actions. The default is <code>false</code>.
/// </para>
/// </summary>
public bool ScheduledScalingSuspended
{
get { return this._scheduledScalingSuspended.GetValueOrDefault(); }
set { this._scheduledScalingSuspended = value; }
}
// Check to see if ScheduledScalingSuspended property is set
internal bool IsSetScheduledScalingSuspended()
{
return this._scheduledScalingSuspended.HasValue;
}
}
} | 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the TagResource operation.
/// Adds or edits tags on an Application Auto Scaling scalable target.
///
///
/// <para>
/// Each tag consists of a tag key and a tag value, which are both case-sensitive strings.
/// To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing
/// tag key and a new tag value.
/// </para>
///
/// <para>
/// You can use this operation to tag an Application Auto Scaling scalable target, but
/// you cannot tag a scaling policy or scheduled action.
/// </para>
///
/// <para>
/// You can also add tags to an Application Auto Scaling scalable target while creating
/// it (<code>RegisterScalableTarget</code>).
/// </para>
///
/// <para>
/// For general information about tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services resources</a> in the <i>Amazon Web Services General Reference</i>.
/// </para>
///
/// <para>
/// Use tags to control access to a scalable target. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html">Tagging
/// support for Application Auto Scaling</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class TagResourceRequest : AmazonApplicationAutoScalingRequest
{
private string _resourceARN;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// Identifies the Application Auto Scaling scalable target that you want to apply tags
/// to.
/// </para>
///
/// <para>
/// For example: <code>arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123</code>
///
/// </para>
///
/// <para>
/// To get the ARN for a scalable target, use <a>DescribeScalableTargets</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags assigned to the resource. A tag is a label that you assign to an Amazon Web
/// Services resource.
/// </para>
///
/// <para>
/// Each tag consists of a tag key and a tag value.
/// </para>
///
/// <para>
/// You cannot have more than one tag on an Application Auto Scaling scalable target with
/// the same tag key. If you specify an existing tag key with a different tag value, Application
/// Auto Scaling replaces the current tag value with the specified one.
/// </para>
///
/// <para>
/// For information about the rules that apply to tag keys and tag values, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html">User-defined
/// tag restrictions</a> in the <i>Amazon Web Services Billing and Cost Management User
/// Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Dictionary<string, string> 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;
}
}
} | 133 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the TagResource operation.
/// </summary>
public partial class TagResourceResponse : 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a specific metric.
///
///
/// <para>
/// Metric is a property of the <a>TargetTrackingMetricStat</a> object.
/// </para>
/// </summary>
public partial class TargetTrackingMetric
{
private List<TargetTrackingMetricDimension> _dimensions = new List<TargetTrackingMetricDimension>();
private string _metricName;
private string _awsNamespace;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions for the metric. For the list of available dimensions, see the Amazon
/// Web Services documentation available from the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon
/// Web Services services that publish CloudWatch metrics </a> in the <i>Amazon CloudWatch
/// User Guide</i>.
/// </para>
///
/// <para>
/// Conditional: If you published your metric with dimensions, you must specify the same
/// dimensions in your scaling policy.
/// </para>
/// </summary>
public List<TargetTrackingMetricDimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric. For more information, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon
/// Web Services services that publish CloudWatch metrics </a> in the <i>Amazon CloudWatch
/// User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
}
} | 112 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// The metric data to return. Also defines whether this call is returning data for one
/// metric only, or whether it is performing a math expression on the values of returned
/// metric statistics to create a new time series. A time series is a series of data points,
/// each of which is associated with a timestamp.
///
///
/// <para>
/// For more information and examples, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking-metric-math.html">Create
/// a target tracking scaling policy for Application Auto Scaling using metric math</a>
/// in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class TargetTrackingMetricDataQuery
{
private string _expression;
private string _id;
private string _label;
private TargetTrackingMetricStat _metricStat;
private bool? _returnData;
/// <summary>
/// Gets and sets the property Expression.
/// <para>
/// The math expression to perform on the returned data, if this object is performing
/// a math expression. This expression can use the <code>Id</code> of the other metrics
/// to refer to those metrics, and can also use the <code>Id</code> of other expressions
/// to use the result of those expressions.
/// </para>
///
/// <para>
/// Conditional: Within each <code>TargetTrackingMetricDataQuery</code> object, you must
/// specify either <code>Expression</code> or <code>MetricStat</code>, but not both.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string Expression
{
get { return this._expression; }
set { this._expression = value; }
}
// Check to see if Expression property is set
internal bool IsSetExpression()
{
return this._expression != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// A short name that identifies the object's results in the response. This name must
/// be unique among all <code>MetricDataQuery</code> objects specified for a single scaling
/// policy. If you are performing math expressions on this set of data, this name represents
/// that data and can serve as a variable in the mathematical expression. The valid characters
/// are letters, numbers, and underscores. The first character must be a lowercase letter.
///
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// A human-readable label for this metric or expression. This is especially useful if
/// this is a math expression, so that you know what the value represents.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property MetricStat.
/// <para>
/// Information about the metric data to return.
/// </para>
///
/// <para>
/// Conditional: Within each <code>MetricDataQuery</code> object, you must specify either
/// <code>Expression</code> or <code>MetricStat</code>, but not both.
/// </para>
/// </summary>
public TargetTrackingMetricStat MetricStat
{
get { return this._metricStat; }
set { this._metricStat = value; }
}
// Check to see if MetricStat property is set
internal bool IsSetMetricStat()
{
return this._metricStat != null;
}
/// <summary>
/// Gets and sets the property ReturnData.
/// <para>
/// Indicates whether to return the timestamps and raw data values of this metric.
/// </para>
///
/// <para>
/// If you use any math expressions, specify <code>true</code> for this value for only
/// the final math expression that the metric specification is based on. You must specify
/// <code>false</code> for <code>ReturnData</code> for all the other metrics and expressions
/// used in the metric specification.
/// </para>
///
/// <para>
/// If you are only retrieving metrics and not performing any math expressions, do not
/// specify anything for <code>ReturnData</code>. This sets it to its default (<code>true</code>).
/// </para>
/// </summary>
public bool ReturnData
{
get { return this._returnData.GetValueOrDefault(); }
set { this._returnData = value; }
}
// Check to see if ReturnData property is set
internal bool IsSetReturnData()
{
return this._returnData.HasValue;
}
}
} | 176 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Describes the dimension of a metric.
/// </summary>
public partial class TargetTrackingMetricDimension
{
private string _name;
private string _value;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the dimension.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
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 Value.
/// <para>
/// The value of the dimension.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This structure defines the CloudWatch metric to return, along with the statistic,
/// period, and unit.
///
///
/// <para>
/// For more information about the CloudWatch terminology below, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html">Amazon
/// CloudWatch concepts</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </summary>
public partial class TargetTrackingMetricStat
{
private TargetTrackingMetric _metric;
private string _stat;
private string _unit;
/// <summary>
/// Gets and sets the property Metric.
/// <para>
/// The CloudWatch metric to return, including the metric name, namespace, and dimensions.
/// To get the exact metric name, namespace, and dimensions, inspect the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a>
/// object that is returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public TargetTrackingMetric Metric
{
get { return this._metric; }
set { this._metric = value; }
}
// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}
/// <summary>
/// Gets and sets the property Stat.
/// <para>
/// The statistic to return. It can include any CloudWatch statistic or extended statistic.
/// For a list of valid values, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic">Statistics</a>
/// in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// The most commonly used metric for scaling is <code>Average</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Stat
{
get { return this._stat; }
set { this._stat = value; }
}
// Check to see if Stat property is set
internal bool IsSetStat()
{
return this._stat != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit to use for the returned data points. For a complete list of the units that
/// CloudWatch supports, see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a>
/// data type in the <i>Amazon CloudWatch API Reference</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
} | 115 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Represents a target tracking scaling policy configuration to use with Application
/// Auto Scaling.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html">Target
/// tracking scaling policies</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class TargetTrackingScalingPolicyConfiguration
{
private CustomizedMetricSpecification _customizedMetricSpecification;
private bool? _disableScaleIn;
private PredefinedMetricSpecification _predefinedMetricSpecification;
private int? _scaleInCooldown;
private int? _scaleOutCooldown;
private double? _targetValue;
/// <summary>
/// Gets and sets the property CustomizedMetricSpecification.
/// <para>
/// A customized metric. You can specify either a predefined metric or a customized metric.
/// </para>
/// </summary>
public CustomizedMetricSpecification CustomizedMetricSpecification
{
get { return this._customizedMetricSpecification; }
set { this._customizedMetricSpecification = value; }
}
// Check to see if CustomizedMetricSpecification property is set
internal bool IsSetCustomizedMetricSpecification()
{
return this._customizedMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property DisableScaleIn.
/// <para>
/// Indicates whether scale in by the target tracking scaling policy is disabled. If the
/// value is <code>true</code>, scale in is disabled and the target tracking scaling policy
/// won't remove capacity from the scalable target. Otherwise, scale in is enabled and
/// the target tracking scaling policy can remove capacity from the scalable target. The
/// default value is <code>false</code>.
/// </para>
/// </summary>
public bool DisableScaleIn
{
get { return this._disableScaleIn.GetValueOrDefault(); }
set { this._disableScaleIn = value; }
}
// Check to see if DisableScaleIn property is set
internal bool IsSetDisableScaleIn()
{
return this._disableScaleIn.HasValue;
}
/// <summary>
/// Gets and sets the property PredefinedMetricSpecification.
/// <para>
/// A predefined metric. You can specify either a predefined metric or a customized metric.
/// </para>
/// </summary>
public PredefinedMetricSpecification PredefinedMetricSpecification
{
get { return this._predefinedMetricSpecification; }
set { this._predefinedMetricSpecification = value; }
}
// Check to see if PredefinedMetricSpecification property is set
internal bool IsSetPredefinedMetricSpecification()
{
return this._predefinedMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property ScaleInCooldown.
/// <para>
/// The amount of time, in seconds, after a scale-in activity completes before another
/// scale-in activity can start. For more information and for default values, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#target-tracking-cooldown">Define
/// cooldown periods</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public int ScaleInCooldown
{
get { return this._scaleInCooldown.GetValueOrDefault(); }
set { this._scaleInCooldown = value; }
}
// Check to see if ScaleInCooldown property is set
internal bool IsSetScaleInCooldown()
{
return this._scaleInCooldown.HasValue;
}
/// <summary>
/// Gets and sets the property ScaleOutCooldown.
/// <para>
/// The amount of time, in seconds, to wait for a previous scale-out activity to take
/// effect. For more information and for default values, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#target-tracking-cooldown">Define
/// cooldown periods</a> in the <i>Application Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public int ScaleOutCooldown
{
get { return this._scaleOutCooldown.GetValueOrDefault(); }
set { this._scaleOutCooldown = value; }
}
// Check to see if ScaleOutCooldown property is set
internal bool IsSetScaleOutCooldown()
{
return this._scaleOutCooldown.HasValue;
}
/// <summary>
/// Gets and sets the property TargetValue.
/// <para>
/// The target value for the metric. Although this property accepts numbers of type Double,
/// it won't accept values that are either too small or too large. Values must be in the
/// range of -2^360 to 2^360. The value must be a valid number based on the choice of
/// metric. For example, if the metric is CPU utilization, then the target value is a
/// percent value that represents how much of the CPU can be used before scaling out.
///
/// </para>
/// <note>
/// <para>
/// If the scaling policy specifies the <code>ALBRequestCountPerTarget</code> predefined
/// metric, specify the target utilization as the optimal average request count per target
/// during any one-minute interval.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public double TargetValue
{
get { return this._targetValue.GetValueOrDefault(); }
set { this._targetValue = value; }
}
// Check to see if TargetValue property is set
internal bool IsSetTargetValue()
{
return this._targetValue.HasValue;
}
}
} | 180 |
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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// The request contains too many tags. Try the request again with fewer tags.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TooManyTagsException : AmazonApplicationAutoScalingException
{
private string _resourceName;
/// <summary>
/// Constructs a new TooManyTagsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TooManyTagsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TooManyTagsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </summary>
/// <param name="innerException"></param>
public TooManyTagsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </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 TooManyTagsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TooManyTagsException(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 TooManyTagsException 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 TooManyTagsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.ResourceName = (string)info.GetValue("ResourceName", typeof(string));
}
/// <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);
info.AddValue("ResourceName", this.ResourceName);
}
#endif
/// <summary>
/// Gets and sets the property ResourceName.
/// <para>
/// The name of the Application Auto Scaling resource. This value is an Amazon Resource
/// Name (ARN).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1011)]
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// Container for the parameters to the UntagResource operation.
/// Deletes tags from an Application Auto Scaling scalable target. To delete a tag, specify
/// the tag key and the Application Auto Scaling scalable target.
/// </summary>
public partial class UntagResourceRequest : AmazonApplicationAutoScalingRequest
{
private string _resourceARN;
private List<string> _tagKeys = new List<string>();
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// Identifies the Application Auto Scaling scalable target from which to remove tags.
/// </para>
///
/// <para>
/// For example: <code>arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123</code>
///
/// </para>
///
/// <para>
/// To get the ARN for a scalable target, use <a>DescribeScalableTargets</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property TagKeys.
/// <para>
/// One or more tag keys. Specify only the tag keys, not the tag values.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=200)]
public List<string> TagKeys
{
get { return this._tagKeys; }
set { this._tagKeys = value; }
}
// Check to see if TagKeys property is set
internal bool IsSetTagKeys()
{
return this._tagKeys != null && this._tagKeys.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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// This is the response object from the UntagResource operation.
/// </summary>
public partial class UntagResourceResponse : 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model
{
/// <summary>
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ValidationException : AmazonApplicationAutoScalingException
{
/// <summary>
/// Constructs a new ValidationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ValidationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ValidationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="innerException"></param>
public ValidationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </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 ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(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 ValidationException 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 ValidationException(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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Alarm Object
/// </summary>
public class AlarmUnmarshaller : IUnmarshaller<Alarm, XmlUnmarshallerContext>, IUnmarshaller<Alarm, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Alarm IUnmarshaller<Alarm, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Alarm Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Alarm unmarshalledObject = new Alarm();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AlarmARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AlarmARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AlarmName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AlarmName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AlarmUnmarshaller _instance = new AlarmUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AlarmUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConcurrentUpdateException Object
/// </summary>
public class ConcurrentUpdateExceptionUnmarshaller : IErrorResponseUnmarshaller<ConcurrentUpdateException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ConcurrentUpdateException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ConcurrentUpdateException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ConcurrentUpdateException unmarshalledObject = new ConcurrentUpdateException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ConcurrentUpdateExceptionUnmarshaller _instance = new ConcurrentUpdateExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConcurrentUpdateExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// CustomizedMetricSpecification Marshaller
/// </summary>
public class CustomizedMetricSpecificationMarshaller : IRequestMarshaller<CustomizedMetricSpecification, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(CustomizedMetricSpecification requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDimensions())
{
context.Writer.WritePropertyName("Dimensions");
context.Writer.WriteArrayStart();
foreach(var requestObjectDimensionsListValue in requestObject.Dimensions)
{
context.Writer.WriteObjectStart();
var marshaller = MetricDimensionMarshaller.Instance;
marshaller.Marshall(requestObjectDimensionsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetMetricName())
{
context.Writer.WritePropertyName("MetricName");
context.Writer.Write(requestObject.MetricName);
}
if(requestObject.IsSetMetrics())
{
context.Writer.WritePropertyName("Metrics");
context.Writer.WriteArrayStart();
foreach(var requestObjectMetricsListValue in requestObject.Metrics)
{
context.Writer.WriteObjectStart();
var marshaller = TargetTrackingMetricDataQueryMarshaller.Instance;
marshaller.Marshall(requestObjectMetricsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetNamespace())
{
context.Writer.WritePropertyName("Namespace");
context.Writer.Write(requestObject.Namespace);
}
if(requestObject.IsSetStatistic())
{
context.Writer.WritePropertyName("Statistic");
context.Writer.Write(requestObject.Statistic);
}
if(requestObject.IsSetUnit())
{
context.Writer.WritePropertyName("Unit");
context.Writer.Write(requestObject.Unit);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static CustomizedMetricSpecificationMarshaller Instance = new CustomizedMetricSpecificationMarshaller();
}
} | 112 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CustomizedMetricSpecification Object
/// </summary>
public class CustomizedMetricSpecificationUnmarshaller : IUnmarshaller<CustomizedMetricSpecification, XmlUnmarshallerContext>, IUnmarshaller<CustomizedMetricSpecification, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CustomizedMetricSpecification IUnmarshaller<CustomizedMetricSpecification, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public CustomizedMetricSpecification Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CustomizedMetricSpecification unmarshalledObject = new CustomizedMetricSpecification();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Dimensions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<MetricDimension, MetricDimensionUnmarshaller>(MetricDimensionUnmarshaller.Instance);
unmarshalledObject.Dimensions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MetricName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MetricName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Metrics", targetDepth))
{
var unmarshaller = new ListUnmarshaller<TargetTrackingMetricDataQuery, TargetTrackingMetricDataQueryUnmarshaller>(TargetTrackingMetricDataQueryUnmarshaller.Instance);
unmarshalledObject.Metrics = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Namespace", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Namespace = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Statistic", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Statistic = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Unit", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Unit = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CustomizedMetricSpecificationUnmarshaller _instance = new CustomizedMetricSpecificationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CustomizedMetricSpecificationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteScalingPolicy Request Marshaller
/// </summary>
public class DeleteScalingPolicyRequestMarshaller : IMarshaller<IRequest, DeleteScalingPolicyRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeleteScalingPolicyRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteScalingPolicyRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.DeleteScalingPolicy";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetPolicyName())
{
context.Writer.WritePropertyName("PolicyName");
context.Writer.Write(publicRequest.PolicyName);
}
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteScalingPolicyRequestMarshaller _instance = new DeleteScalingPolicyRequestMarshaller();
internal static DeleteScalingPolicyRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteScalingPolicyRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 121 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteScalingPolicy operation
/// </summary>
public class DeleteScalingPolicyResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeleteScalingPolicyResponse response = new DeleteScalingPolicyResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ObjectNotFoundException"))
{
return ObjectNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteScalingPolicyResponseUnmarshaller _instance = new DeleteScalingPolicyResponseUnmarshaller();
internal static DeleteScalingPolicyResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteScalingPolicyResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteScheduledAction Request Marshaller
/// </summary>
public class DeleteScheduledActionRequestMarshaller : IMarshaller<IRequest, DeleteScheduledActionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeleteScheduledActionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteScheduledActionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.DeleteScheduledAction";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetScheduledActionName())
{
context.Writer.WritePropertyName("ScheduledActionName");
context.Writer.Write(publicRequest.ScheduledActionName);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteScheduledActionRequestMarshaller _instance = new DeleteScheduledActionRequestMarshaller();
internal static DeleteScheduledActionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteScheduledActionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 121 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteScheduledAction operation
/// </summary>
public class DeleteScheduledActionResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeleteScheduledActionResponse response = new DeleteScheduledActionResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ObjectNotFoundException"))
{
return ObjectNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteScheduledActionResponseUnmarshaller _instance = new DeleteScheduledActionResponseUnmarshaller();
internal static DeleteScheduledActionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteScheduledActionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeregisterScalableTarget Request Marshaller
/// </summary>
public class DeregisterScalableTargetRequestMarshaller : IMarshaller<IRequest, DeregisterScalableTargetRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeregisterScalableTargetRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeregisterScalableTargetRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.DeregisterScalableTarget";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeregisterScalableTargetRequestMarshaller _instance = new DeregisterScalableTargetRequestMarshaller();
internal static DeregisterScalableTargetRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeregisterScalableTargetRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeregisterScalableTarget operation
/// </summary>
public class DeregisterScalableTargetResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeregisterScalableTargetResponse response = new DeregisterScalableTargetResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ObjectNotFoundException"))
{
return ObjectNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeregisterScalableTargetResponseUnmarshaller _instance = new DeregisterScalableTargetResponseUnmarshaller();
internal static DeregisterScalableTargetResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeregisterScalableTargetResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeScalableTargets Request Marshaller
/// </summary>
public class DescribeScalableTargetsRequestMarshaller : IMarshaller<IRequest, DescribeScalableTargetsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeScalableTargetsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeScalableTargetsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.DescribeScalableTargets";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetResourceIds())
{
context.Writer.WritePropertyName("ResourceIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestResourceIdsListValue in publicRequest.ResourceIds)
{
context.Writer.Write(publicRequestResourceIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeScalableTargetsRequestMarshaller _instance = new DescribeScalableTargetsRequestMarshaller();
internal static DescribeScalableTargetsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScalableTargetsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeScalableTargets operation
/// </summary>
public class DescribeScalableTargetsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeScalableTargetsResponse response = new DescribeScalableTargetsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalableTargets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ScalableTarget, ScalableTargetUnmarshaller>(ScalableTargetUnmarshaller.Instance);
response.ScalableTargets = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidNextTokenException"))
{
return InvalidNextTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeScalableTargetsResponseUnmarshaller _instance = new DescribeScalableTargetsResponseUnmarshaller();
internal static DescribeScalableTargetsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScalableTargetsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeScalingActivities Request Marshaller
/// </summary>
public class DescribeScalingActivitiesRequestMarshaller : IMarshaller<IRequest, DescribeScalingActivitiesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeScalingActivitiesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeScalingActivitiesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.DescribeScalingActivities";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetIncludeNotScaledActivities())
{
context.Writer.WritePropertyName("IncludeNotScaledActivities");
context.Writer.Write(publicRequest.IncludeNotScaledActivities);
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeScalingActivitiesRequestMarshaller _instance = new DescribeScalingActivitiesRequestMarshaller();
internal static DescribeScalingActivitiesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScalingActivitiesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 133 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeScalingActivities operation
/// </summary>
public class DescribeScalingActivitiesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeScalingActivitiesResponse response = new DescribeScalingActivitiesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalingActivities", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ScalingActivity, ScalingActivityUnmarshaller>(ScalingActivityUnmarshaller.Instance);
response.ScalingActivities = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidNextTokenException"))
{
return InvalidNextTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeScalingActivitiesResponseUnmarshaller _instance = new DescribeScalingActivitiesResponseUnmarshaller();
internal static DescribeScalingActivitiesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScalingActivitiesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeScalingPolicies Request Marshaller
/// </summary>
public class DescribeScalingPoliciesRequestMarshaller : IMarshaller<IRequest, DescribeScalingPoliciesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeScalingPoliciesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeScalingPoliciesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.DescribeScalingPolicies";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetPolicyNames())
{
context.Writer.WritePropertyName("PolicyNames");
context.Writer.WriteArrayStart();
foreach(var publicRequestPolicyNamesListValue in publicRequest.PolicyNames)
{
context.Writer.Write(publicRequestPolicyNamesListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeScalingPoliciesRequestMarshaller _instance = new DescribeScalingPoliciesRequestMarshaller();
internal static DescribeScalingPoliciesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScalingPoliciesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 138 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeScalingPolicies operation
/// </summary>
public class DescribeScalingPoliciesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeScalingPoliciesResponse response = new DescribeScalingPoliciesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalingPolicies", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ScalingPolicy, ScalingPolicyUnmarshaller>(ScalingPolicyUnmarshaller.Instance);
response.ScalingPolicies = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("FailedResourceAccessException"))
{
return FailedResourceAccessExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidNextTokenException"))
{
return InvalidNextTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeScalingPoliciesResponseUnmarshaller _instance = new DescribeScalingPoliciesResponseUnmarshaller();
internal static DescribeScalingPoliciesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScalingPoliciesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeScheduledActions Request Marshaller
/// </summary>
public class DescribeScheduledActionsRequestMarshaller : IMarshaller<IRequest, DescribeScheduledActionsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeScheduledActionsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeScheduledActionsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.DescribeScheduledActions";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetScheduledActionNames())
{
context.Writer.WritePropertyName("ScheduledActionNames");
context.Writer.WriteArrayStart();
foreach(var publicRequestScheduledActionNamesListValue in publicRequest.ScheduledActionNames)
{
context.Writer.Write(publicRequestScheduledActionNamesListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeScheduledActionsRequestMarshaller _instance = new DescribeScheduledActionsRequestMarshaller();
internal static DescribeScheduledActionsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScheduledActionsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 138 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeScheduledActions operation
/// </summary>
public class DescribeScheduledActionsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeScheduledActionsResponse response = new DescribeScheduledActionsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduledActions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ScheduledAction, ScheduledActionUnmarshaller>(ScheduledActionUnmarshaller.Instance);
response.ScheduledActions = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidNextTokenException"))
{
return InvalidNextTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeScheduledActionsResponseUnmarshaller _instance = new DescribeScheduledActionsResponseUnmarshaller();
internal static DescribeScheduledActionsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeScheduledActionsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for FailedResourceAccessException Object
/// </summary>
public class FailedResourceAccessExceptionUnmarshaller : IErrorResponseUnmarshaller<FailedResourceAccessException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public FailedResourceAccessException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public FailedResourceAccessException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
FailedResourceAccessException unmarshalledObject = new FailedResourceAccessException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static FailedResourceAccessExceptionUnmarshaller _instance = new FailedResourceAccessExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static FailedResourceAccessExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServiceException Object
/// </summary>
public class InternalServiceExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServiceException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServiceException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InternalServiceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServiceException unmarshalledObject = new InternalServiceException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServiceExceptionUnmarshaller _instance = new InternalServiceExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServiceExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidNextTokenException Object
/// </summary>
public class InvalidNextTokenExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidNextTokenException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidNextTokenException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InvalidNextTokenException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidNextTokenException unmarshalledObject = new InvalidNextTokenException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidNextTokenExceptionUnmarshaller _instance = new InvalidNextTokenExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidNextTokenExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for LimitExceededException Object
/// </summary>
public class LimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<LimitExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public LimitExceededException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public LimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
LimitExceededException unmarshalledObject = new LimitExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static LimitExceededExceptionUnmarshaller _instance = new LimitExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static LimitExceededExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListTagsForResource Request Marshaller
/// </summary>
public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListTagsForResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListTagsForResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.ListTagsForResource";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceARN())
{
context.Writer.WritePropertyName("ResourceARN");
context.Writer.Write(publicRequest.ResourceARN);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller();
internal static ListTagsForResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListTagsForResource operation
/// </summary>
public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListTagsForResourceResponse response = new ListTagsForResourceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.Tags = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller();
internal static ListTagsForResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// MetricDimension Marshaller
/// </summary>
public class MetricDimensionMarshaller : IRequestMarshaller<MetricDimension, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(MetricDimension requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("Value");
context.Writer.Write(requestObject.Value);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static MetricDimensionMarshaller Instance = new MetricDimensionMarshaller();
}
} | 68 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MetricDimension Object
/// </summary>
public class MetricDimensionUnmarshaller : IUnmarshaller<MetricDimension, XmlUnmarshallerContext>, IUnmarshaller<MetricDimension, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
MetricDimension IUnmarshaller<MetricDimension, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public MetricDimension Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
MetricDimension unmarshalledObject = new MetricDimension();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static MetricDimensionUnmarshaller _instance = new MetricDimensionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MetricDimensionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for NotScaledReason Object
/// </summary>
public class NotScaledReasonUnmarshaller : IUnmarshaller<NotScaledReason, XmlUnmarshallerContext>, IUnmarshaller<NotScaledReason, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
NotScaledReason IUnmarshaller<NotScaledReason, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public NotScaledReason Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
NotScaledReason unmarshalledObject = new NotScaledReason();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CurrentCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.CurrentCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MaxCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MaxCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MinCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MinCapacity = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static NotScaledReasonUnmarshaller _instance = new NotScaledReasonUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static NotScaledReasonUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ObjectNotFoundException Object
/// </summary>
public class ObjectNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ObjectNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ObjectNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ObjectNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ObjectNotFoundException unmarshalledObject = new ObjectNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ObjectNotFoundExceptionUnmarshaller _instance = new ObjectNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ObjectNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// PredefinedMetricSpecification Marshaller
/// </summary>
public class PredefinedMetricSpecificationMarshaller : IRequestMarshaller<PredefinedMetricSpecification, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(PredefinedMetricSpecification requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetPredefinedMetricType())
{
context.Writer.WritePropertyName("PredefinedMetricType");
context.Writer.Write(requestObject.PredefinedMetricType);
}
if(requestObject.IsSetResourceLabel())
{
context.Writer.WritePropertyName("ResourceLabel");
context.Writer.Write(requestObject.ResourceLabel);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static PredefinedMetricSpecificationMarshaller Instance = new PredefinedMetricSpecificationMarshaller();
}
} | 68 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PredefinedMetricSpecification Object
/// </summary>
public class PredefinedMetricSpecificationUnmarshaller : IUnmarshaller<PredefinedMetricSpecification, XmlUnmarshallerContext>, IUnmarshaller<PredefinedMetricSpecification, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
PredefinedMetricSpecification IUnmarshaller<PredefinedMetricSpecification, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public PredefinedMetricSpecification Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
PredefinedMetricSpecification unmarshalledObject = new PredefinedMetricSpecification();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("PredefinedMetricType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PredefinedMetricType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceLabel", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceLabel = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static PredefinedMetricSpecificationUnmarshaller _instance = new PredefinedMetricSpecificationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static PredefinedMetricSpecificationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// PutScalingPolicy Request Marshaller
/// </summary>
public class PutScalingPolicyRequestMarshaller : IMarshaller<IRequest, PutScalingPolicyRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((PutScalingPolicyRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PutScalingPolicyRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.PutScalingPolicy";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetPolicyName())
{
context.Writer.WritePropertyName("PolicyName");
context.Writer.Write(publicRequest.PolicyName);
}
if(publicRequest.IsSetPolicyType())
{
context.Writer.WritePropertyName("PolicyType");
context.Writer.Write(publicRequest.PolicyType);
}
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
if(publicRequest.IsSetStepScalingPolicyConfiguration())
{
context.Writer.WritePropertyName("StepScalingPolicyConfiguration");
context.Writer.WriteObjectStart();
var marshaller = StepScalingPolicyConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.StepScalingPolicyConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTargetTrackingScalingPolicyConfiguration())
{
context.Writer.WritePropertyName("TargetTrackingScalingPolicyConfiguration");
context.Writer.WriteObjectStart();
var marshaller = TargetTrackingScalingPolicyConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.TargetTrackingScalingPolicyConfiguration, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static PutScalingPolicyRequestMarshaller _instance = new PutScalingPolicyRequestMarshaller();
internal static PutScalingPolicyRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutScalingPolicyRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 149 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PutScalingPolicy operation
/// </summary>
public class PutScalingPolicyResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
PutScalingPolicyResponse response = new PutScalingPolicyResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Alarms", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Alarm, AlarmUnmarshaller>(AlarmUnmarshaller.Instance);
response.Alarms = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PolicyARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.PolicyARN = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("FailedResourceAccessException"))
{
return FailedResourceAccessExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ObjectNotFoundException"))
{
return ObjectNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static PutScalingPolicyResponseUnmarshaller _instance = new PutScalingPolicyResponseUnmarshaller();
internal static PutScalingPolicyResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutScalingPolicyResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 136 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// PutScheduledAction Request Marshaller
/// </summary>
public class PutScheduledActionRequestMarshaller : IMarshaller<IRequest, PutScheduledActionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((PutScheduledActionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PutScheduledActionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.PutScheduledAction";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetEndTime())
{
context.Writer.WritePropertyName("EndTime");
context.Writer.Write(publicRequest.EndTime);
}
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetScalableTargetAction())
{
context.Writer.WritePropertyName("ScalableTargetAction");
context.Writer.WriteObjectStart();
var marshaller = ScalableTargetActionMarshaller.Instance;
marshaller.Marshall(publicRequest.ScalableTargetAction, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetSchedule())
{
context.Writer.WritePropertyName("Schedule");
context.Writer.Write(publicRequest.Schedule);
}
if(publicRequest.IsSetScheduledActionName())
{
context.Writer.WritePropertyName("ScheduledActionName");
context.Writer.Write(publicRequest.ScheduledActionName);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
if(publicRequest.IsSetStartTime())
{
context.Writer.WritePropertyName("StartTime");
context.Writer.Write(publicRequest.StartTime);
}
if(publicRequest.IsSetTimezone())
{
context.Writer.WritePropertyName("Timezone");
context.Writer.Write(publicRequest.Timezone);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static PutScheduledActionRequestMarshaller _instance = new PutScheduledActionRequestMarshaller();
internal static PutScheduledActionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutScheduledActionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 156 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PutScheduledAction operation
/// </summary>
public class PutScheduledActionResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
PutScheduledActionResponse response = new PutScheduledActionResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ObjectNotFoundException"))
{
return ObjectNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static PutScheduledActionResponseUnmarshaller _instance = new PutScheduledActionResponseUnmarshaller();
internal static PutScheduledActionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutScheduledActionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// RegisterScalableTarget Request Marshaller
/// </summary>
public class RegisterScalableTargetRequestMarshaller : IMarshaller<IRequest, RegisterScalableTargetRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((RegisterScalableTargetRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(RegisterScalableTargetRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.RegisterScalableTarget";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-02-06";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetMaxCapacity())
{
context.Writer.WritePropertyName("MaxCapacity");
context.Writer.Write(publicRequest.MaxCapacity);
}
if(publicRequest.IsSetMinCapacity())
{
context.Writer.WritePropertyName("MinCapacity");
context.Writer.Write(publicRequest.MinCapacity);
}
if(publicRequest.IsSetResourceId())
{
context.Writer.WritePropertyName("ResourceId");
context.Writer.Write(publicRequest.ResourceId);
}
if(publicRequest.IsSetRoleARN())
{
context.Writer.WritePropertyName("RoleARN");
context.Writer.Write(publicRequest.RoleARN);
}
if(publicRequest.IsSetScalableDimension())
{
context.Writer.WritePropertyName("ScalableDimension");
context.Writer.Write(publicRequest.ScalableDimension);
}
if(publicRequest.IsSetServiceNamespace())
{
context.Writer.WritePropertyName("ServiceNamespace");
context.Writer.Write(publicRequest.ServiceNamespace);
}
if(publicRequest.IsSetSuspendedState())
{
context.Writer.WritePropertyName("SuspendedState");
context.Writer.WriteObjectStart();
var marshaller = SuspendedStateMarshaller.Instance;
marshaller.Marshall(publicRequest.SuspendedState, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("Tags");
context.Writer.WriteObjectStart();
foreach (var publicRequestTagsKvp in publicRequest.Tags)
{
context.Writer.WritePropertyName(publicRequestTagsKvp.Key);
var publicRequestTagsValue = publicRequestTagsKvp.Value;
context.Writer.Write(publicRequestTagsValue);
}
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static RegisterScalableTargetRequestMarshaller _instance = new RegisterScalableTargetRequestMarshaller();
internal static RegisterScalableTargetRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RegisterScalableTargetRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RegisterScalableTarget operation
/// </summary>
public class RegisterScalableTargetResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
RegisterScalableTargetResponse response = new RegisterScalableTargetResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ScalableTargetARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ScalableTargetARN = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException"))
{
return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationAutoScalingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static RegisterScalableTargetResponseUnmarshaller _instance = new RegisterScalableTargetResponseUnmarshaller();
internal static RegisterScalableTargetResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RegisterScalableTargetResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ResourceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// ScalableTargetAction Marshaller
/// </summary>
public class ScalableTargetActionMarshaller : IRequestMarshaller<ScalableTargetAction, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ScalableTargetAction requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetMaxCapacity())
{
context.Writer.WritePropertyName("MaxCapacity");
context.Writer.Write(requestObject.MaxCapacity);
}
if(requestObject.IsSetMinCapacity())
{
context.Writer.WritePropertyName("MinCapacity");
context.Writer.Write(requestObject.MinCapacity);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ScalableTargetActionMarshaller Instance = new ScalableTargetActionMarshaller();
}
} | 68 |
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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ScalableTargetAction Object
/// </summary>
public class ScalableTargetActionUnmarshaller : IUnmarshaller<ScalableTargetAction, XmlUnmarshallerContext>, IUnmarshaller<ScalableTargetAction, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ScalableTargetAction IUnmarshaller<ScalableTargetAction, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ScalableTargetAction Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ScalableTargetAction unmarshalledObject = new ScalableTargetAction();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("MaxCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MaxCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MinCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MinCapacity = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ScalableTargetActionUnmarshaller _instance = new ScalableTargetActionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ScalableTargetActionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ScalableTarget Object
/// </summary>
public class ScalableTargetUnmarshaller : IUnmarshaller<ScalableTarget, XmlUnmarshallerContext>, IUnmarshaller<ScalableTarget, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ScalableTarget IUnmarshaller<ScalableTarget, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ScalableTarget Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ScalableTarget unmarshalledObject = new ScalableTarget();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MaxCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MaxCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MinCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MinCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RoleARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RoleARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalableDimension", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScalableDimension = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalableTargetARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScalableTargetARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceNamespace", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceNamespace = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SuspendedState", targetDepth))
{
var unmarshaller = SuspendedStateUnmarshaller.Instance;
unmarshalledObject.SuspendedState = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ScalableTargetUnmarshaller _instance = new ScalableTargetUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ScalableTargetUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 140 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.