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 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 ScalingActivity Object
/// </summary>
public class ScalingActivityUnmarshaller : IUnmarshaller<ScalingActivity, XmlUnmarshallerContext>, IUnmarshaller<ScalingActivity, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ScalingActivity IUnmarshaller<ScalingActivity, 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 ScalingActivity Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ScalingActivity unmarshalledObject = new ScalingActivity();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ActivityId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ActivityId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Cause", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Cause = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Details", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Details = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NotScaledReasons", targetDepth))
{
var unmarshaller = new ListUnmarshaller<NotScaledReason, NotScaledReasonUnmarshaller>(NotScaledReasonUnmarshaller.Instance);
unmarshalledObject.NotScaledReasons = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalableDimension", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScalableDimension = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceNamespace", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceNamespace = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusMessage = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ScalingActivityUnmarshaller _instance = new ScalingActivityUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ScalingActivityUnmarshaller 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 ScalingPolicy Object
/// </summary>
public class ScalingPolicyUnmarshaller : IUnmarshaller<ScalingPolicy, XmlUnmarshallerContext>, IUnmarshaller<ScalingPolicy, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ScalingPolicy IUnmarshaller<ScalingPolicy, 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 ScalingPolicy Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ScalingPolicy unmarshalledObject = new ScalingPolicy();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Alarms", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Alarm, AlarmUnmarshaller>(AlarmUnmarshaller.Instance);
unmarshalledObject.Alarms = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PolicyARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PolicyARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PolicyName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PolicyName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PolicyType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PolicyType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalableDimension", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScalableDimension = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceNamespace", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceNamespace = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StepScalingPolicyConfiguration", targetDepth))
{
var unmarshaller = StepScalingPolicyConfigurationUnmarshaller.Instance;
unmarshalledObject.StepScalingPolicyConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TargetTrackingScalingPolicyConfiguration", targetDepth))
{
var unmarshaller = TargetTrackingScalingPolicyConfigurationUnmarshaller.Instance;
unmarshalledObject.TargetTrackingScalingPolicyConfiguration = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ScalingPolicyUnmarshaller _instance = new ScalingPolicyUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ScalingPolicyUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 146 |
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 ScheduledAction Object
/// </summary>
public class ScheduledActionUnmarshaller : IUnmarshaller<ScheduledAction, XmlUnmarshallerContext>, IUnmarshaller<ScheduledAction, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ScheduledAction IUnmarshaller<ScheduledAction, 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 ScheduledAction Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ScheduledAction unmarshalledObject = new ScheduledAction();
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("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalableDimension", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScalableDimension = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalableTargetAction", targetDepth))
{
var unmarshaller = ScalableTargetActionUnmarshaller.Instance;
unmarshalledObject.ScalableTargetAction = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Schedule", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Schedule = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduledActionARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScheduledActionARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduledActionName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScheduledActionName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceNamespace", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceNamespace = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Timezone", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Timezone = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ScheduledActionUnmarshaller _instance = new ScheduledActionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ScheduledActionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 152 |
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>
/// StepAdjustment Marshaller
/// </summary>
public class StepAdjustmentMarshaller : IRequestMarshaller<StepAdjustment, 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(StepAdjustment requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetMetricIntervalLowerBound())
{
context.Writer.WritePropertyName("MetricIntervalLowerBound");
context.Writer.Write(requestObject.MetricIntervalLowerBound);
}
if(requestObject.IsSetMetricIntervalUpperBound())
{
context.Writer.WritePropertyName("MetricIntervalUpperBound");
context.Writer.Write(requestObject.MetricIntervalUpperBound);
}
if(requestObject.IsSetScalingAdjustment())
{
context.Writer.WritePropertyName("ScalingAdjustment");
context.Writer.Write(requestObject.ScalingAdjustment);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static StepAdjustmentMarshaller Instance = new StepAdjustmentMarshaller();
}
} | 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.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 StepAdjustment Object
/// </summary>
public class StepAdjustmentUnmarshaller : IUnmarshaller<StepAdjustment, XmlUnmarshallerContext>, IUnmarshaller<StepAdjustment, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
StepAdjustment IUnmarshaller<StepAdjustment, 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 StepAdjustment Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
StepAdjustment unmarshalledObject = new StepAdjustment();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("MetricIntervalLowerBound", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.MetricIntervalLowerBound = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MetricIntervalUpperBound", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.MetricIntervalUpperBound = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScalingAdjustment", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ScalingAdjustment = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static StepAdjustmentUnmarshaller _instance = new StepAdjustmentUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static StepAdjustmentUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 104 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// StepScalingPolicyConfiguration Marshaller
/// </summary>
public class StepScalingPolicyConfigurationMarshaller : IRequestMarshaller<StepScalingPolicyConfiguration, 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(StepScalingPolicyConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAdjustmentType())
{
context.Writer.WritePropertyName("AdjustmentType");
context.Writer.Write(requestObject.AdjustmentType);
}
if(requestObject.IsSetCooldown())
{
context.Writer.WritePropertyName("Cooldown");
context.Writer.Write(requestObject.Cooldown);
}
if(requestObject.IsSetMetricAggregationType())
{
context.Writer.WritePropertyName("MetricAggregationType");
context.Writer.Write(requestObject.MetricAggregationType);
}
if(requestObject.IsSetMinAdjustmentMagnitude())
{
context.Writer.WritePropertyName("MinAdjustmentMagnitude");
context.Writer.Write(requestObject.MinAdjustmentMagnitude);
}
if(requestObject.IsSetStepAdjustments())
{
context.Writer.WritePropertyName("StepAdjustments");
context.Writer.WriteArrayStart();
foreach(var requestObjectStepAdjustmentsListValue in requestObject.StepAdjustments)
{
context.Writer.WriteObjectStart();
var marshaller = StepAdjustmentMarshaller.Instance;
marshaller.Marshall(requestObjectStepAdjustmentsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static StepScalingPolicyConfigurationMarshaller Instance = new StepScalingPolicyConfigurationMarshaller();
}
} | 96 |
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 StepScalingPolicyConfiguration Object
/// </summary>
public class StepScalingPolicyConfigurationUnmarshaller : IUnmarshaller<StepScalingPolicyConfiguration, XmlUnmarshallerContext>, IUnmarshaller<StepScalingPolicyConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
StepScalingPolicyConfiguration IUnmarshaller<StepScalingPolicyConfiguration, 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 StepScalingPolicyConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
StepScalingPolicyConfiguration unmarshalledObject = new StepScalingPolicyConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AdjustmentType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AdjustmentType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Cooldown", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Cooldown = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MetricAggregationType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MetricAggregationType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MinAdjustmentMagnitude", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MinAdjustmentMagnitude = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StepAdjustments", targetDepth))
{
var unmarshaller = new ListUnmarshaller<StepAdjustment, StepAdjustmentUnmarshaller>(StepAdjustmentUnmarshaller.Instance);
unmarshalledObject.StepAdjustments = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static StepScalingPolicyConfigurationUnmarshaller _instance = new StepScalingPolicyConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static StepScalingPolicyConfigurationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// SuspendedState Marshaller
/// </summary>
public class SuspendedStateMarshaller : IRequestMarshaller<SuspendedState, 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(SuspendedState requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDynamicScalingInSuspended())
{
context.Writer.WritePropertyName("DynamicScalingInSuspended");
context.Writer.Write(requestObject.DynamicScalingInSuspended);
}
if(requestObject.IsSetDynamicScalingOutSuspended())
{
context.Writer.WritePropertyName("DynamicScalingOutSuspended");
context.Writer.Write(requestObject.DynamicScalingOutSuspended);
}
if(requestObject.IsSetScheduledScalingSuspended())
{
context.Writer.WritePropertyName("ScheduledScalingSuspended");
context.Writer.Write(requestObject.ScheduledScalingSuspended);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SuspendedStateMarshaller Instance = new SuspendedStateMarshaller();
}
} | 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.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 SuspendedState Object
/// </summary>
public class SuspendedStateUnmarshaller : IUnmarshaller<SuspendedState, XmlUnmarshallerContext>, IUnmarshaller<SuspendedState, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SuspendedState IUnmarshaller<SuspendedState, 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 SuspendedState Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SuspendedState unmarshalledObject = new SuspendedState();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DynamicScalingInSuspended", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.DynamicScalingInSuspended = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DynamicScalingOutSuspended", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.DynamicScalingOutSuspended = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduledScalingSuspended", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.ScheduledScalingSuspended = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SuspendedStateUnmarshaller _instance = new SuspendedStateUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SuspendedStateUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 104 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// TagResource Request Marshaller
/// </summary>
public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , 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((TagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(TagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.TagResource";
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);
}
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 TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller();
internal static TagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 117 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 TagResource operation
/// </summary>
public class TagResourceResponseUnmarshaller : 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)
{
TagResourceResponse response = new TagResourceResponse();
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);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException"))
{
return TooManyTagsExceptionUnmarshaller.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 TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller();
internal static TagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 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>
/// TargetTrackingMetricDataQuery Marshaller
/// </summary>
public class TargetTrackingMetricDataQueryMarshaller : IRequestMarshaller<TargetTrackingMetricDataQuery, 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(TargetTrackingMetricDataQuery requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetExpression())
{
context.Writer.WritePropertyName("Expression");
context.Writer.Write(requestObject.Expression);
}
if(requestObject.IsSetId())
{
context.Writer.WritePropertyName("Id");
context.Writer.Write(requestObject.Id);
}
if(requestObject.IsSetLabel())
{
context.Writer.WritePropertyName("Label");
context.Writer.Write(requestObject.Label);
}
if(requestObject.IsSetMetricStat())
{
context.Writer.WritePropertyName("MetricStat");
context.Writer.WriteObjectStart();
var marshaller = TargetTrackingMetricStatMarshaller.Instance;
marshaller.Marshall(requestObject.MetricStat, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetReturnData())
{
context.Writer.WritePropertyName("ReturnData");
context.Writer.Write(requestObject.ReturnData);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TargetTrackingMetricDataQueryMarshaller Instance = new TargetTrackingMetricDataQueryMarshaller();
}
} | 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.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 TargetTrackingMetricDataQuery Object
/// </summary>
public class TargetTrackingMetricDataQueryUnmarshaller : IUnmarshaller<TargetTrackingMetricDataQuery, XmlUnmarshallerContext>, IUnmarshaller<TargetTrackingMetricDataQuery, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TargetTrackingMetricDataQuery IUnmarshaller<TargetTrackingMetricDataQuery, 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 TargetTrackingMetricDataQuery Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TargetTrackingMetricDataQuery unmarshalledObject = new TargetTrackingMetricDataQuery();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Expression", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Expression = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Label", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Label = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MetricStat", targetDepth))
{
var unmarshaller = TargetTrackingMetricStatUnmarshaller.Instance;
unmarshalledObject.MetricStat = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ReturnData", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.ReturnData = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TargetTrackingMetricDataQueryUnmarshaller _instance = new TargetTrackingMetricDataQueryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TargetTrackingMetricDataQueryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// TargetTrackingMetricDimension Marshaller
/// </summary>
public class TargetTrackingMetricDimensionMarshaller : IRequestMarshaller<TargetTrackingMetricDimension, 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(TargetTrackingMetricDimension 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 TargetTrackingMetricDimensionMarshaller Instance = new TargetTrackingMetricDimensionMarshaller();
}
} | 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 TargetTrackingMetricDimension Object
/// </summary>
public class TargetTrackingMetricDimensionUnmarshaller : IUnmarshaller<TargetTrackingMetricDimension, XmlUnmarshallerContext>, IUnmarshaller<TargetTrackingMetricDimension, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TargetTrackingMetricDimension IUnmarshaller<TargetTrackingMetricDimension, 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 TargetTrackingMetricDimension Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TargetTrackingMetricDimension unmarshalledObject = new TargetTrackingMetricDimension();
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 TargetTrackingMetricDimensionUnmarshaller _instance = new TargetTrackingMetricDimensionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TargetTrackingMetricDimensionUnmarshaller 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>
/// TargetTrackingMetric Marshaller
/// </summary>
public class TargetTrackingMetricMarshaller : IRequestMarshaller<TargetTrackingMetric, 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(TargetTrackingMetric requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDimensions())
{
context.Writer.WritePropertyName("Dimensions");
context.Writer.WriteArrayStart();
foreach(var requestObjectDimensionsListValue in requestObject.Dimensions)
{
context.Writer.WriteObjectStart();
var marshaller = TargetTrackingMetricDimensionMarshaller.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.IsSetNamespace())
{
context.Writer.WritePropertyName("Namespace");
context.Writer.Write(requestObject.Namespace);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TargetTrackingMetricMarshaller Instance = new TargetTrackingMetricMarshaller();
}
} | 84 |
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>
/// TargetTrackingMetricStat Marshaller
/// </summary>
public class TargetTrackingMetricStatMarshaller : IRequestMarshaller<TargetTrackingMetricStat, 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(TargetTrackingMetricStat requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetMetric())
{
context.Writer.WritePropertyName("Metric");
context.Writer.WriteObjectStart();
var marshaller = TargetTrackingMetricMarshaller.Instance;
marshaller.Marshall(requestObject.Metric, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetStat())
{
context.Writer.WritePropertyName("Stat");
context.Writer.Write(requestObject.Stat);
}
if(requestObject.IsSetUnit())
{
context.Writer.WritePropertyName("Unit");
context.Writer.Write(requestObject.Unit);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TargetTrackingMetricStatMarshaller Instance = new TargetTrackingMetricStatMarshaller();
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 TargetTrackingMetricStat Object
/// </summary>
public class TargetTrackingMetricStatUnmarshaller : IUnmarshaller<TargetTrackingMetricStat, XmlUnmarshallerContext>, IUnmarshaller<TargetTrackingMetricStat, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TargetTrackingMetricStat IUnmarshaller<TargetTrackingMetricStat, 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 TargetTrackingMetricStat Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TargetTrackingMetricStat unmarshalledObject = new TargetTrackingMetricStat();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Metric", targetDepth))
{
var unmarshaller = TargetTrackingMetricUnmarshaller.Instance;
unmarshalledObject.Metric = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Stat", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Stat = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Unit", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Unit = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TargetTrackingMetricStatUnmarshaller _instance = new TargetTrackingMetricStatUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TargetTrackingMetricStatUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 104 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 TargetTrackingMetric Object
/// </summary>
public class TargetTrackingMetricUnmarshaller : IUnmarshaller<TargetTrackingMetric, XmlUnmarshallerContext>, IUnmarshaller<TargetTrackingMetric, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TargetTrackingMetric IUnmarshaller<TargetTrackingMetric, 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 TargetTrackingMetric Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TargetTrackingMetric unmarshalledObject = new TargetTrackingMetric();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Dimensions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<TargetTrackingMetricDimension, TargetTrackingMetricDimensionUnmarshaller>(TargetTrackingMetricDimensionUnmarshaller.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("Namespace", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Namespace = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TargetTrackingMetricUnmarshaller _instance = new TargetTrackingMetricUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TargetTrackingMetricUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 104 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// TargetTrackingScalingPolicyConfiguration Marshaller
/// </summary>
public class TargetTrackingScalingPolicyConfigurationMarshaller : IRequestMarshaller<TargetTrackingScalingPolicyConfiguration, 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(TargetTrackingScalingPolicyConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCustomizedMetricSpecification())
{
context.Writer.WritePropertyName("CustomizedMetricSpecification");
context.Writer.WriteObjectStart();
var marshaller = CustomizedMetricSpecificationMarshaller.Instance;
marshaller.Marshall(requestObject.CustomizedMetricSpecification, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetDisableScaleIn())
{
context.Writer.WritePropertyName("DisableScaleIn");
context.Writer.Write(requestObject.DisableScaleIn);
}
if(requestObject.IsSetPredefinedMetricSpecification())
{
context.Writer.WritePropertyName("PredefinedMetricSpecification");
context.Writer.WriteObjectStart();
var marshaller = PredefinedMetricSpecificationMarshaller.Instance;
marshaller.Marshall(requestObject.PredefinedMetricSpecification, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetScaleInCooldown())
{
context.Writer.WritePropertyName("ScaleInCooldown");
context.Writer.Write(requestObject.ScaleInCooldown);
}
if(requestObject.IsSetScaleOutCooldown())
{
context.Writer.WritePropertyName("ScaleOutCooldown");
context.Writer.Write(requestObject.ScaleOutCooldown);
}
if(requestObject.IsSetTargetValue())
{
context.Writer.WritePropertyName("TargetValue");
context.Writer.Write(requestObject.TargetValue);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TargetTrackingScalingPolicyConfigurationMarshaller Instance = new TargetTrackingScalingPolicyConfigurationMarshaller();
}
} | 102 |
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 TargetTrackingScalingPolicyConfiguration Object
/// </summary>
public class TargetTrackingScalingPolicyConfigurationUnmarshaller : IUnmarshaller<TargetTrackingScalingPolicyConfiguration, XmlUnmarshallerContext>, IUnmarshaller<TargetTrackingScalingPolicyConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TargetTrackingScalingPolicyConfiguration IUnmarshaller<TargetTrackingScalingPolicyConfiguration, 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 TargetTrackingScalingPolicyConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TargetTrackingScalingPolicyConfiguration unmarshalledObject = new TargetTrackingScalingPolicyConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CustomizedMetricSpecification", targetDepth))
{
var unmarshaller = CustomizedMetricSpecificationUnmarshaller.Instance;
unmarshalledObject.CustomizedMetricSpecification = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DisableScaleIn", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.DisableScaleIn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PredefinedMetricSpecification", targetDepth))
{
var unmarshaller = PredefinedMetricSpecificationUnmarshaller.Instance;
unmarshalledObject.PredefinedMetricSpecification = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScaleInCooldown", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ScaleInCooldown = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScaleOutCooldown", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ScaleOutCooldown = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TargetValue", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.TargetValue = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TargetTrackingScalingPolicyConfigurationUnmarshaller _instance = new TargetTrackingScalingPolicyConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TargetTrackingScalingPolicyConfigurationUnmarshaller 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 TooManyTagsException Object
/// </summary>
public class TooManyTagsExceptionUnmarshaller : IErrorResponseUnmarshaller<TooManyTagsException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TooManyTagsException 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 TooManyTagsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
TooManyTagsException unmarshalledObject = new TooManyTagsException(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 TooManyTagsExceptionUnmarshaller _instance = new TooManyTagsExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TooManyTagsExceptionUnmarshaller 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>
/// UntagResource Request Marshaller
/// </summary>
public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , 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((UntagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UntagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationAutoScaling");
string target = "AnyScaleFrontendService.UntagResource";
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);
}
if(publicRequest.IsSetTagKeys())
{
context.Writer.WritePropertyName("TagKeys");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys)
{
context.Writer.Write(publicRequestTagKeysListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller();
internal static UntagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 114 |
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 UntagResource operation
/// </summary>
public class UntagResourceResponseUnmarshaller : 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)
{
UntagResourceResponse response = new UntagResourceResponse();
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);
}
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 UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller();
internal static UntagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceResponseUnmarshaller 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 ValidationException Object
/// </summary>
public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValidationException 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 ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValidationExceptionUnmarshaller 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.Text;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Paginators for the ApplicationAutoScaling service
///</summary>
public class ApplicationAutoScalingPaginatorFactory : IApplicationAutoScalingPaginatorFactory
{
private readonly IAmazonApplicationAutoScaling client;
internal ApplicationAutoScalingPaginatorFactory(IAmazonApplicationAutoScaling client)
{
this.client = client;
}
/// <summary>
/// Paginator for DescribeScalableTargets operation
///</summary>
public IDescribeScalableTargetsPaginator DescribeScalableTargets(DescribeScalableTargetsRequest request)
{
return new DescribeScalableTargetsPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeScalingActivities operation
///</summary>
public IDescribeScalingActivitiesPaginator DescribeScalingActivities(DescribeScalingActivitiesRequest request)
{
return new DescribeScalingActivitiesPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeScalingPolicies operation
///</summary>
public IDescribeScalingPoliciesPaginator DescribeScalingPolicies(DescribeScalingPoliciesRequest request)
{
return new DescribeScalingPoliciesPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeScheduledActions operation
///</summary>
public IDescribeScheduledActionsPaginator DescribeScheduledActions(DescribeScheduledActionsRequest request)
{
return new DescribeScheduledActionsPaginator(this.client, request);
}
}
} | 70 |
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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Base class for DescribeScalableTargets paginators.
/// </summary>
internal sealed partial class DescribeScalableTargetsPaginator : IPaginator<DescribeScalableTargetsResponse>, IDescribeScalableTargetsPaginator
{
private readonly IAmazonApplicationAutoScaling _client;
private readonly DescribeScalableTargetsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeScalableTargetsResponse> Responses => new PaginatedResponse<DescribeScalableTargetsResponse>(this);
/// <summary>
/// Enumerable containing all of the ScalableTargets
/// </summary>
public IPaginatedEnumerable<ScalableTarget> ScalableTargets =>
new PaginatedResultKeyResponse<DescribeScalableTargetsResponse, ScalableTarget>(this, (i) => i.ScalableTargets);
internal DescribeScalableTargetsPaginator(IAmazonApplicationAutoScaling client, DescribeScalableTargetsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeScalableTargetsResponse> IPaginator<DescribeScalableTargetsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScalableTargetsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeScalableTargets(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeScalableTargetsResponse> IPaginator<DescribeScalableTargetsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScalableTargetsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeScalableTargetsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Base class for DescribeScalingActivities paginators.
/// </summary>
internal sealed partial class DescribeScalingActivitiesPaginator : IPaginator<DescribeScalingActivitiesResponse>, IDescribeScalingActivitiesPaginator
{
private readonly IAmazonApplicationAutoScaling _client;
private readonly DescribeScalingActivitiesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeScalingActivitiesResponse> Responses => new PaginatedResponse<DescribeScalingActivitiesResponse>(this);
/// <summary>
/// Enumerable containing all of the ScalingActivities
/// </summary>
public IPaginatedEnumerable<ScalingActivity> ScalingActivities =>
new PaginatedResultKeyResponse<DescribeScalingActivitiesResponse, ScalingActivity>(this, (i) => i.ScalingActivities);
internal DescribeScalingActivitiesPaginator(IAmazonApplicationAutoScaling client, DescribeScalingActivitiesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeScalingActivitiesResponse> IPaginator<DescribeScalingActivitiesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScalingActivitiesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeScalingActivities(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeScalingActivitiesResponse> IPaginator<DescribeScalingActivitiesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScalingActivitiesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeScalingActivitiesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Base class for DescribeScalingPolicies paginators.
/// </summary>
internal sealed partial class DescribeScalingPoliciesPaginator : IPaginator<DescribeScalingPoliciesResponse>, IDescribeScalingPoliciesPaginator
{
private readonly IAmazonApplicationAutoScaling _client;
private readonly DescribeScalingPoliciesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeScalingPoliciesResponse> Responses => new PaginatedResponse<DescribeScalingPoliciesResponse>(this);
/// <summary>
/// Enumerable containing all of the ScalingPolicies
/// </summary>
public IPaginatedEnumerable<ScalingPolicy> ScalingPolicies =>
new PaginatedResultKeyResponse<DescribeScalingPoliciesResponse, ScalingPolicy>(this, (i) => i.ScalingPolicies);
internal DescribeScalingPoliciesPaginator(IAmazonApplicationAutoScaling client, DescribeScalingPoliciesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeScalingPoliciesResponse> IPaginator<DescribeScalingPoliciesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScalingPoliciesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeScalingPolicies(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeScalingPoliciesResponse> IPaginator<DescribeScalingPoliciesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScalingPoliciesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeScalingPoliciesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Base class for DescribeScheduledActions paginators.
/// </summary>
internal sealed partial class DescribeScheduledActionsPaginator : IPaginator<DescribeScheduledActionsResponse>, IDescribeScheduledActionsPaginator
{
private readonly IAmazonApplicationAutoScaling _client;
private readonly DescribeScheduledActionsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeScheduledActionsResponse> Responses => new PaginatedResponse<DescribeScheduledActionsResponse>(this);
/// <summary>
/// Enumerable containing all of the ScheduledActions
/// </summary>
public IPaginatedEnumerable<ScheduledAction> ScheduledActions =>
new PaginatedResultKeyResponse<DescribeScheduledActionsResponse, ScheduledAction>(this, (i) => i.ScheduledActions);
internal DescribeScheduledActionsPaginator(IAmazonApplicationAutoScaling client, DescribeScheduledActionsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeScheduledActionsResponse> IPaginator<DescribeScheduledActionsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScheduledActionsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeScheduledActions(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeScheduledActionsResponse> IPaginator<DescribeScheduledActionsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeScheduledActionsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeScheduledActionsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-autoscaling-2016-02-06.normal.json service model.
*/
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Paginators for the ApplicationAutoScaling service
///</summary>
public interface IApplicationAutoScalingPaginatorFactory
{
/// <summary>
/// Paginator for DescribeScalableTargets operation
///</summary>
IDescribeScalableTargetsPaginator DescribeScalableTargets(DescribeScalableTargetsRequest request);
/// <summary>
/// Paginator for DescribeScalingActivities operation
///</summary>
IDescribeScalingActivitiesPaginator DescribeScalingActivities(DescribeScalingActivitiesRequest request);
/// <summary>
/// Paginator for DescribeScalingPolicies operation
///</summary>
IDescribeScalingPoliciesPaginator DescribeScalingPolicies(DescribeScalingPoliciesRequest request);
/// <summary>
/// Paginator for DescribeScheduledActions operation
///</summary>
IDescribeScheduledActionsPaginator DescribeScheduledActions(DescribeScheduledActionsRequest request);
}
} | 48 |
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.Model
{
/// <summary>
/// Paginator for the DescribeScalableTargets operation
///</summary>
public interface IDescribeScalableTargetsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeScalableTargetsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the ScalableTargets
/// </summary>
IPaginatedEnumerable<ScalableTarget> ScalableTargets { get; }
}
} | 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 Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Paginator for the DescribeScalingActivities operation
///</summary>
public interface IDescribeScalingActivitiesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeScalingActivitiesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the ScalingActivities
/// </summary>
IPaginatedEnumerable<ScalingActivity> ScalingActivities { get; }
}
} | 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 Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Paginator for the DescribeScalingPolicies operation
///</summary>
public interface IDescribeScalingPoliciesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeScalingPoliciesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the ScalingPolicies
/// </summary>
IPaginatedEnumerable<ScalingPolicy> ScalingPolicies { get; }
}
} | 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 Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling.Model
{
/// <summary>
/// Paginator for the DescribeScheduledActions operation
///</summary>
public interface IDescribeScheduledActionsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeScheduledActionsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the ScheduledActions
/// </summary>
IPaginatedEnumerable<ScheduledAction> ScheduledActions { get; }
}
} | 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.Net;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations;
using Amazon.ApplicationAutoScaling.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Implementation for accessing ApplicationAutoScaling
///
/// With Application Auto Scaling, you can configure automatic scaling for the following
/// resources:
///
/// <ul> <li>
/// <para>
/// Amazon AppStream 2.0 fleets
/// </para>
/// </li> <li>
/// <para>
/// Amazon Aurora Replicas
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification and entity recognizer endpoints
/// </para>
/// </li> <li>
/// <para>
/// Amazon DynamoDB tables and global secondary indexes throughput capacity
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS services
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache for Redis clusters (replication groups)
/// </para>
/// </li> <li>
/// <para>
/// Amazon EMR clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces (for Apache Cassandra) tables
/// </para>
/// </li> <li>
/// <para>
/// Lambda function provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Amazon Managed Streaming for Apache Kafka broker storage
/// </para>
/// </li> <li>
/// <para>
/// Amazon Neptune clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker endpoint variants
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker Serverless endpoint provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleets (Amazon EC2)
/// </para>
/// </li> <li>
/// <para>
/// Custom resources provided by your own applications or services
/// </para>
/// </li> </ul>
/// <para>
/// To learn more about Application Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html">Application
/// Auto Scaling User Guide</a>.
/// </para>
///
/// <para>
/// <b>API Summary</b>
/// </para>
///
/// <para>
/// The Application Auto Scaling service API includes three key sets of actions:
/// </para>
/// <ul> <li>
/// <para>
/// Register and manage scalable targets - Register Amazon Web Services or custom resources
/// as scalable targets (a resource that Application Auto Scaling can scale), set minimum
/// and maximum capacity limits, and retrieve information on existing scalable targets.
/// </para>
/// </li> <li>
/// <para>
/// Configure and manage automatic scaling - Define scaling policies to dynamically scale
/// your resources in response to CloudWatch alarms, schedule one-time or recurring scaling
/// actions, and retrieve your recent scaling activity history.
/// </para>
/// </li> <li>
/// <para>
/// Suspend and resume scaling - Temporarily suspend and later resume automatic scaling
/// by calling the <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html">RegisterScalableTarget</a>
/// API action for any Application Auto Scaling scalable target. You can suspend and resume
/// (individually or in combination) scale-out activities that are triggered by a scaling
/// policy, scale-in activities that are triggered by a scaling policy, and scheduled
/// scaling.
/// </para>
/// </li> </ul>
/// </summary>
public partial class AmazonApplicationAutoScalingClient : AmazonServiceClient, IAmazonApplicationAutoScaling
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationAutoScalingMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IApplicationAutoScalingPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationAutoScalingPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationAutoScalingPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationAutoScalingClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationAutoScalingConfig()) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationAutoScalingConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(AmazonApplicationAutoScalingConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationAutoScalingConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials, AmazonApplicationAutoScalingConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationAutoScalingConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationAutoScalingConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationAutoScalingConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationAutoScalingConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonApplicationAutoScalingEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
public virtual DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;
return Invoke<DeleteScalingPolicyResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteScalingPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScalingPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
public virtual IAsyncResult BeginDeleteScalingPolicy(DeleteScalingPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteScalingPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScalingPolicy.</param>
///
/// <returns>Returns a DeleteScalingPolicyResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
public virtual DeleteScalingPolicyResponse EndDeleteScalingPolicy(IAsyncResult asyncResult)
{
return EndInvoke<DeleteScalingPolicyResponse>(asyncResult);
}
#endregion
#region DeleteScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;
return Invoke<DeleteScheduledActionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteScheduledAction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScheduledAction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
public virtual IAsyncResult BeginDeleteScheduledAction(DeleteScheduledActionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteScheduledAction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScheduledAction.</param>
///
/// <returns>Returns a DeleteScheduledActionResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
public virtual DeleteScheduledActionResponse EndDeleteScheduledAction(IAsyncResult asyncResult)
{
return EndInvoke<DeleteScheduledActionResponse>(asyncResult);
}
#endregion
#region DeregisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
public virtual DeregisterScalableTargetResponse DeregisterScalableTarget(DeregisterScalableTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterScalableTargetResponseUnmarshaller.Instance;
return Invoke<DeregisterScalableTargetResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeregisterScalableTarget operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeregisterScalableTarget
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
public virtual IAsyncResult BeginDeregisterScalableTarget(DeregisterScalableTargetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterScalableTargetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeregisterScalableTarget operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeregisterScalableTarget.</param>
///
/// <returns>Returns a DeregisterScalableTargetResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
public virtual DeregisterScalableTargetResponse EndDeregisterScalableTarget(IAsyncResult asyncResult)
{
return EndInvoke<DeregisterScalableTargetResponse>(asyncResult);
}
#endregion
#region DescribeScalableTargets
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
public virtual DescribeScalableTargetsResponse DescribeScalableTargets(DescribeScalableTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalableTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalableTargetsResponseUnmarshaller.Instance;
return Invoke<DescribeScalableTargetsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeScalableTargets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalableTargets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
public virtual IAsyncResult BeginDescribeScalableTargets(DescribeScalableTargetsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalableTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalableTargetsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeScalableTargets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalableTargets.</param>
///
/// <returns>Returns a DescribeScalableTargetsResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
public virtual DescribeScalableTargetsResponse EndDescribeScalableTargets(IAsyncResult asyncResult)
{
return EndInvoke<DescribeScalableTargetsResponse>(asyncResult);
}
#endregion
#region DescribeScalingActivities
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
public virtual DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance;
return Invoke<DescribeScalingActivitiesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeScalingActivities operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingActivities
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
public virtual IAsyncResult BeginDescribeScalingActivities(DescribeScalingActivitiesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeScalingActivities operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingActivities.</param>
///
/// <returns>Returns a DescribeScalingActivitiesResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
public virtual DescribeScalingActivitiesResponse EndDescribeScalingActivities(IAsyncResult asyncResult)
{
return EndInvoke<DescribeScalingActivitiesResponse>(asyncResult);
}
#endregion
#region DescribeScalingPolicies
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
public virtual DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;
return Invoke<DescribeScalingPoliciesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeScalingPolicies operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingPolicies
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
public virtual IAsyncResult BeginDescribeScalingPolicies(DescribeScalingPoliciesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeScalingPolicies operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingPolicies.</param>
///
/// <returns>Returns a DescribeScalingPoliciesResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
public virtual DescribeScalingPoliciesResponse EndDescribeScalingPolicies(IAsyncResult asyncResult)
{
return EndInvoke<DescribeScalingPoliciesResponse>(asyncResult);
}
#endregion
#region DescribeScheduledActions
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
public virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;
return Invoke<DescribeScheduledActionsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeScheduledActions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScheduledActions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
public virtual IAsyncResult BeginDescribeScheduledActions(DescribeScheduledActionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeScheduledActions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScheduledActions.</param>
///
/// <returns>Returns a DescribeScheduledActionsResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
public virtual DescribeScheduledActionsResponse EndDescribeScheduledActions(IAsyncResult asyncResult)
{
return EndInvoke<DescribeScheduledActionsResponse>(asyncResult);
}
#endregion
#region ListTagsForResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke<ListTagsForResourceResponse>(asyncResult);
}
#endregion
#region PutScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;
return Invoke<PutScalingPolicyResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutScalingPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScalingPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
public virtual IAsyncResult BeginPutScalingPolicy(PutScalingPolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutScalingPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScalingPolicy.</param>
///
/// <returns>Returns a PutScalingPolicyResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
public virtual PutScalingPolicyResponse EndPutScalingPolicy(IAsyncResult asyncResult)
{
return EndInvoke<PutScalingPolicyResponse>(asyncResult);
}
#endregion
#region PutScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
public virtual PutScheduledActionResponse PutScheduledAction(PutScheduledActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScheduledActionResponseUnmarshaller.Instance;
return Invoke<PutScheduledActionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutScheduledAction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScheduledAction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
public virtual IAsyncResult BeginPutScheduledAction(PutScheduledActionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScheduledActionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutScheduledAction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScheduledAction.</param>
///
/// <returns>Returns a PutScheduledActionResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
public virtual PutScheduledActionResponse EndPutScheduledAction(IAsyncResult asyncResult)
{
return EndInvoke<PutScheduledActionResponse>(asyncResult);
}
#endregion
#region RegisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
public virtual RegisterScalableTargetResponse RegisterScalableTarget(RegisterScalableTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterScalableTargetResponseUnmarshaller.Instance;
return Invoke<RegisterScalableTargetResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the RegisterScalableTarget operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRegisterScalableTarget
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
public virtual IAsyncResult BeginRegisterScalableTarget(RegisterScalableTargetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterScalableTargetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the RegisterScalableTarget operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterScalableTarget.</param>
///
/// <returns>Returns a RegisterScalableTargetResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
public virtual RegisterScalableTargetResponse EndRegisterScalableTarget(IAsyncResult asyncResult)
{
return EndInvoke<RegisterScalableTargetResponse>(asyncResult);
}
#endregion
#region TagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke<TagResourceResponse>(asyncResult);
}
#endregion
#region UntagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke<UntagResourceResponse>(asyncResult);
}
#endregion
}
} | 1,501 |
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.ApplicationAutoScaling.Model;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Interface for accessing ApplicationAutoScaling
///
/// With Application Auto Scaling, you can configure automatic scaling for the following
/// resources:
///
/// <ul> <li>
/// <para>
/// Amazon AppStream 2.0 fleets
/// </para>
/// </li> <li>
/// <para>
/// Amazon Aurora Replicas
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification and entity recognizer endpoints
/// </para>
/// </li> <li>
/// <para>
/// Amazon DynamoDB tables and global secondary indexes throughput capacity
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS services
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache for Redis clusters (replication groups)
/// </para>
/// </li> <li>
/// <para>
/// Amazon EMR clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces (for Apache Cassandra) tables
/// </para>
/// </li> <li>
/// <para>
/// Lambda function provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Amazon Managed Streaming for Apache Kafka broker storage
/// </para>
/// </li> <li>
/// <para>
/// Amazon Neptune clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker endpoint variants
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker Serverless endpoint provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleets (Amazon EC2)
/// </para>
/// </li> <li>
/// <para>
/// Custom resources provided by your own applications or services
/// </para>
/// </li> </ul>
/// <para>
/// To learn more about Application Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html">Application
/// Auto Scaling User Guide</a>.
/// </para>
///
/// <para>
/// <b>API Summary</b>
/// </para>
///
/// <para>
/// The Application Auto Scaling service API includes three key sets of actions:
/// </para>
/// <ul> <li>
/// <para>
/// Register and manage scalable targets - Register Amazon Web Services or custom resources
/// as scalable targets (a resource that Application Auto Scaling can scale), set minimum
/// and maximum capacity limits, and retrieve information on existing scalable targets.
/// </para>
/// </li> <li>
/// <para>
/// Configure and manage automatic scaling - Define scaling policies to dynamically scale
/// your resources in response to CloudWatch alarms, schedule one-time or recurring scaling
/// actions, and retrieve your recent scaling activity history.
/// </para>
/// </li> <li>
/// <para>
/// Suspend and resume scaling - Temporarily suspend and later resume automatic scaling
/// by calling the <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html">RegisterScalableTarget</a>
/// API action for any Application Auto Scaling scalable target. You can suspend and resume
/// (individually or in combination) scale-out activities that are triggered by a scaling
/// policy, scale-in activities that are triggered by a scaling policy, and scheduled
/// scaling.
/// </para>
/// </li> </ul>
/// </summary>
public partial interface IAmazonApplicationAutoScaling : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationAutoScalingPaginatorFactory Paginators { get; }
#endif
#region DeleteScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteScalingPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScalingPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
IAsyncResult BeginDeleteScalingPolicy(DeleteScalingPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteScalingPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScalingPolicy.</param>
///
/// <returns>Returns a DeleteScalingPolicyResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
DeleteScalingPolicyResponse EndDeleteScalingPolicy(IAsyncResult asyncResult);
#endregion
#region DeleteScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteScheduledAction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScheduledAction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
IAsyncResult BeginDeleteScheduledAction(DeleteScheduledActionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteScheduledAction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScheduledAction.</param>
///
/// <returns>Returns a DeleteScheduledActionResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
DeleteScheduledActionResponse EndDeleteScheduledAction(IAsyncResult asyncResult);
#endregion
#region DeregisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
DeregisterScalableTargetResponse DeregisterScalableTarget(DeregisterScalableTargetRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeregisterScalableTarget operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeregisterScalableTarget
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
IAsyncResult BeginDeregisterScalableTarget(DeregisterScalableTargetRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeregisterScalableTarget operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeregisterScalableTarget.</param>
///
/// <returns>Returns a DeregisterScalableTargetResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
DeregisterScalableTargetResponse EndDeregisterScalableTarget(IAsyncResult asyncResult);
#endregion
#region DescribeScalableTargets
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
DescribeScalableTargetsResponse DescribeScalableTargets(DescribeScalableTargetsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeScalableTargets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalableTargets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
IAsyncResult BeginDescribeScalableTargets(DescribeScalableTargetsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeScalableTargets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalableTargets.</param>
///
/// <returns>Returns a DescribeScalableTargetsResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
DescribeScalableTargetsResponse EndDescribeScalableTargets(IAsyncResult asyncResult);
#endregion
#region DescribeScalingActivities
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeScalingActivities operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingActivities
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
IAsyncResult BeginDescribeScalingActivities(DescribeScalingActivitiesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeScalingActivities operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingActivities.</param>
///
/// <returns>Returns a DescribeScalingActivitiesResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
DescribeScalingActivitiesResponse EndDescribeScalingActivities(IAsyncResult asyncResult);
#endregion
#region DescribeScalingPolicies
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeScalingPolicies operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingPolicies
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
IAsyncResult BeginDescribeScalingPolicies(DescribeScalingPoliciesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeScalingPolicies operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingPolicies.</param>
///
/// <returns>Returns a DescribeScalingPoliciesResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
DescribeScalingPoliciesResponse EndDescribeScalingPolicies(IAsyncResult asyncResult);
#endregion
#region DescribeScheduledActions
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeScheduledActions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScheduledActions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
IAsyncResult BeginDescribeScheduledActions(DescribeScheduledActionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeScheduledActions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScheduledActions.</param>
///
/// <returns>Returns a DescribeScheduledActionsResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
DescribeScheduledActionsResponse EndDescribeScheduledActions(IAsyncResult asyncResult);
#endregion
#region ListTagsForResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult);
#endregion
#region PutScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutScalingPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScalingPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
IAsyncResult BeginPutScalingPolicy(PutScalingPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutScalingPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScalingPolicy.</param>
///
/// <returns>Returns a PutScalingPolicyResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
PutScalingPolicyResponse EndPutScalingPolicy(IAsyncResult asyncResult);
#endregion
#region PutScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
PutScheduledActionResponse PutScheduledAction(PutScheduledActionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutScheduledAction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScheduledAction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
IAsyncResult BeginPutScheduledAction(PutScheduledActionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutScheduledAction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScheduledAction.</param>
///
/// <returns>Returns a PutScheduledActionResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
PutScheduledActionResponse EndPutScheduledAction(IAsyncResult asyncResult);
#endregion
#region RegisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
RegisterScalableTargetResponse RegisterScalableTarget(RegisterScalableTargetRequest request);
/// <summary>
/// Initiates the asynchronous execution of the RegisterScalableTarget operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRegisterScalableTarget
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
IAsyncResult BeginRegisterScalableTarget(RegisterScalableTargetRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the RegisterScalableTarget operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterScalableTarget.</param>
///
/// <returns>Returns a RegisterScalableTargetResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
RegisterScalableTargetResponse EndRegisterScalableTarget(IAsyncResult asyncResult);
#endregion
#region TagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse EndTagResource(IAsyncResult asyncResult);
#endregion
#region UntagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonApplicationAutoScalingClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from ApplicationAutoScaling.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse EndUntagResource(IAsyncResult asyncResult);
#endregion
}
} | 1,099 |
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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations;
using Amazon.ApplicationAutoScaling.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Implementation for accessing ApplicationAutoScaling
///
/// With Application Auto Scaling, you can configure automatic scaling for the following
/// resources:
///
/// <ul> <li>
/// <para>
/// Amazon AppStream 2.0 fleets
/// </para>
/// </li> <li>
/// <para>
/// Amazon Aurora Replicas
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification and entity recognizer endpoints
/// </para>
/// </li> <li>
/// <para>
/// Amazon DynamoDB tables and global secondary indexes throughput capacity
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS services
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache for Redis clusters (replication groups)
/// </para>
/// </li> <li>
/// <para>
/// Amazon EMR clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces (for Apache Cassandra) tables
/// </para>
/// </li> <li>
/// <para>
/// Lambda function provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Amazon Managed Streaming for Apache Kafka broker storage
/// </para>
/// </li> <li>
/// <para>
/// Amazon Neptune clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker endpoint variants
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker Serverless endpoint provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleets (Amazon EC2)
/// </para>
/// </li> <li>
/// <para>
/// Custom resources provided by your own applications or services
/// </para>
/// </li> </ul>
/// <para>
/// To learn more about Application Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html">Application
/// Auto Scaling User Guide</a>.
/// </para>
///
/// <para>
/// <b>API Summary</b>
/// </para>
///
/// <para>
/// The Application Auto Scaling service API includes three key sets of actions:
/// </para>
/// <ul> <li>
/// <para>
/// Register and manage scalable targets - Register Amazon Web Services or custom resources
/// as scalable targets (a resource that Application Auto Scaling can scale), set minimum
/// and maximum capacity limits, and retrieve information on existing scalable targets.
/// </para>
/// </li> <li>
/// <para>
/// Configure and manage automatic scaling - Define scaling policies to dynamically scale
/// your resources in response to CloudWatch alarms, schedule one-time or recurring scaling
/// actions, and retrieve your recent scaling activity history.
/// </para>
/// </li> <li>
/// <para>
/// Suspend and resume scaling - Temporarily suspend and later resume automatic scaling
/// by calling the <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html">RegisterScalableTarget</a>
/// API action for any Application Auto Scaling scalable target. You can suspend and resume
/// (individually or in combination) scale-out activities that are triggered by a scaling
/// policy, scale-in activities that are triggered by a scaling policy, and scheduled
/// scaling.
/// </para>
/// </li> </ul>
/// </summary>
public partial class AmazonApplicationAutoScalingClient : AmazonServiceClient, IAmazonApplicationAutoScaling
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationAutoScalingMetadata();
private IApplicationAutoScalingPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationAutoScalingPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationAutoScalingPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationAutoScalingClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationAutoScalingConfig()) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationAutoScalingConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(AmazonApplicationAutoScalingConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationAutoScalingConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials, AmazonApplicationAutoScalingConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationAutoScalingConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationAutoScalingConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationAutoScalingConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationAutoScalingConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonApplicationAutoScalingEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
public virtual DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;
return Invoke<DeleteScalingPolicyResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
public virtual Task<DeleteScalingPolicyResponse> DeleteScalingPolicyAsync(DeleteScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;
return InvokeAsync<DeleteScalingPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;
return Invoke<DeleteScheduledActionResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
public virtual Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteScheduledActionResponse>(request, options, cancellationToken);
}
#endregion
#region DeregisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
public virtual DeregisterScalableTargetResponse DeregisterScalableTarget(DeregisterScalableTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterScalableTargetResponseUnmarshaller.Instance;
return Invoke<DeregisterScalableTargetResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
public virtual Task<DeregisterScalableTargetResponse> DeregisterScalableTargetAsync(DeregisterScalableTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterScalableTargetResponseUnmarshaller.Instance;
return InvokeAsync<DeregisterScalableTargetResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScalableTargets
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
public virtual DescribeScalableTargetsResponse DescribeScalableTargets(DescribeScalableTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalableTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalableTargetsResponseUnmarshaller.Instance;
return Invoke<DescribeScalableTargetsResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
public virtual Task<DescribeScalableTargetsResponse> DescribeScalableTargetsAsync(DescribeScalableTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalableTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalableTargetsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScalableTargetsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScalingActivities
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
public virtual DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance;
return Invoke<DescribeScalingActivitiesResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
public virtual Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScalingActivitiesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScalingPolicies
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
public virtual DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;
return Invoke<DescribeScalingPoliciesResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
public virtual Task<DescribeScalingPoliciesResponse> DescribeScalingPoliciesAsync(DescribeScalingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScalingPoliciesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScheduledActions
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
public virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;
return Invoke<DescribeScheduledActionsResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
public virtual Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScheduledActionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region PutScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;
return Invoke<PutScalingPolicyResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
public virtual Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;
return InvokeAsync<PutScalingPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region PutScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
public virtual PutScheduledActionResponse PutScheduledAction(PutScheduledActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScheduledActionResponseUnmarshaller.Instance;
return Invoke<PutScheduledActionResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
public virtual Task<PutScheduledActionResponse> PutScheduledActionAsync(PutScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScheduledActionResponseUnmarshaller.Instance;
return InvokeAsync<PutScheduledActionResponse>(request, options, cancellationToken);
}
#endregion
#region RegisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
public virtual RegisterScalableTargetResponse RegisterScalableTarget(RegisterScalableTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterScalableTargetResponseUnmarshaller.Instance;
return Invoke<RegisterScalableTargetResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
public virtual Task<RegisterScalableTargetResponse> RegisterScalableTargetAsync(RegisterScalableTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterScalableTargetResponseUnmarshaller.Instance;
return InvokeAsync<RegisterScalableTargetResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,765 |
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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationAutoScaling.Model;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Interface for accessing ApplicationAutoScaling
///
/// With Application Auto Scaling, you can configure automatic scaling for the following
/// resources:
///
/// <ul> <li>
/// <para>
/// Amazon AppStream 2.0 fleets
/// </para>
/// </li> <li>
/// <para>
/// Amazon Aurora Replicas
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification and entity recognizer endpoints
/// </para>
/// </li> <li>
/// <para>
/// Amazon DynamoDB tables and global secondary indexes throughput capacity
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS services
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache for Redis clusters (replication groups)
/// </para>
/// </li> <li>
/// <para>
/// Amazon EMR clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces (for Apache Cassandra) tables
/// </para>
/// </li> <li>
/// <para>
/// Lambda function provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Amazon Managed Streaming for Apache Kafka broker storage
/// </para>
/// </li> <li>
/// <para>
/// Amazon Neptune clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker endpoint variants
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker Serverless endpoint provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleets (Amazon EC2)
/// </para>
/// </li> <li>
/// <para>
/// Custom resources provided by your own applications or services
/// </para>
/// </li> </ul>
/// <para>
/// To learn more about Application Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html">Application
/// Auto Scaling User Guide</a>.
/// </para>
///
/// <para>
/// <b>API Summary</b>
/// </para>
///
/// <para>
/// The Application Auto Scaling service API includes three key sets of actions:
/// </para>
/// <ul> <li>
/// <para>
/// Register and manage scalable targets - Register Amazon Web Services or custom resources
/// as scalable targets (a resource that Application Auto Scaling can scale), set minimum
/// and maximum capacity limits, and retrieve information on existing scalable targets.
/// </para>
/// </li> <li>
/// <para>
/// Configure and manage automatic scaling - Define scaling policies to dynamically scale
/// your resources in response to CloudWatch alarms, schedule one-time or recurring scaling
/// actions, and retrieve your recent scaling activity history.
/// </para>
/// </li> <li>
/// <para>
/// Suspend and resume scaling - Temporarily suspend and later resume automatic scaling
/// by calling the <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html">RegisterScalableTarget</a>
/// API action for any Application Auto Scaling scalable target. You can suspend and resume
/// (individually or in combination) scale-out activities that are triggered by a scaling
/// policy, scale-in activities that are triggered by a scaling policy, and scheduled
/// scaling.
/// </para>
/// </li> </ul>
/// </summary>
public partial interface IAmazonApplicationAutoScaling : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationAutoScalingPaginatorFactory Paginators { get; }
#region DeleteScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
Task<DeleteScalingPolicyResponse> DeleteScalingPolicyAsync(DeleteScalingPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeregisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
DeregisterScalableTargetResponse DeregisterScalableTarget(DeregisterScalableTargetRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
Task<DeregisterScalableTargetResponse> DeregisterScalableTargetAsync(DeregisterScalableTargetRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScalableTargets
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
DescribeScalableTargetsResponse DescribeScalableTargets(DescribeScalableTargetsRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
Task<DescribeScalableTargetsResponse> DescribeScalableTargetsAsync(DescribeScalableTargetsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScalingActivities
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScalingPolicies
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
Task<DescribeScalingPoliciesResponse> DescribeScalingPoliciesAsync(DescribeScalingPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScheduledActions
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
PutScheduledActionResponse PutScheduledAction(PutScheduledActionRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
Task<PutScheduledActionResponse> PutScheduledActionAsync(PutScheduledActionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RegisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
RegisterScalableTargetResponse RegisterScalableTarget(RegisterScalableTargetRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
Task<RegisterScalableTargetResponse> RegisterScalableTargetAsync(RegisterScalableTargetRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 1,375 |
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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationAutoScaling.Model;
using Amazon.ApplicationAutoScaling.Model.Internal.MarshallTransformations;
using Amazon.ApplicationAutoScaling.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Implementation for accessing ApplicationAutoScaling
///
/// With Application Auto Scaling, you can configure automatic scaling for the following
/// resources:
///
/// <ul> <li>
/// <para>
/// Amazon AppStream 2.0 fleets
/// </para>
/// </li> <li>
/// <para>
/// Amazon Aurora Replicas
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification and entity recognizer endpoints
/// </para>
/// </li> <li>
/// <para>
/// Amazon DynamoDB tables and global secondary indexes throughput capacity
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS services
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache for Redis clusters (replication groups)
/// </para>
/// </li> <li>
/// <para>
/// Amazon EMR clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces (for Apache Cassandra) tables
/// </para>
/// </li> <li>
/// <para>
/// Lambda function provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Amazon Managed Streaming for Apache Kafka broker storage
/// </para>
/// </li> <li>
/// <para>
/// Amazon Neptune clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker endpoint variants
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker Serverless endpoint provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleets (Amazon EC2)
/// </para>
/// </li> <li>
/// <para>
/// Custom resources provided by your own applications or services
/// </para>
/// </li> </ul>
/// <para>
/// To learn more about Application Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html">Application
/// Auto Scaling User Guide</a>.
/// </para>
///
/// <para>
/// <b>API Summary</b>
/// </para>
///
/// <para>
/// The Application Auto Scaling service API includes three key sets of actions:
/// </para>
/// <ul> <li>
/// <para>
/// Register and manage scalable targets - Register Amazon Web Services or custom resources
/// as scalable targets (a resource that Application Auto Scaling can scale), set minimum
/// and maximum capacity limits, and retrieve information on existing scalable targets.
/// </para>
/// </li> <li>
/// <para>
/// Configure and manage automatic scaling - Define scaling policies to dynamically scale
/// your resources in response to CloudWatch alarms, schedule one-time or recurring scaling
/// actions, and retrieve your recent scaling activity history.
/// </para>
/// </li> <li>
/// <para>
/// Suspend and resume scaling - Temporarily suspend and later resume automatic scaling
/// by calling the <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html">RegisterScalableTarget</a>
/// API action for any Application Auto Scaling scalable target. You can suspend and resume
/// (individually or in combination) scale-out activities that are triggered by a scaling
/// policy, scale-in activities that are triggered by a scaling policy, and scheduled
/// scaling.
/// </para>
/// </li> </ul>
/// </summary>
public partial class AmazonApplicationAutoScalingClient : AmazonServiceClient, IAmazonApplicationAutoScaling
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationAutoScalingMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationAutoScalingClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationAutoScalingConfig()) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationAutoScalingConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(AmazonApplicationAutoScalingConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationAutoScalingConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Credentials and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(AWSCredentials credentials, AmazonApplicationAutoScalingConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationAutoScalingConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationAutoScalingConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationAutoScalingConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationAutoScalingConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationAutoScalingClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationAutoScalingClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonApplicationAutoScalingClient Configuration Object</param>
public AmazonApplicationAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationAutoScalingConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IApplicationAutoScalingPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationAutoScalingPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationAutoScalingPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonApplicationAutoScalingEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteScalingPolicy
internal virtual DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;
return Invoke<DeleteScalingPolicyResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
public virtual Task<DeleteScalingPolicyResponse> DeleteScalingPolicyAsync(DeleteScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;
return InvokeAsync<DeleteScalingPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteScheduledAction
internal virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;
return Invoke<DeleteScheduledActionResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
public virtual Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteScheduledActionResponse>(request, options, cancellationToken);
}
#endregion
#region DeregisterScalableTarget
internal virtual DeregisterScalableTargetResponse DeregisterScalableTarget(DeregisterScalableTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterScalableTargetResponseUnmarshaller.Instance;
return Invoke<DeregisterScalableTargetResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
public virtual Task<DeregisterScalableTargetResponse> DeregisterScalableTargetAsync(DeregisterScalableTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterScalableTargetResponseUnmarshaller.Instance;
return InvokeAsync<DeregisterScalableTargetResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScalableTargets
internal virtual DescribeScalableTargetsResponse DescribeScalableTargets(DescribeScalableTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalableTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalableTargetsResponseUnmarshaller.Instance;
return Invoke<DescribeScalableTargetsResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
public virtual Task<DescribeScalableTargetsResponse> DescribeScalableTargetsAsync(DescribeScalableTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalableTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalableTargetsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScalableTargetsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScalingActivities
internal virtual DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance;
return Invoke<DescribeScalingActivitiesResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
public virtual Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScalingActivitiesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScalingPolicies
internal virtual DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;
return Invoke<DescribeScalingPoliciesResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
public virtual Task<DescribeScalingPoliciesResponse> DescribeScalingPoliciesAsync(DescribeScalingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScalingPoliciesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeScheduledActions
internal virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;
return Invoke<DescribeScheduledActionsResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
public virtual Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeScheduledActionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region PutScalingPolicy
internal virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;
return Invoke<PutScalingPolicyResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
public virtual Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;
return InvokeAsync<PutScalingPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region PutScheduledAction
internal virtual PutScheduledActionResponse PutScheduledAction(PutScheduledActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScheduledActionResponseUnmarshaller.Instance;
return Invoke<PutScheduledActionResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
public virtual Task<PutScheduledActionResponse> PutScheduledActionAsync(PutScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutScheduledActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutScheduledActionResponseUnmarshaller.Instance;
return InvokeAsync<PutScheduledActionResponse>(request, options, cancellationToken);
}
#endregion
#region RegisterScalableTarget
internal virtual RegisterScalableTargetResponse RegisterScalableTarget(RegisterScalableTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterScalableTargetResponseUnmarshaller.Instance;
return Invoke<RegisterScalableTargetResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
public virtual Task<RegisterScalableTargetResponse> RegisterScalableTargetAsync(RegisterScalableTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterScalableTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterScalableTargetResponseUnmarshaller.Instance;
return InvokeAsync<RegisterScalableTargetResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,244 |
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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationAutoScaling.Model;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Interface for accessing ApplicationAutoScaling
///
/// With Application Auto Scaling, you can configure automatic scaling for the following
/// resources:
///
/// <ul> <li>
/// <para>
/// Amazon AppStream 2.0 fleets
/// </para>
/// </li> <li>
/// <para>
/// Amazon Aurora Replicas
/// </para>
/// </li> <li>
/// <para>
/// Amazon Comprehend document classification and entity recognizer endpoints
/// </para>
/// </li> <li>
/// <para>
/// Amazon DynamoDB tables and global secondary indexes throughput capacity
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS services
/// </para>
/// </li> <li>
/// <para>
/// Amazon ElastiCache for Redis clusters (replication groups)
/// </para>
/// </li> <li>
/// <para>
/// Amazon EMR clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon Keyspaces (for Apache Cassandra) tables
/// </para>
/// </li> <li>
/// <para>
/// Lambda function provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Amazon Managed Streaming for Apache Kafka broker storage
/// </para>
/// </li> <li>
/// <para>
/// Amazon Neptune clusters
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker endpoint variants
/// </para>
/// </li> <li>
/// <para>
/// Amazon SageMaker Serverless endpoint provisioned concurrency
/// </para>
/// </li> <li>
/// <para>
/// Spot Fleets (Amazon EC2)
/// </para>
/// </li> <li>
/// <para>
/// Custom resources provided by your own applications or services
/// </para>
/// </li> </ul>
/// <para>
/// To learn more about Application Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html">Application
/// Auto Scaling User Guide</a>.
/// </para>
///
/// <para>
/// <b>API Summary</b>
/// </para>
///
/// <para>
/// The Application Auto Scaling service API includes three key sets of actions:
/// </para>
/// <ul> <li>
/// <para>
/// Register and manage scalable targets - Register Amazon Web Services or custom resources
/// as scalable targets (a resource that Application Auto Scaling can scale), set minimum
/// and maximum capacity limits, and retrieve information on existing scalable targets.
/// </para>
/// </li> <li>
/// <para>
/// Configure and manage automatic scaling - Define scaling policies to dynamically scale
/// your resources in response to CloudWatch alarms, schedule one-time or recurring scaling
/// actions, and retrieve your recent scaling activity history.
/// </para>
/// </li> <li>
/// <para>
/// Suspend and resume scaling - Temporarily suspend and later resume automatic scaling
/// by calling the <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html">RegisterScalableTarget</a>
/// API action for any Application Auto Scaling scalable target. You can suspend and resume
/// (individually or in combination) scale-out activities that are triggered by a scaling
/// policy, scale-in activities that are triggered by a scaling policy, and scheduled
/// scaling.
/// </para>
/// </li> </ul>
/// </summary>
public partial interface IAmazonApplicationAutoScaling : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationAutoScalingPaginatorFactory Paginators { get; }
#endif
#region DeleteScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy">REST API Reference for DeleteScalingPolicy Operation</seealso>
Task<DeleteScalingPolicyResponse> DeleteScalingPolicyAsync(DeleteScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso>
Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeregisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DeregisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeregisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget">REST API Reference for DeregisterScalableTarget Operation</seealso>
Task<DeregisterScalableTargetResponse> DeregisterScalableTargetAsync(DeregisterScalableTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScalableTargets
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalableTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalableTargets service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets">REST API Reference for DescribeScalableTargets Operation</seealso>
Task<DescribeScalableTargetsResponse> DescribeScalableTargetsAsync(DescribeScalableTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScalingActivities
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso>
Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScalingPolicies
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScalingPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScalingPolicies service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies">REST API Reference for DescribeScalingPolicies Operation</seealso>
Task<DescribeScalingPoliciesResponse> DescribeScalingPoliciesAsync(DescribeScalingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeScheduledActions
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeScheduledActions service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InvalidNextTokenException">
/// The next token supplied was invalid.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso>
Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutScalingPolicy
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScalingPolicy service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.FailedResourceAccessException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso>
Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutScheduledAction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PutScheduledAction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutScheduledAction service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ObjectNotFoundException">
/// 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.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction">REST API Reference for PutScheduledAction Operation</seealso>
Task<PutScheduledActionResponse> PutScheduledActionAsync(PutScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RegisterScalableTarget
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the RegisterScalableTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RegisterScalableTarget service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ConcurrentUpdateException">
/// Concurrent updates caused an exception, for example, if you request an update to an
/// Application Auto Scaling resource that already has a pending update.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.InternalServiceException">
/// The service encountered an internal error.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.LimitExceededException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget">REST API Reference for RegisterScalableTarget Operation</seealso>
Task<RegisterScalableTargetResponse> RegisterScalableTargetAsync(RegisterScalableTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.TooManyTagsException">
/// The request contains too many tags. Try the request again with fewer tags.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationAutoScaling.</returns>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ResourceNotFoundException">
/// The specified resource doesn't exist.
/// </exception>
/// <exception cref="Amazon.ApplicationAutoScaling.Model.ValidationException">
/// An exception was thrown for a validation issue. Review the available parameters for
/// the API request.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 811 |
aws-sdk-net | aws | C# | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.ApplicationAutoScaling")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Application Auto Scaling. Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Amazon EC2 Auto Scaling.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Application Auto Scaling. Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Amazon EC2 Auto Scaling.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Application Auto Scaling. Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Amazon EC2 Auto Scaling.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Application Auto Scaling. Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Amazon EC2 Auto Scaling.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.106.12")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.ApplicationCostProfiler.Internal;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Configuration for accessing Amazon ApplicationCostProfiler service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonApplicationCostProfilerConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.100.147");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonApplicationCostProfilerConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonApplicationCostProfilerDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "application-cost-profiler";
this.EndpointProvider = new AmazonApplicationCostProfilerEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "application-cost-profiler";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2020-09-10";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Configuration for accessing Amazon ApplicationCostProfiler service
/// </summary>
public static class AmazonApplicationCostProfilerDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// ApplicationCostProfiler
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
} | 146 |
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.ApplicationCostProfiler.Endpoints
{
/// <summary>
/// Contains parameters used for resolving ApplicationCostProfiler endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal ApplicationCostProfilerEndpointProvider and ApplicationCostProfilerEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class ApplicationCostProfilerEndpointParameters : EndpointParameters
{
/// <summary>
/// ApplicationCostProfilerEndpointParameters constructor
/// </summary>
public ApplicationCostProfilerEndpointParameters()
{
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.ApplicationCostProfiler
{
///<summary>
/// Common exception for the ApplicationCostProfiler service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonApplicationCostProfilerException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonApplicationCostProfilerException
/// </summary>
/// <param name="message"></param>
public AmazonApplicationCostProfilerException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonApplicationCostProfilerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonApplicationCostProfilerException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonApplicationCostProfilerException
/// </summary>
/// <param name="innerException"></param>
public AmazonApplicationCostProfilerException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonApplicationCostProfilerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonApplicationCostProfilerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonApplicationCostProfilerException
/// </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 AmazonApplicationCostProfilerException(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 AmazonApplicationCostProfilerException 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 AmazonApplicationCostProfilerException(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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Constants used for properties of type Format.
/// </summary>
public class Format : ConstantClass
{
/// <summary>
/// Constant CSV for Format
/// </summary>
public static readonly Format CSV = new Format("CSV");
/// <summary>
/// Constant PARQUET for Format
/// </summary>
public static readonly Format PARQUET = new Format("PARQUET");
/// <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 Format(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 Format FindValue(string value)
{
return FindValue<Format>(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 Format(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ReportFrequency.
/// </summary>
public class ReportFrequency : ConstantClass
{
/// <summary>
/// Constant ALL for ReportFrequency
/// </summary>
public static readonly ReportFrequency ALL = new ReportFrequency("ALL");
/// <summary>
/// Constant DAILY for ReportFrequency
/// </summary>
public static readonly ReportFrequency DAILY = new ReportFrequency("DAILY");
/// <summary>
/// Constant MONTHLY for ReportFrequency
/// </summary>
public static readonly ReportFrequency MONTHLY = new ReportFrequency("MONTHLY");
/// <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 ReportFrequency(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 ReportFrequency FindValue(string value)
{
return FindValue<ReportFrequency>(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 ReportFrequency(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type S3BucketRegion.
/// </summary>
public class S3BucketRegion : ConstantClass
{
/// <summary>
/// Constant AfSouth1 for S3BucketRegion
/// </summary>
public static readonly S3BucketRegion AfSouth1 = new S3BucketRegion("af-south-1");
/// <summary>
/// Constant ApEast1 for S3BucketRegion
/// </summary>
public static readonly S3BucketRegion ApEast1 = new S3BucketRegion("ap-east-1");
/// <summary>
/// Constant EuSouth1 for S3BucketRegion
/// </summary>
public static readonly S3BucketRegion EuSouth1 = new S3BucketRegion("eu-south-1");
/// <summary>
/// Constant MeSouth1 for S3BucketRegion
/// </summary>
public static readonly S3BucketRegion MeSouth1 = new S3BucketRegion("me-south-1");
/// <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 S3BucketRegion(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 S3BucketRegion FindValue(string value)
{
return FindValue<S3BucketRegion>(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 S3BucketRegion(string value)
{
return FindValue(value);
}
}
} | 188 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Internal
{
/// <summary>
/// Amazon ApplicationCostProfiler endpoint provider.
/// Resolves endpoint for given set of ApplicationCostProfilerEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonApplicationCostProfilerEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for ApplicationCostProfilerEndpointParameters
/// </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 ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null)
{
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 (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-cost-profiler-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")))
{
return new Endpoint(Interpolate(@"https://application-cost-profiler-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-cost-profiler.{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-cost-profiler.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("Cannot resolve endpoint");
}
}
} | 99 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using Amazon.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.ApplicationCostProfiler.Endpoints;
#pragma warning disable 1591
namespace Amazon.ApplicationCostProfiler.Internal
{
/// <summary>
/// Amazon ApplicationCostProfiler endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for ApplicationCostProfiler service requests.
/// Collects values for ApplicationCostProfilerEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses ApplicationCostProfilerEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonApplicationCostProfilerEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonApplicationCostProfilerConfig)requestContext.ClientConfig;
var result = new ApplicationCostProfilerEndpointParameters();
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.ApplicationCostProfiler.Internal
{
/// <summary>
/// Service metadata for Amazon ApplicationCostProfiler service
/// </summary>
public partial class AmazonApplicationCostProfilerMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "ApplicationCostProfiler";
}
}
/// <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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// You do not have permission to perform this action.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AccessDeniedException : AmazonApplicationCostProfilerException
{
/// <summary>
/// Constructs a new AccessDeniedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public AccessDeniedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AccessDeniedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="innerException"></param>
public AccessDeniedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </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 AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AccessDeniedException(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 AccessDeniedException 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 AccessDeniedException(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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Base class for ApplicationCostProfiler operation requests.
/// </summary>
public partial class AmazonApplicationCostProfilerRequest : 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Container for the parameters to the DeleteReportDefinition operation.
/// Deletes the specified report definition in AWS Application Cost Profiler. This stops
/// the report from being generated.
/// </summary>
public partial class DeleteReportDefinitionRequest : AmazonApplicationCostProfilerRequest
{
private string _reportId;
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// Required. ID of the report to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 60 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// This is the response object from the DeleteReportDefinition operation.
/// </summary>
public partial class DeleteReportDefinitionResponse : AmazonWebServiceResponse
{
private string _reportId;
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// ID of the report that was deleted.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Container for the parameters to the GetReportDefinition operation.
/// Retrieves the definition of a report already configured in AWS Application Cost Profiler.
/// </summary>
public partial class GetReportDefinitionRequest : AmazonApplicationCostProfilerRequest
{
private string _reportId;
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// ID of the report to retrieve.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// This is the response object from the GetReportDefinition operation.
/// </summary>
public partial class GetReportDefinitionResponse : AmazonWebServiceResponse
{
private DateTime? _createdAt;
private S3Location _destinations3Location;
private Format _format;
private DateTime? _lastUpdated;
private string _reportDescription;
private ReportFrequency _reportFrequency;
private string _reportId;
/// <summary>
/// Gets and sets the property CreatedAt.
/// <para>
/// Timestamp (milliseconds) when this report definition was created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
/// <summary>
/// Gets and sets the property DestinationS3Location.
/// <para>
/// Amazon Simple Storage Service (Amazon S3) location where the report is uploaded.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public S3Location DestinationS3Location
{
get { return this._destinations3Location; }
set { this._destinations3Location = value; }
}
// Check to see if DestinationS3Location property is set
internal bool IsSetDestinationS3Location()
{
return this._destinations3Location != null;
}
/// <summary>
/// Gets and sets the property Format.
/// <para>
/// Format of the generated report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Format Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
/// <summary>
/// Gets and sets the property LastUpdated.
/// <para>
/// Timestamp (milliseconds) when this report definition was last updated.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime LastUpdated
{
get { return this._lastUpdated.GetValueOrDefault(); }
set { this._lastUpdated = value; }
}
// Check to see if LastUpdated property is set
internal bool IsSetLastUpdated()
{
return this._lastUpdated.HasValue;
}
/// <summary>
/// Gets and sets the property ReportDescription.
/// <para>
/// Description of the report.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ReportDescription
{
get { return this._reportDescription; }
set { this._reportDescription = value; }
}
// Check to see if ReportDescription property is set
internal bool IsSetReportDescription()
{
return this._reportDescription != null;
}
/// <summary>
/// Gets and sets the property ReportFrequency.
/// <para>
/// Cadence used to generate the report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ReportFrequency ReportFrequency
{
get { return this._reportFrequency; }
set { this._reportFrequency = value; }
}
// Check to see if ReportFrequency property is set
internal bool IsSetReportFrequency()
{
return this._reportFrequency != null;
}
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// ID of the report retrieved.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 178 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Container for the parameters to the ImportApplicationUsage operation.
/// Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
///
///
/// <para>
/// The data must already exist in the S3 location. As part of the action, AWS Application
/// Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon
/// for processing asynchronously.
/// </para>
/// </summary>
public partial class ImportApplicationUsageRequest : AmazonApplicationCostProfilerRequest
{
private SourceS3Location _sources3Location;
/// <summary>
/// Gets and sets the property SourceS3Location.
/// <para>
/// Amazon S3 location to import application usage data from.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public SourceS3Location SourceS3Location
{
get { return this._sources3Location; }
set { this._sources3Location = value; }
}
// Check to see if SourceS3Location property is set
internal bool IsSetSourceS3Location()
{
return this._sources3Location != null;
}
}
} | 66 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// This is the response object from the ImportApplicationUsage operation.
/// </summary>
public partial class ImportApplicationUsageResponse : AmazonWebServiceResponse
{
private string _importId;
/// <summary>
/// Gets and sets the property ImportId.
/// <para>
/// ID of the import request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ImportId
{
get { return this._importId; }
set { this._importId = value; }
}
// Check to see if ImportId property is set
internal bool IsSetImportId()
{
return this._importId != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// An internal server error occurred. Retry your request.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServerException : AmazonApplicationCostProfilerException
{
/// <summary>
/// Constructs a new InternalServerException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServerException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServerException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="innerException"></param>
public InternalServerException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </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 InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(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 InternalServerException 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 InternalServerException(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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Container for the parameters to the ListReportDefinitions operation.
/// Retrieves a list of all reports and their configurations for your AWS account.
///
///
/// <para>
/// The maximum number of reports is one.
/// </para>
/// </summary>
public partial class ListReportDefinitionsRequest : AmazonApplicationCostProfilerRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
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 value from a previous call to access the next page of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=102400)]
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;
}
}
} | 84 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// This is the response object from the ListReportDefinitions operation.
/// </summary>
public partial class ListReportDefinitionsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ReportDefinition> _reportDefinitions = new List<ReportDefinition>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The value of the next token, if it exists. Null if there are no more results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=102400)]
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 ReportDefinitions.
/// <para>
/// The retrieved reports.
/// </para>
/// </summary>
public List<ReportDefinition> ReportDefinitions
{
get { return this._reportDefinitions; }
set { this._reportDefinitions = value; }
}
// Check to see if ReportDefinitions property is set
internal bool IsSetReportDefinitions()
{
return this._reportDefinitions != null && this._reportDefinitions.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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Container for the parameters to the PutReportDefinition operation.
/// Creates the report definition for a report in Application Cost Profiler.
/// </summary>
public partial class PutReportDefinitionRequest : AmazonApplicationCostProfilerRequest
{
private S3Location _destinations3Location;
private Format _format;
private string _reportDescription;
private ReportFrequency _reportFrequency;
private string _reportId;
/// <summary>
/// Gets and sets the property DestinationS3Location.
/// <para>
/// Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost
/// Profiler uploads the report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public S3Location DestinationS3Location
{
get { return this._destinations3Location; }
set { this._destinations3Location = value; }
}
// Check to see if DestinationS3Location property is set
internal bool IsSetDestinationS3Location()
{
return this._destinations3Location != null;
}
/// <summary>
/// Gets and sets the property Format.
/// <para>
/// Required. The format to use for the generated report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Format Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
/// <summary>
/// Gets and sets the property ReportDescription.
/// <para>
/// Required. Description of the report.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ReportDescription
{
get { return this._reportDescription; }
set { this._reportDescription = value; }
}
// Check to see if ReportDescription property is set
internal bool IsSetReportDescription()
{
return this._reportDescription != null;
}
/// <summary>
/// Gets and sets the property ReportFrequency.
/// <para>
/// Required. The cadence to generate the report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ReportFrequency ReportFrequency
{
get { return this._reportFrequency; }
set { this._reportFrequency = value; }
}
// Check to see if ReportFrequency property is set
internal bool IsSetReportFrequency()
{
return this._reportFrequency != null;
}
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// Required. ID of the report. You can choose any valid string matching the pattern for
/// the ID.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 141 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// This is the response object from the PutReportDefinition operation.
/// </summary>
public partial class PutReportDefinitionResponse : AmazonWebServiceResponse
{
private string _reportId;
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// ID of the report.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// The configuration of a report in AWS Application Cost Profiler.
/// </summary>
public partial class ReportDefinition
{
private DateTime? _createdAt;
private S3Location _destinations3Location;
private Format _format;
private DateTime? _lastUpdatedAt;
private string _reportDescription;
private ReportFrequency _reportFrequency;
private string _reportId;
/// <summary>
/// Gets and sets the property CreatedAt.
/// <para>
/// Timestamp (milliseconds) when this report definition was created.
/// </para>
/// </summary>
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
/// <summary>
/// Gets and sets the property DestinationS3Location.
/// <para>
/// The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved
/// to.
/// </para>
/// </summary>
public S3Location DestinationS3Location
{
get { return this._destinations3Location; }
set { this._destinations3Location = value; }
}
// Check to see if DestinationS3Location property is set
internal bool IsSetDestinationS3Location()
{
return this._destinations3Location != null;
}
/// <summary>
/// Gets and sets the property Format.
/// <para>
/// The format used for the generated reports.
/// </para>
/// </summary>
public Format Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
/// <summary>
/// Gets and sets the property LastUpdatedAt.
/// <para>
/// Timestamp (milliseconds) when this report definition was last updated.
/// </para>
/// </summary>
public DateTime LastUpdatedAt
{
get { return this._lastUpdatedAt.GetValueOrDefault(); }
set { this._lastUpdatedAt = value; }
}
// Check to see if LastUpdatedAt property is set
internal bool IsSetLastUpdatedAt()
{
return this._lastUpdatedAt.HasValue;
}
/// <summary>
/// Gets and sets the property ReportDescription.
/// <para>
/// Description of the report
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string ReportDescription
{
get { return this._reportDescription; }
set { this._reportDescription = value; }
}
// Check to see if ReportDescription property is set
internal bool IsSetReportDescription()
{
return this._reportDescription != null;
}
/// <summary>
/// Gets and sets the property ReportFrequency.
/// <para>
/// The cadence at which the report is generated.
/// </para>
/// </summary>
public ReportFrequency ReportFrequency
{
get { return this._reportFrequency; }
set { this._reportFrequency = value; }
}
// Check to see if ReportFrequency property is set
internal bool IsSetReportFrequency()
{
return this._reportFrequency != null;
}
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// The ID of the report.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 174 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Represents the Amazon Simple Storage Service (Amazon S3) location where AWS Application
/// Cost Profiler reports are generated and then written to.
/// </summary>
public partial class S3Location
{
private string _bucket;
private string _prefix;
/// <summary>
/// Gets and sets the property Bucket.
/// <para>
/// Name of the S3 bucket.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=3, Max=63)]
public string Bucket
{
get { return this._bucket; }
set { this._bucket = value; }
}
// Check to see if Bucket property is set
internal bool IsSetBucket()
{
return this._bucket != null;
}
/// <summary>
/// Gets and sets the property Prefix.
/// <para>
/// Prefix for the location to write to.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=512)]
public string Prefix
{
get { return this._prefix; }
set { this._prefix = value; }
}
// Check to see if Prefix property is set
internal bool IsSetPrefix()
{
return this._prefix != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Your request exceeds one or more of the service quotas.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServiceQuotaExceededException : AmazonApplicationCostProfilerException
{
/// <summary>
/// Constructs a new ServiceQuotaExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServiceQuotaExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServiceQuotaExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="innerException"></param>
public ServiceQuotaExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </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 ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceQuotaExceededException(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 ServiceQuotaExceededException 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 ServiceQuotaExceededException(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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Represents the Amazon Simple Storage Service (Amazon S3) location where usage data
/// is read from.
/// </summary>
public partial class SourceS3Location
{
private string _bucket;
private string _key;
private S3BucketRegion _region;
/// <summary>
/// Gets and sets the property Bucket.
/// <para>
/// Name of the bucket.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=3, Max=63)]
public string Bucket
{
get { return this._bucket; }
set { this._bucket = value; }
}
// Check to see if Bucket property is set
internal bool IsSetBucket()
{
return this._bucket != null;
}
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// Key of the object.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=512)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Region.
/// <para>
/// Region of the bucket. Only required for Regions that are disabled by default. For
/// more infomration about Regions that are disabled by default, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable">
/// Enabling a Region</a> in the <i>AWS General Reference guide</i>.
/// </para>
/// </summary>
public S3BucketRegion Region
{
get { return this._region; }
set { this._region = value; }
}
// Check to see if Region property is set
internal bool IsSetRegion()
{
return this._region != null;
}
}
} | 100 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ThrottlingException : AmazonApplicationCostProfilerException
{
/// <summary>
/// Constructs a new ThrottlingException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ThrottlingException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ThrottlingException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="innerException"></param>
public ThrottlingException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </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 ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottlingException(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 ThrottlingException 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 ThrottlingException(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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// Container for the parameters to the UpdateReportDefinition operation.
/// Updates existing report in AWS Application Cost Profiler.
/// </summary>
public partial class UpdateReportDefinitionRequest : AmazonApplicationCostProfilerRequest
{
private S3Location _destinations3Location;
private Format _format;
private string _reportDescription;
private ReportFrequency _reportFrequency;
private string _reportId;
/// <summary>
/// Gets and sets the property DestinationS3Location.
/// <para>
/// Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost
/// Profiler uploads the report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public S3Location DestinationS3Location
{
get { return this._destinations3Location; }
set { this._destinations3Location = value; }
}
// Check to see if DestinationS3Location property is set
internal bool IsSetDestinationS3Location()
{
return this._destinations3Location != null;
}
/// <summary>
/// Gets and sets the property Format.
/// <para>
/// Required. The format to use for the generated report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Format Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
/// <summary>
/// Gets and sets the property ReportDescription.
/// <para>
/// Required. Description of the report.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ReportDescription
{
get { return this._reportDescription; }
set { this._reportDescription = value; }
}
// Check to see if ReportDescription property is set
internal bool IsSetReportDescription()
{
return this._reportDescription != null;
}
/// <summary>
/// Gets and sets the property ReportFrequency.
/// <para>
/// Required. The cadence to generate the report.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ReportFrequency ReportFrequency
{
get { return this._reportFrequency; }
set { this._reportFrequency = value; }
}
// Check to see if ReportFrequency property is set
internal bool IsSetReportFrequency()
{
return this._reportFrequency != null;
}
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// Required. ID of the report to update.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 140 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// This is the response object from the UpdateReportDefinition operation.
/// </summary>
public partial class UpdateReportDefinitionResponse : AmazonWebServiceResponse
{
private string _reportId;
/// <summary>
/// Gets and sets the property ReportId.
/// <para>
/// ID of the report.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ReportId
{
get { return this._reportId; }
set { this._reportId = value; }
}
// Check to see if ReportId property is set
internal bool IsSetReportId()
{
return this._reportId != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model
{
/// <summary>
/// The input fails to satisfy the constraints for the API.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ValidationException : AmazonApplicationCostProfilerException
{
/// <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
}
} | 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AccessDeniedException Object
/// </summary>
public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AccessDeniedException 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 AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AccessDeniedExceptionUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteReportDefinition Request Marshaller
/// </summary>
public class DeleteReportDefinitionRequestMarshaller : IMarshaller<IRequest, DeleteReportDefinitionRequest> , 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((DeleteReportDefinitionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteReportDefinitionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationCostProfiler");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-09-10";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetReportId())
throw new AmazonApplicationCostProfilerException("Request object does not have required field ReportId set");
request.AddPathResource("{reportId}", StringUtils.FromString(publicRequest.ReportId));
request.ResourcePath = "/reportDefinition/{reportId}";
return request;
}
private static DeleteReportDefinitionRequestMarshaller _instance = new DeleteReportDefinitionRequestMarshaller();
internal static DeleteReportDefinitionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteReportDefinitionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteReportDefinition operation
/// </summary>
public class DeleteReportDefinitionResponseUnmarshaller : 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)
{
DeleteReportDefinitionResponse response = new DeleteReportDefinitionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("reportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportId = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationCostProfilerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteReportDefinitionResponseUnmarshaller _instance = new DeleteReportDefinitionResponseUnmarshaller();
internal static DeleteReportDefinitionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteReportDefinitionResponseUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetReportDefinition Request Marshaller
/// </summary>
public class GetReportDefinitionRequestMarshaller : IMarshaller<IRequest, GetReportDefinitionRequest> , 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((GetReportDefinitionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetReportDefinitionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationCostProfiler");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-09-10";
request.HttpMethod = "GET";
if (!publicRequest.IsSetReportId())
throw new AmazonApplicationCostProfilerException("Request object does not have required field ReportId set");
request.AddPathResource("{reportId}", StringUtils.FromString(publicRequest.ReportId));
request.ResourcePath = "/reportDefinition/{reportId}";
return request;
}
private static GetReportDefinitionRequestMarshaller _instance = new GetReportDefinitionRequestMarshaller();
internal static GetReportDefinitionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetReportDefinitionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetReportDefinition operation
/// </summary>
public class GetReportDefinitionResponseUnmarshaller : 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)
{
GetReportDefinitionResponse response = new GetReportDefinitionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("createdAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreatedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("destinationS3Location", targetDepth))
{
var unmarshaller = S3LocationUnmarshaller.Instance;
response.DestinationS3Location = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("format", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Format = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("lastUpdated", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.LastUpdated = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reportDescription", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportDescription = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reportFrequency", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportFrequency = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportId = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationCostProfilerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetReportDefinitionResponseUnmarshaller _instance = new GetReportDefinitionResponseUnmarshaller();
internal static GetReportDefinitionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetReportDefinitionResponseUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// ImportApplicationUsage Request Marshaller
/// </summary>
public class ImportApplicationUsageRequestMarshaller : IMarshaller<IRequest, ImportApplicationUsageRequest> , 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((ImportApplicationUsageRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ImportApplicationUsageRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationCostProfiler");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-09-10";
request.HttpMethod = "POST";
request.ResourcePath = "/importApplicationUsage";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetSourceS3Location())
{
context.Writer.WritePropertyName("sourceS3Location");
context.Writer.WriteObjectStart();
var marshaller = SourceS3LocationMarshaller.Instance;
marshaller.Marshall(publicRequest.SourceS3Location, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ImportApplicationUsageRequestMarshaller _instance = new ImportApplicationUsageRequestMarshaller();
internal static ImportApplicationUsageRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ImportApplicationUsageRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 106 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ImportApplicationUsage operation
/// </summary>
public class ImportApplicationUsageResponseUnmarshaller : 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)
{
ImportApplicationUsageResponse response = new ImportApplicationUsageResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("importId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ImportId = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationCostProfilerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ImportApplicationUsageResponseUnmarshaller _instance = new ImportApplicationUsageResponseUnmarshaller();
internal static ImportApplicationUsageResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ImportApplicationUsageResponseUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServerException Object
/// </summary>
public class InternalServerExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServerException 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 InternalServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServerException unmarshalledObject = new InternalServerException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServerExceptionUnmarshaller _instance = new InternalServerExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServerExceptionUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListReportDefinitions Request Marshaller
/// </summary>
public class ListReportDefinitionsRequestMarshaller : IMarshaller<IRequest, ListReportDefinitionsRequest> , 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((ListReportDefinitionsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListReportDefinitionsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationCostProfiler");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-09-10";
request.HttpMethod = "GET";
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken));
request.ResourcePath = "/reportDefinition";
request.UseQueryString = true;
return request;
}
private static ListReportDefinitionsRequestMarshaller _instance = new ListReportDefinitionsRequestMarshaller();
internal static ListReportDefinitionsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListReportDefinitionsRequestMarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListReportDefinitions operation
/// </summary>
public class ListReportDefinitionsResponseUnmarshaller : 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)
{
ListReportDefinitionsResponse response = new ListReportDefinitionsResponse();
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("reportDefinitions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ReportDefinition, ReportDefinitionUnmarshaller>(ReportDefinitionUnmarshaller.Instance);
response.ReportDefinitions = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationCostProfilerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListReportDefinitionsResponseUnmarshaller _instance = new ListReportDefinitionsResponseUnmarshaller();
internal static ListReportDefinitionsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListReportDefinitionsResponseUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// PutReportDefinition Request Marshaller
/// </summary>
public class PutReportDefinitionRequestMarshaller : IMarshaller<IRequest, PutReportDefinitionRequest> , 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((PutReportDefinitionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PutReportDefinitionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationCostProfiler");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-09-10";
request.HttpMethod = "POST";
request.ResourcePath = "/reportDefinition";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetDestinationS3Location())
{
context.Writer.WritePropertyName("destinationS3Location");
context.Writer.WriteObjectStart();
var marshaller = S3LocationMarshaller.Instance;
marshaller.Marshall(publicRequest.DestinationS3Location, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetFormat())
{
context.Writer.WritePropertyName("format");
context.Writer.Write(publicRequest.Format);
}
if(publicRequest.IsSetReportDescription())
{
context.Writer.WritePropertyName("reportDescription");
context.Writer.Write(publicRequest.ReportDescription);
}
if(publicRequest.IsSetReportFrequency())
{
context.Writer.WritePropertyName("reportFrequency");
context.Writer.Write(publicRequest.ReportFrequency);
}
if(publicRequest.IsSetReportId())
{
context.Writer.WritePropertyName("reportId");
context.Writer.Write(publicRequest.ReportId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static PutReportDefinitionRequestMarshaller _instance = new PutReportDefinitionRequestMarshaller();
internal static PutReportDefinitionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutReportDefinitionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PutReportDefinition operation
/// </summary>
public class PutReportDefinitionResponseUnmarshaller : 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)
{
PutReportDefinitionResponse response = new PutReportDefinitionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("reportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportId = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException"))
{
return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationCostProfilerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static PutReportDefinitionResponseUnmarshaller _instance = new PutReportDefinitionResponseUnmarshaller();
internal static PutReportDefinitionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutReportDefinitionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ReportDefinition Object
/// </summary>
public class ReportDefinitionUnmarshaller : IUnmarshaller<ReportDefinition, XmlUnmarshallerContext>, IUnmarshaller<ReportDefinition, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ReportDefinition IUnmarshaller<ReportDefinition, 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 ReportDefinition Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ReportDefinition unmarshalledObject = new ReportDefinition();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("createdAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("destinationS3Location", targetDepth))
{
var unmarshaller = S3LocationUnmarshaller.Instance;
unmarshalledObject.DestinationS3Location = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("format", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Format = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("lastUpdatedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reportDescription", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ReportDescription = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reportFrequency", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ReportFrequency = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ReportId = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ReportDefinitionUnmarshaller _instance = new ReportDefinitionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ReportDefinitionUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// S3Location Marshaller
/// </summary>
public class S3LocationMarshaller : IRequestMarshaller<S3Location, 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(S3Location requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBucket())
{
context.Writer.WritePropertyName("bucket");
context.Writer.Write(requestObject.Bucket);
}
if(requestObject.IsSetPrefix())
{
context.Writer.WritePropertyName("prefix");
context.Writer.Write(requestObject.Prefix);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static S3LocationMarshaller Instance = new S3LocationMarshaller();
}
} | 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for S3Location Object
/// </summary>
public class S3LocationUnmarshaller : IUnmarshaller<S3Location, XmlUnmarshallerContext>, IUnmarshaller<S3Location, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
S3Location IUnmarshaller<S3Location, 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 S3Location Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
S3Location unmarshalledObject = new S3Location();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("bucket", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Bucket = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("prefix", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Prefix = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static S3LocationUnmarshaller _instance = new S3LocationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static S3LocationUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceQuotaExceededException Object
/// </summary>
public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceQuotaExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServiceQuotaExceededException 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 ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceQuotaExceededExceptionUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// SourceS3Location Marshaller
/// </summary>
public class SourceS3LocationMarshaller : IRequestMarshaller<SourceS3Location, 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(SourceS3Location requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBucket())
{
context.Writer.WritePropertyName("bucket");
context.Writer.Write(requestObject.Bucket);
}
if(requestObject.IsSetKey())
{
context.Writer.WritePropertyName("key");
context.Writer.Write(requestObject.Key);
}
if(requestObject.IsSetRegion())
{
context.Writer.WritePropertyName("region");
context.Writer.Write(requestObject.Region);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SourceS3LocationMarshaller Instance = new SourceS3LocationMarshaller();
}
} | 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ThrottlingException Object
/// </summary>
public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ThrottlingException 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 ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThrottlingExceptionUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateReportDefinition Request Marshaller
/// </summary>
public class UpdateReportDefinitionRequestMarshaller : IMarshaller<IRequest, UpdateReportDefinitionRequest> , 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((UpdateReportDefinitionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateReportDefinitionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationCostProfiler");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-09-10";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetReportId())
throw new AmazonApplicationCostProfilerException("Request object does not have required field ReportId set");
request.AddPathResource("{reportId}", StringUtils.FromString(publicRequest.ReportId));
request.ResourcePath = "/reportDefinition/{reportId}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetDestinationS3Location())
{
context.Writer.WritePropertyName("destinationS3Location");
context.Writer.WriteObjectStart();
var marshaller = S3LocationMarshaller.Instance;
marshaller.Marshall(publicRequest.DestinationS3Location, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetFormat())
{
context.Writer.WritePropertyName("format");
context.Writer.Write(publicRequest.Format);
}
if(publicRequest.IsSetReportDescription())
{
context.Writer.WritePropertyName("reportDescription");
context.Writer.Write(publicRequest.ReportDescription);
}
if(publicRequest.IsSetReportFrequency())
{
context.Writer.WritePropertyName("reportFrequency");
context.Writer.Write(publicRequest.ReportFrequency);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateReportDefinitionRequestMarshaller _instance = new UpdateReportDefinitionRequestMarshaller();
internal static UpdateReportDefinitionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateReportDefinitionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 127 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateReportDefinition operation
/// </summary>
public class UpdateReportDefinitionResponseUnmarshaller : 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)
{
UpdateReportDefinitionResponse response = new UpdateReportDefinitionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("reportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportId = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationCostProfilerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateReportDefinitionResponseUnmarshaller _instance = new UpdateReportDefinitionResponseUnmarshaller();
internal static UpdateReportDefinitionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateReportDefinitionResponseUnmarshaller 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 applicationcostprofiler-2020-09-10.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.ApplicationCostProfiler.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ValidationException Object
/// </summary>
public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValidationException 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 ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValidationExceptionUnmarshaller 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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.ApplicationCostProfiler.Model
{
/// <summary>
/// Paginators for the ApplicationCostProfiler service
///</summary>
public class ApplicationCostProfilerPaginatorFactory : IApplicationCostProfilerPaginatorFactory
{
private readonly IAmazonApplicationCostProfiler client;
internal ApplicationCostProfilerPaginatorFactory(IAmazonApplicationCostProfiler client)
{
this.client = client;
}
/// <summary>
/// Paginator for ListReportDefinitions operation
///</summary>
public IListReportDefinitionsPaginator ListReportDefinitions(ListReportDefinitionsRequest request)
{
return new ListReportDefinitionsPaginator(this.client, request);
}
}
} | 46 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.normal.json service model.
*/
namespace Amazon.ApplicationCostProfiler.Model
{
/// <summary>
/// Paginators for the ApplicationCostProfiler service
///</summary>
public interface IApplicationCostProfilerPaginatorFactory
{
/// <summary>
/// Paginator for ListReportDefinitions operation
///</summary>
IListReportDefinitionsPaginator ListReportDefinitions(ListReportDefinitionsRequest request);
}
} | 33 |
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationCostProfiler.Model
{
/// <summary>
/// Paginator for the ListReportDefinitions operation
///</summary>
public interface IListReportDefinitionsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListReportDefinitionsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the ReportDefinitions
/// </summary>
IPaginatedEnumerable<ReportDefinition> ReportDefinitions { get; }
}
} | 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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.ApplicationCostProfiler.Model
{
/// <summary>
/// Base class for ListReportDefinitions paginators.
/// </summary>
internal sealed partial class ListReportDefinitionsPaginator : IPaginator<ListReportDefinitionsResponse>, IListReportDefinitionsPaginator
{
private readonly IAmazonApplicationCostProfiler _client;
private readonly ListReportDefinitionsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListReportDefinitionsResponse> Responses => new PaginatedResponse<ListReportDefinitionsResponse>(this);
/// <summary>
/// Enumerable containing all of the ReportDefinitions
/// </summary>
public IPaginatedEnumerable<ReportDefinition> ReportDefinitions =>
new PaginatedResultKeyResponse<ListReportDefinitionsResponse, ReportDefinition>(this, (i) => i.ReportDefinitions);
internal ListReportDefinitionsPaginator(IAmazonApplicationCostProfiler client, ListReportDefinitionsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListReportDefinitionsResponse> IPaginator<ListReportDefinitionsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListReportDefinitionsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListReportDefinitions(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListReportDefinitionsResponse> IPaginator<ListReportDefinitionsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListReportDefinitionsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListReportDefinitionsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationCostProfiler.Model;
using Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations;
using Amazon.ApplicationCostProfiler.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Implementation for accessing ApplicationCostProfiler
///
/// This reference provides descriptions of the AWS Application Cost Profiler API.
///
///
/// <para>
/// The AWS Application Cost Profiler API provides programmatic access to view, create,
/// update, and delete application cost report definitions, as well as to import your
/// usage data into the Application Cost Profiler service.
/// </para>
///
/// <para>
/// For more information about using this service, see the <a href="https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html">AWS
/// Application Cost Profiler User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonApplicationCostProfilerClient : AmazonServiceClient, IAmazonApplicationCostProfiler
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationCostProfilerMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IApplicationCostProfilerPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationCostProfilerPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationCostProfilerPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationCostProfilerClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationCostProfilerConfig()) { }
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationCostProfilerConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(AmazonApplicationCostProfilerConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationCostProfilerClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationCostProfilerConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationCostProfilerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Credentials and an
/// AmazonApplicationCostProfilerClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(AWSCredentials credentials, AmazonApplicationCostProfilerConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationCostProfilerConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationCostProfilerConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationCostProfilerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationCostProfilerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationCostProfilerConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationCostProfilerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationCostProfilerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationCostProfilerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonApplicationCostProfilerEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteReportDefinition
/// <summary>
/// Deletes the specified report definition in AWS Application Cost Profiler. This stops
/// the report from being generated.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition service method.</param>
///
/// <returns>The response from the DeleteReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
public virtual DeleteReportDefinitionResponse DeleteReportDefinition(DeleteReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteReportDefinitionResponseUnmarshaller.Instance;
return Invoke<DeleteReportDefinitionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
public virtual IAsyncResult BeginDeleteReportDefinition(DeleteReportDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteReportDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteReportDefinition.</param>
///
/// <returns>Returns a DeleteReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
public virtual DeleteReportDefinitionResponse EndDeleteReportDefinition(IAsyncResult asyncResult)
{
return EndInvoke<DeleteReportDefinitionResponse>(asyncResult);
}
#endregion
#region GetReportDefinition
/// <summary>
/// Retrieves the definition of a report already configured in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition service method.</param>
///
/// <returns>The response from the GetReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
public virtual GetReportDefinitionResponse GetReportDefinition(GetReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetReportDefinitionResponseUnmarshaller.Instance;
return Invoke<GetReportDefinitionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
public virtual IAsyncResult BeginGetReportDefinition(GetReportDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetReportDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetReportDefinition.</param>
///
/// <returns>Returns a GetReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
public virtual GetReportDefinitionResponse EndGetReportDefinition(IAsyncResult asyncResult)
{
return EndInvoke<GetReportDefinitionResponse>(asyncResult);
}
#endregion
#region ImportApplicationUsage
/// <summary>
/// Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
///
///
/// <para>
/// The data must already exist in the S3 location. As part of the action, AWS Application
/// Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon
/// for processing asynchronously.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage service method.</param>
///
/// <returns>The response from the ImportApplicationUsage service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
public virtual ImportApplicationUsageResponse ImportApplicationUsage(ImportApplicationUsageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ImportApplicationUsageRequestMarshaller.Instance;
options.ResponseUnmarshaller = ImportApplicationUsageResponseUnmarshaller.Instance;
return Invoke<ImportApplicationUsageResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ImportApplicationUsage operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportApplicationUsage
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
public virtual IAsyncResult BeginImportApplicationUsage(ImportApplicationUsageRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ImportApplicationUsageRequestMarshaller.Instance;
options.ResponseUnmarshaller = ImportApplicationUsageResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ImportApplicationUsage operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportApplicationUsage.</param>
///
/// <returns>Returns a ImportApplicationUsageResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
public virtual ImportApplicationUsageResponse EndImportApplicationUsage(IAsyncResult asyncResult)
{
return EndInvoke<ImportApplicationUsageResponse>(asyncResult);
}
#endregion
#region ListReportDefinitions
/// <summary>
/// Retrieves a list of all reports and their configurations for your AWS account.
///
///
/// <para>
/// The maximum number of reports is one.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions service method.</param>
///
/// <returns>The response from the ListReportDefinitions service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
public virtual ListReportDefinitionsResponse ListReportDefinitions(ListReportDefinitionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReportDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReportDefinitionsResponseUnmarshaller.Instance;
return Invoke<ListReportDefinitionsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListReportDefinitions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListReportDefinitions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
public virtual IAsyncResult BeginListReportDefinitions(ListReportDefinitionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReportDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReportDefinitionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListReportDefinitions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListReportDefinitions.</param>
///
/// <returns>Returns a ListReportDefinitionsResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
public virtual ListReportDefinitionsResponse EndListReportDefinitions(IAsyncResult asyncResult)
{
return EndInvoke<ListReportDefinitionsResponse>(asyncResult);
}
#endregion
#region PutReportDefinition
/// <summary>
/// Creates the report definition for a report in Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition service method.</param>
///
/// <returns>The response from the PutReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ServiceQuotaExceededException">
/// Your request exceeds one or more of the service quotas.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
public virtual PutReportDefinitionResponse PutReportDefinition(PutReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutReportDefinitionResponseUnmarshaller.Instance;
return Invoke<PutReportDefinitionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
public virtual IAsyncResult BeginPutReportDefinition(PutReportDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutReportDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutReportDefinition.</param>
///
/// <returns>Returns a PutReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
public virtual PutReportDefinitionResponse EndPutReportDefinition(IAsyncResult asyncResult)
{
return EndInvoke<PutReportDefinitionResponse>(asyncResult);
}
#endregion
#region UpdateReportDefinition
/// <summary>
/// Updates existing report in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition service method.</param>
///
/// <returns>The response from the UpdateReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
public virtual UpdateReportDefinitionResponse UpdateReportDefinition(UpdateReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReportDefinitionResponseUnmarshaller.Instance;
return Invoke<UpdateReportDefinitionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
public virtual IAsyncResult BeginUpdateReportDefinition(UpdateReportDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReportDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateReportDefinition.</param>
///
/// <returns>Returns a UpdateReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
public virtual UpdateReportDefinitionResponse EndUpdateReportDefinition(IAsyncResult asyncResult)
{
return EndInvoke<UpdateReportDefinitionResponse>(asyncResult);
}
#endregion
}
} | 692 |
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationCostProfiler.Model;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Interface for accessing ApplicationCostProfiler
///
/// This reference provides descriptions of the AWS Application Cost Profiler API.
///
///
/// <para>
/// The AWS Application Cost Profiler API provides programmatic access to view, create,
/// update, and delete application cost report definitions, as well as to import your
/// usage data into the Application Cost Profiler service.
/// </para>
///
/// <para>
/// For more information about using this service, see the <a href="https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html">AWS
/// Application Cost Profiler User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonApplicationCostProfiler : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationCostProfilerPaginatorFactory Paginators { get; }
#endif
#region DeleteReportDefinition
/// <summary>
/// Deletes the specified report definition in AWS Application Cost Profiler. This stops
/// the report from being generated.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition service method.</param>
///
/// <returns>The response from the DeleteReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
DeleteReportDefinitionResponse DeleteReportDefinition(DeleteReportDefinitionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
IAsyncResult BeginDeleteReportDefinition(DeleteReportDefinitionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteReportDefinition.</param>
///
/// <returns>Returns a DeleteReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
DeleteReportDefinitionResponse EndDeleteReportDefinition(IAsyncResult asyncResult);
#endregion
#region GetReportDefinition
/// <summary>
/// Retrieves the definition of a report already configured in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition service method.</param>
///
/// <returns>The response from the GetReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
GetReportDefinitionResponse GetReportDefinition(GetReportDefinitionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
IAsyncResult BeginGetReportDefinition(GetReportDefinitionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetReportDefinition.</param>
///
/// <returns>Returns a GetReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
GetReportDefinitionResponse EndGetReportDefinition(IAsyncResult asyncResult);
#endregion
#region ImportApplicationUsage
/// <summary>
/// Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
///
///
/// <para>
/// The data must already exist in the S3 location. As part of the action, AWS Application
/// Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon
/// for processing asynchronously.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage service method.</param>
///
/// <returns>The response from the ImportApplicationUsage service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
ImportApplicationUsageResponse ImportApplicationUsage(ImportApplicationUsageRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ImportApplicationUsage operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportApplicationUsage
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
IAsyncResult BeginImportApplicationUsage(ImportApplicationUsageRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ImportApplicationUsage operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportApplicationUsage.</param>
///
/// <returns>Returns a ImportApplicationUsageResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
ImportApplicationUsageResponse EndImportApplicationUsage(IAsyncResult asyncResult);
#endregion
#region ListReportDefinitions
/// <summary>
/// Retrieves a list of all reports and their configurations for your AWS account.
///
///
/// <para>
/// The maximum number of reports is one.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions service method.</param>
///
/// <returns>The response from the ListReportDefinitions service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
ListReportDefinitionsResponse ListReportDefinitions(ListReportDefinitionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListReportDefinitions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListReportDefinitions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
IAsyncResult BeginListReportDefinitions(ListReportDefinitionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListReportDefinitions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListReportDefinitions.</param>
///
/// <returns>Returns a ListReportDefinitionsResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
ListReportDefinitionsResponse EndListReportDefinitions(IAsyncResult asyncResult);
#endregion
#region PutReportDefinition
/// <summary>
/// Creates the report definition for a report in Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition service method.</param>
///
/// <returns>The response from the PutReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ServiceQuotaExceededException">
/// Your request exceeds one or more of the service quotas.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
PutReportDefinitionResponse PutReportDefinition(PutReportDefinitionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
IAsyncResult BeginPutReportDefinition(PutReportDefinitionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutReportDefinition.</param>
///
/// <returns>Returns a PutReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
PutReportDefinitionResponse EndPutReportDefinition(IAsyncResult asyncResult);
#endregion
#region UpdateReportDefinition
/// <summary>
/// Updates existing report in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition service method.</param>
///
/// <returns>The response from the UpdateReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
UpdateReportDefinitionResponse UpdateReportDefinition(UpdateReportDefinitionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateReportDefinition operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition operation on AmazonApplicationCostProfilerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateReportDefinition
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
IAsyncResult BeginUpdateReportDefinition(UpdateReportDefinitionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateReportDefinition operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateReportDefinition.</param>
///
/// <returns>Returns a UpdateReportDefinitionResult from ApplicationCostProfiler.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
UpdateReportDefinitionResponse EndUpdateReportDefinition(IAsyncResult asyncResult);
#endregion
}
} | 388 |
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationCostProfiler.Model;
using Amazon.ApplicationCostProfiler.Model.Internal.MarshallTransformations;
using Amazon.ApplicationCostProfiler.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Implementation for accessing ApplicationCostProfiler
///
/// This reference provides descriptions of the AWS Application Cost Profiler API.
///
///
/// <para>
/// The AWS Application Cost Profiler API provides programmatic access to view, create,
/// update, and delete application cost report definitions, as well as to import your
/// usage data into the Application Cost Profiler service.
/// </para>
///
/// <para>
/// For more information about using this service, see the <a href="https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html">AWS
/// Application Cost Profiler User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonApplicationCostProfilerClient : AmazonServiceClient, IAmazonApplicationCostProfiler
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationCostProfilerMetadata();
private IApplicationCostProfilerPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationCostProfilerPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationCostProfilerPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationCostProfilerClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationCostProfilerConfig()) { }
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationCostProfilerConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(AmazonApplicationCostProfilerConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationCostProfilerClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationCostProfilerConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationCostProfilerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Credentials and an
/// AmazonApplicationCostProfilerClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(AWSCredentials credentials, AmazonApplicationCostProfilerConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationCostProfilerConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationCostProfilerConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationCostProfilerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationCostProfilerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationCostProfilerConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationCostProfilerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationCostProfilerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationCostProfilerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonApplicationCostProfilerClient Configuration Object</param>
public AmazonApplicationCostProfilerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationCostProfilerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonApplicationCostProfilerEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteReportDefinition
/// <summary>
/// Deletes the specified report definition in AWS Application Cost Profiler. This stops
/// the report from being generated.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition service method.</param>
///
/// <returns>The response from the DeleteReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
public virtual DeleteReportDefinitionResponse DeleteReportDefinition(DeleteReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteReportDefinitionResponseUnmarshaller.Instance;
return Invoke<DeleteReportDefinitionResponse>(request, options);
}
/// <summary>
/// Deletes the specified report definition in AWS Application Cost Profiler. This stops
/// the report from being generated.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
public virtual Task<DeleteReportDefinitionResponse> DeleteReportDefinitionAsync(DeleteReportDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteReportDefinitionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteReportDefinitionResponse>(request, options, cancellationToken);
}
#endregion
#region GetReportDefinition
/// <summary>
/// Retrieves the definition of a report already configured in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition service method.</param>
///
/// <returns>The response from the GetReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
public virtual GetReportDefinitionResponse GetReportDefinition(GetReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetReportDefinitionResponseUnmarshaller.Instance;
return Invoke<GetReportDefinitionResponse>(request, options);
}
/// <summary>
/// Retrieves the definition of a report already configured in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
public virtual Task<GetReportDefinitionResponse> GetReportDefinitionAsync(GetReportDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetReportDefinitionResponseUnmarshaller.Instance;
return InvokeAsync<GetReportDefinitionResponse>(request, options, cancellationToken);
}
#endregion
#region ImportApplicationUsage
/// <summary>
/// Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
///
///
/// <para>
/// The data must already exist in the S3 location. As part of the action, AWS Application
/// Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon
/// for processing asynchronously.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage service method.</param>
///
/// <returns>The response from the ImportApplicationUsage service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
public virtual ImportApplicationUsageResponse ImportApplicationUsage(ImportApplicationUsageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ImportApplicationUsageRequestMarshaller.Instance;
options.ResponseUnmarshaller = ImportApplicationUsageResponseUnmarshaller.Instance;
return Invoke<ImportApplicationUsageResponse>(request, options);
}
/// <summary>
/// Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
///
///
/// <para>
/// The data must already exist in the S3 location. As part of the action, AWS Application
/// Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon
/// for processing asynchronously.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ImportApplicationUsage service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
public virtual Task<ImportApplicationUsageResponse> ImportApplicationUsageAsync(ImportApplicationUsageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ImportApplicationUsageRequestMarshaller.Instance;
options.ResponseUnmarshaller = ImportApplicationUsageResponseUnmarshaller.Instance;
return InvokeAsync<ImportApplicationUsageResponse>(request, options, cancellationToken);
}
#endregion
#region ListReportDefinitions
/// <summary>
/// Retrieves a list of all reports and their configurations for your AWS account.
///
///
/// <para>
/// The maximum number of reports is one.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions service method.</param>
///
/// <returns>The response from the ListReportDefinitions service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
public virtual ListReportDefinitionsResponse ListReportDefinitions(ListReportDefinitionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReportDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReportDefinitionsResponseUnmarshaller.Instance;
return Invoke<ListReportDefinitionsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of all reports and their configurations for your AWS account.
///
///
/// <para>
/// The maximum number of reports is one.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListReportDefinitions service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
public virtual Task<ListReportDefinitionsResponse> ListReportDefinitionsAsync(ListReportDefinitionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReportDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReportDefinitionsResponseUnmarshaller.Instance;
return InvokeAsync<ListReportDefinitionsResponse>(request, options, cancellationToken);
}
#endregion
#region PutReportDefinition
/// <summary>
/// Creates the report definition for a report in Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition service method.</param>
///
/// <returns>The response from the PutReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ServiceQuotaExceededException">
/// Your request exceeds one or more of the service quotas.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
public virtual PutReportDefinitionResponse PutReportDefinition(PutReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutReportDefinitionResponseUnmarshaller.Instance;
return Invoke<PutReportDefinitionResponse>(request, options);
}
/// <summary>
/// Creates the report definition for a report in Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ServiceQuotaExceededException">
/// Your request exceeds one or more of the service quotas.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
public virtual Task<PutReportDefinitionResponse> PutReportDefinitionAsync(PutReportDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutReportDefinitionResponseUnmarshaller.Instance;
return InvokeAsync<PutReportDefinitionResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateReportDefinition
/// <summary>
/// Updates existing report in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition service method.</param>
///
/// <returns>The response from the UpdateReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
public virtual UpdateReportDefinitionResponse UpdateReportDefinition(UpdateReportDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReportDefinitionResponseUnmarshaller.Instance;
return Invoke<UpdateReportDefinitionResponse>(request, options);
}
/// <summary>
/// Updates existing report in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
public virtual Task<UpdateReportDefinitionResponse> UpdateReportDefinitionAsync(UpdateReportDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReportDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReportDefinitionResponseUnmarshaller.Instance;
return InvokeAsync<UpdateReportDefinitionResponse>(request, options, cancellationToken);
}
#endregion
}
} | 701 |
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 applicationcostprofiler-2020-09-10.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationCostProfiler.Model;
namespace Amazon.ApplicationCostProfiler
{
/// <summary>
/// Interface for accessing ApplicationCostProfiler
///
/// This reference provides descriptions of the AWS Application Cost Profiler API.
///
///
/// <para>
/// The AWS Application Cost Profiler API provides programmatic access to view, create,
/// update, and delete application cost report definitions, as well as to import your
/// usage data into the Application Cost Profiler service.
/// </para>
///
/// <para>
/// For more information about using this service, see the <a href="https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html">AWS
/// Application Cost Profiler User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonApplicationCostProfiler : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationCostProfilerPaginatorFactory Paginators { get; }
#region DeleteReportDefinition
/// <summary>
/// Deletes the specified report definition in AWS Application Cost Profiler. This stops
/// the report from being generated.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition service method.</param>
///
/// <returns>The response from the DeleteReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
DeleteReportDefinitionResponse DeleteReportDefinition(DeleteReportDefinitionRequest request);
/// <summary>
/// Deletes the specified report definition in AWS Application Cost Profiler. This stops
/// the report from being generated.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition">REST API Reference for DeleteReportDefinition Operation</seealso>
Task<DeleteReportDefinitionResponse> DeleteReportDefinitionAsync(DeleteReportDefinitionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetReportDefinition
/// <summary>
/// Retrieves the definition of a report already configured in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition service method.</param>
///
/// <returns>The response from the GetReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
GetReportDefinitionResponse GetReportDefinition(GetReportDefinitionRequest request);
/// <summary>
/// Retrieves the definition of a report already configured in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition">REST API Reference for GetReportDefinition Operation</seealso>
Task<GetReportDefinitionResponse> GetReportDefinitionAsync(GetReportDefinitionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ImportApplicationUsage
/// <summary>
/// Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
///
///
/// <para>
/// The data must already exist in the S3 location. As part of the action, AWS Application
/// Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon
/// for processing asynchronously.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage service method.</param>
///
/// <returns>The response from the ImportApplicationUsage service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
ImportApplicationUsageResponse ImportApplicationUsage(ImportApplicationUsageRequest request);
/// <summary>
/// Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
///
///
/// <para>
/// The data must already exist in the S3 location. As part of the action, AWS Application
/// Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon
/// for processing asynchronously.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ImportApplicationUsage service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ImportApplicationUsage service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage">REST API Reference for ImportApplicationUsage Operation</seealso>
Task<ImportApplicationUsageResponse> ImportApplicationUsageAsync(ImportApplicationUsageRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListReportDefinitions
/// <summary>
/// Retrieves a list of all reports and their configurations for your AWS account.
///
///
/// <para>
/// The maximum number of reports is one.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions service method.</param>
///
/// <returns>The response from the ListReportDefinitions service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
ListReportDefinitionsResponse ListReportDefinitions(ListReportDefinitionsRequest request);
/// <summary>
/// Retrieves a list of all reports and their configurations for your AWS account.
///
///
/// <para>
/// The maximum number of reports is one.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReportDefinitions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListReportDefinitions service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions">REST API Reference for ListReportDefinitions Operation</seealso>
Task<ListReportDefinitionsResponse> ListReportDefinitionsAsync(ListReportDefinitionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutReportDefinition
/// <summary>
/// Creates the report definition for a report in Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition service method.</param>
///
/// <returns>The response from the PutReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ServiceQuotaExceededException">
/// Your request exceeds one or more of the service quotas.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
PutReportDefinitionResponse PutReportDefinition(PutReportDefinitionRequest request);
/// <summary>
/// Creates the report definition for a report in Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ServiceQuotaExceededException">
/// Your request exceeds one or more of the service quotas.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition">REST API Reference for PutReportDefinition Operation</seealso>
Task<PutReportDefinitionResponse> PutReportDefinitionAsync(PutReportDefinitionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateReportDefinition
/// <summary>
/// Updates existing report in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition service method.</param>
///
/// <returns>The response from the UpdateReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
UpdateReportDefinitionResponse UpdateReportDefinition(UpdateReportDefinitionRequest request);
/// <summary>
/// Updates existing report in AWS Application Cost Profiler.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateReportDefinition service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateReportDefinition service method, as returned by ApplicationCostProfiler.</returns>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.AccessDeniedException">
/// You do not have permission to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.InternalServerException">
/// An internal server error occurred. Retry your request.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ThrottlingException">
/// The calls to AWS Application Cost Profiler API are throttled. The request was denied.
/// </exception>
/// <exception cref="Amazon.ApplicationCostProfiler.Model.ValidationException">
/// The input fails to satisfy the constraints for the API.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition">REST API Reference for UpdateReportDefinition Operation</seealso>
Task<UpdateReportDefinitionResponse> UpdateReportDefinitionAsync(UpdateReportDefinitionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.