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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for IamActionDefinition Object /// </summary> public class IamActionDefinitionUnmarshaller : IUnmarshaller<IamActionDefinition, XmlUnmarshallerContext>, IUnmarshaller<IamActionDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> IamActionDefinition IUnmarshaller<IamActionDefinition, 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 IamActionDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; IamActionDefinition unmarshalledObject = new IamActionDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Groups", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Groups = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PolicyArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PolicyArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Roles", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Roles = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Users", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Users = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static IamActionDefinitionUnmarshaller _instance = new IamActionDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static IamActionDefinitionUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InternalErrorException Object /// </summary> public class InternalErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalErrorException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InternalErrorException 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 InternalErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InternalErrorException unmarshalledObject = new InternalErrorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InternalErrorExceptionUnmarshaller _instance = new InternalErrorExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InternalErrorExceptionUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidNextTokenException Object /// </summary> public class InvalidNextTokenExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidNextTokenException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidNextTokenException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidNextTokenException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidNextTokenException unmarshalledObject = new InvalidNextTokenException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidNextTokenExceptionUnmarshaller _instance = new InvalidNextTokenExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidNextTokenExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidParameterException Object /// </summary> public class InvalidParameterExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidParameterException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidParameterException 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 InvalidParameterException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidParameterException unmarshalledObject = new InvalidParameterException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidParameterExceptionUnmarshaller _instance = new InvalidParameterExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidParameterExceptionUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NotFoundException Object /// </summary> public class NotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<NotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NotFoundException 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 NotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); NotFoundException unmarshalledObject = new NotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static NotFoundExceptionUnmarshaller _instance = new NotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NotFoundExceptionUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Notification Marshaller /// </summary> public class NotificationMarshaller : IRequestMarshaller<Notification, 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(Notification requestObject, JsonMarshallerContext context) { if(requestObject.IsSetComparisonOperator()) { context.Writer.WritePropertyName("ComparisonOperator"); context.Writer.Write(requestObject.ComparisonOperator); } if(requestObject.IsSetNotificationState()) { context.Writer.WritePropertyName("NotificationState"); context.Writer.Write(requestObject.NotificationState); } if(requestObject.IsSetNotificationType()) { context.Writer.WritePropertyName("NotificationType"); context.Writer.Write(requestObject.NotificationType); } if(requestObject.IsSetThreshold()) { context.Writer.WritePropertyName("Threshold"); context.Writer.Write(requestObject.Threshold); } if(requestObject.IsSetThresholdType()) { context.Writer.WritePropertyName("ThresholdType"); context.Writer.Write(requestObject.ThresholdType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NotificationMarshaller Instance = new NotificationMarshaller(); } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Notification Object /// </summary> public class NotificationUnmarshaller : IUnmarshaller<Notification, XmlUnmarshallerContext>, IUnmarshaller<Notification, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Notification IUnmarshaller<Notification, 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 Notification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Notification unmarshalledObject = new Notification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ComparisonOperator", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComparisonOperator = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NotificationState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NotificationState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NotificationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NotificationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Threshold", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.Threshold = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ThresholdType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ThresholdType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static NotificationUnmarshaller _instance = new NotificationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NotificationUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// NotificationWithSubscribers Marshaller /// </summary> public class NotificationWithSubscribersMarshaller : IRequestMarshaller<NotificationWithSubscribers, 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(NotificationWithSubscribers requestObject, JsonMarshallerContext context) { if(requestObject.IsSetNotification()) { context.Writer.WritePropertyName("Notification"); context.Writer.WriteObjectStart(); var marshaller = NotificationMarshaller.Instance; marshaller.Marshall(requestObject.Notification, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSubscribers()) { context.Writer.WritePropertyName("Subscribers"); context.Writer.WriteArrayStart(); foreach(var requestObjectSubscribersListValue in requestObject.Subscribers) { context.Writer.WriteObjectStart(); var marshaller = SubscriberMarshaller.Instance; marshaller.Marshall(requestObjectSubscribersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static NotificationWithSubscribersMarshaller Instance = new NotificationWithSubscribersMarshaller(); } }
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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceLockedException Object /// </summary> public class ResourceLockedExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceLockedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceLockedException 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 ResourceLockedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceLockedException unmarshalledObject = new ResourceLockedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceLockedExceptionUnmarshaller _instance = new ResourceLockedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceLockedExceptionUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// ScpActionDefinition Marshaller /// </summary> public class ScpActionDefinitionMarshaller : IRequestMarshaller<ScpActionDefinition, 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(ScpActionDefinition requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPolicyId()) { context.Writer.WritePropertyName("PolicyId"); context.Writer.Write(requestObject.PolicyId); } if(requestObject.IsSetTargetIds()) { context.Writer.WritePropertyName("TargetIds"); context.Writer.WriteArrayStart(); foreach(var requestObjectTargetIdsListValue in requestObject.TargetIds) { context.Writer.Write(requestObjectTargetIdsListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ScpActionDefinitionMarshaller Instance = new ScpActionDefinitionMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScpActionDefinition Object /// </summary> public class ScpActionDefinitionUnmarshaller : IUnmarshaller<ScpActionDefinition, XmlUnmarshallerContext>, IUnmarshaller<ScpActionDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ScpActionDefinition IUnmarshaller<ScpActionDefinition, 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 ScpActionDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ScpActionDefinition unmarshalledObject = new ScpActionDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PolicyId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PolicyId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TargetIds", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.TargetIds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ScpActionDefinitionUnmarshaller _instance = new ScpActionDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScpActionDefinitionUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Spend Marshaller /// </summary> public class SpendMarshaller : IRequestMarshaller<Spend, 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(Spend requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAmount()) { context.Writer.WritePropertyName("Amount"); context.Writer.Write(Amazon.Runtime.Internal.Util.StringUtils.FromDecimal(requestObject.Amount)); } if(requestObject.IsSetUnit()) { context.Writer.WritePropertyName("Unit"); context.Writer.Write(requestObject.Unit); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SpendMarshaller Instance = new SpendMarshaller(); } }
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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Spend Object /// </summary> public class SpendUnmarshaller : IUnmarshaller<Spend, XmlUnmarshallerContext>, IUnmarshaller<Spend, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Spend IUnmarshaller<Spend, 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 Spend Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Spend unmarshalledObject = new Spend(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Amount", targetDepth)) { var unmarshaller = Amazon.Runtime.Internal.Transform.DecimalUnmarshaller.Instance; unmarshalledObject.Amount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Unit", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Unit = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SpendUnmarshaller _instance = new SpendUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SpendUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// SsmActionDefinition Marshaller /// </summary> public class SsmActionDefinitionMarshaller : IRequestMarshaller<SsmActionDefinition, 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(SsmActionDefinition requestObject, JsonMarshallerContext context) { if(requestObject.IsSetActionSubType()) { context.Writer.WritePropertyName("ActionSubType"); context.Writer.Write(requestObject.ActionSubType); } if(requestObject.IsSetInstanceIds()) { context.Writer.WritePropertyName("InstanceIds"); context.Writer.WriteArrayStart(); foreach(var requestObjectInstanceIdsListValue in requestObject.InstanceIds) { context.Writer.Write(requestObjectInstanceIdsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetRegion()) { context.Writer.WritePropertyName("Region"); context.Writer.Write(requestObject.Region); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SsmActionDefinitionMarshaller Instance = new SsmActionDefinitionMarshaller(); } }
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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SsmActionDefinition Object /// </summary> public class SsmActionDefinitionUnmarshaller : IUnmarshaller<SsmActionDefinition, XmlUnmarshallerContext>, IUnmarshaller<SsmActionDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SsmActionDefinition IUnmarshaller<SsmActionDefinition, 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 SsmActionDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SsmActionDefinition unmarshalledObject = new SsmActionDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ActionSubType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ActionSubType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InstanceIds", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.InstanceIds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Region = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SsmActionDefinitionUnmarshaller _instance = new SsmActionDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SsmActionDefinitionUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Subscriber Marshaller /// </summary> public class SubscriberMarshaller : IRequestMarshaller<Subscriber, 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(Subscriber requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAddress()) { context.Writer.WritePropertyName("Address"); context.Writer.Write(requestObject.Address); } if(requestObject.IsSetSubscriptionType()) { context.Writer.WritePropertyName("SubscriptionType"); context.Writer.Write(requestObject.SubscriptionType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SubscriberMarshaller Instance = new SubscriberMarshaller(); } }
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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Subscriber Object /// </summary> public class SubscriberUnmarshaller : IUnmarshaller<Subscriber, XmlUnmarshallerContext>, IUnmarshaller<Subscriber, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Subscriber IUnmarshaller<Subscriber, 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 Subscriber Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Subscriber unmarshalledObject = new Subscriber(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Address", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Address = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SubscriptionType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SubscriptionType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SubscriberUnmarshaller _instance = new SubscriberUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SubscriberUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// TimePeriod Marshaller /// </summary> public class TimePeriodMarshaller : IRequestMarshaller<TimePeriod, 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(TimePeriod requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEnd()) { context.Writer.WritePropertyName("End"); context.Writer.Write(requestObject.End); } if(requestObject.IsSetStart()) { context.Writer.WritePropertyName("Start"); context.Writer.Write(requestObject.Start); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TimePeriodMarshaller Instance = new TimePeriodMarshaller(); } }
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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TimePeriod Object /// </summary> public class TimePeriodUnmarshaller : IUnmarshaller<TimePeriod, XmlUnmarshallerContext>, IUnmarshaller<TimePeriod, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TimePeriod IUnmarshaller<TimePeriod, 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 TimePeriod Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TimePeriod unmarshalledObject = new TimePeriod(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("End", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.End = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Start", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.Start = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TimePeriodUnmarshaller _instance = new TimePeriodUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TimePeriodUnmarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// UpdateBudgetAction Request Marshaller /// </summary> public class UpdateBudgetActionRequestMarshaller : IMarshaller<IRequest, UpdateBudgetActionRequest> , 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((UpdateBudgetActionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateBudgetActionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Budgets"); string target = "AWSBudgetServiceGateway.UpdateBudgetAction"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-10-20"; 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.IsSetAccountId()) { context.Writer.WritePropertyName("AccountId"); context.Writer.Write(publicRequest.AccountId); } if(publicRequest.IsSetActionId()) { context.Writer.WritePropertyName("ActionId"); context.Writer.Write(publicRequest.ActionId); } if(publicRequest.IsSetActionThreshold()) { context.Writer.WritePropertyName("ActionThreshold"); context.Writer.WriteObjectStart(); var marshaller = ActionThresholdMarshaller.Instance; marshaller.Marshall(publicRequest.ActionThreshold, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetApprovalModel()) { context.Writer.WritePropertyName("ApprovalModel"); context.Writer.Write(publicRequest.ApprovalModel); } if(publicRequest.IsSetBudgetName()) { context.Writer.WritePropertyName("BudgetName"); context.Writer.Write(publicRequest.BudgetName); } if(publicRequest.IsSetDefinition()) { context.Writer.WritePropertyName("Definition"); context.Writer.WriteObjectStart(); var marshaller = DefinitionMarshaller.Instance; marshaller.Marshall(publicRequest.Definition, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetExecutionRoleArn()) { context.Writer.WritePropertyName("ExecutionRoleArn"); context.Writer.Write(publicRequest.ExecutionRoleArn); } if(publicRequest.IsSetNotificationType()) { context.Writer.WritePropertyName("NotificationType"); context.Writer.Write(publicRequest.NotificationType); } if(publicRequest.IsSetSubscribers()) { context.Writer.WritePropertyName("Subscribers"); context.Writer.WriteArrayStart(); foreach(var publicRequestSubscribersListValue in publicRequest.Subscribers) { context.Writer.WriteObjectStart(); var marshaller = SubscriberMarshaller.Instance; marshaller.Marshall(publicRequestSubscribersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateBudgetActionRequestMarshaller _instance = new UpdateBudgetActionRequestMarshaller(); internal static UpdateBudgetActionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateBudgetActionRequestMarshaller Instance { get { return _instance; } } } }
171
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateBudgetAction operation /// </summary> public class UpdateBudgetActionResponseUnmarshaller : 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) { UpdateBudgetActionResponse response = new UpdateBudgetActionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BudgetName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BudgetName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NewAction", targetDepth)) { var unmarshaller = ActionUnmarshaller.Instance; response.NewAction = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OldAction", targetDepth)) { var unmarshaller = ActionUnmarshaller.Instance; response.OldAction = 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("InternalErrorException")) { return InternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceLockedException")) { return ResourceLockedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBudgetsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateBudgetActionResponseUnmarshaller _instance = new UpdateBudgetActionResponseUnmarshaller(); internal static UpdateBudgetActionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateBudgetActionResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// UpdateBudget Request Marshaller /// </summary> public class UpdateBudgetRequestMarshaller : IMarshaller<IRequest, UpdateBudgetRequest> , 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((UpdateBudgetRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateBudgetRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Budgets"); string target = "AWSBudgetServiceGateway.UpdateBudget"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-10-20"; 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.IsSetAccountId()) { context.Writer.WritePropertyName("AccountId"); context.Writer.Write(publicRequest.AccountId); } if(publicRequest.IsSetNewBudget()) { context.Writer.WritePropertyName("NewBudget"); context.Writer.WriteObjectStart(); var marshaller = BudgetMarshaller.Instance; marshaller.Marshall(publicRequest.NewBudget, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateBudgetRequestMarshaller _instance = new UpdateBudgetRequestMarshaller(); internal static UpdateBudgetRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateBudgetRequestMarshaller 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 budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateBudget operation /// </summary> public class UpdateBudgetResponseUnmarshaller : 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) { UpdateBudgetResponse response = new UpdateBudgetResponse(); 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("InternalErrorException")) { return InternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBudgetsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateBudgetResponseUnmarshaller _instance = new UpdateBudgetResponseUnmarshaller(); internal static UpdateBudgetResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateBudgetResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// UpdateNotification Request Marshaller /// </summary> public class UpdateNotificationRequestMarshaller : IMarshaller<IRequest, UpdateNotificationRequest> , 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((UpdateNotificationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateNotificationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Budgets"); string target = "AWSBudgetServiceGateway.UpdateNotification"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-10-20"; 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.IsSetAccountId()) { context.Writer.WritePropertyName("AccountId"); context.Writer.Write(publicRequest.AccountId); } if(publicRequest.IsSetBudgetName()) { context.Writer.WritePropertyName("BudgetName"); context.Writer.Write(publicRequest.BudgetName); } if(publicRequest.IsSetNewNotification()) { context.Writer.WritePropertyName("NewNotification"); context.Writer.WriteObjectStart(); var marshaller = NotificationMarshaller.Instance; marshaller.Marshall(publicRequest.NewNotification, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetOldNotification()) { context.Writer.WritePropertyName("OldNotification"); context.Writer.WriteObjectStart(); var marshaller = NotificationMarshaller.Instance; marshaller.Marshall(publicRequest.OldNotification, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateNotificationRequestMarshaller _instance = new UpdateNotificationRequestMarshaller(); internal static UpdateNotificationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNotificationRequestMarshaller Instance { get { return _instance; } } } }
131
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateNotification operation /// </summary> public class UpdateNotificationResponseUnmarshaller : 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) { UpdateNotificationResponse response = new UpdateNotificationResponse(); 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("DuplicateRecordException")) { return DuplicateRecordExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalErrorException")) { return InternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBudgetsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateNotificationResponseUnmarshaller _instance = new UpdateNotificationResponseUnmarshaller(); internal static UpdateNotificationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNotificationResponseUnmarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// UpdateSubscriber Request Marshaller /// </summary> public class UpdateSubscriberRequestMarshaller : IMarshaller<IRequest, UpdateSubscriberRequest> , 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((UpdateSubscriberRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateSubscriberRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Budgets"); string target = "AWSBudgetServiceGateway.UpdateSubscriber"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-10-20"; 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.IsSetAccountId()) { context.Writer.WritePropertyName("AccountId"); context.Writer.Write(publicRequest.AccountId); } if(publicRequest.IsSetBudgetName()) { context.Writer.WritePropertyName("BudgetName"); context.Writer.Write(publicRequest.BudgetName); } if(publicRequest.IsSetNewSubscriber()) { context.Writer.WritePropertyName("NewSubscriber"); context.Writer.WriteObjectStart(); var marshaller = SubscriberMarshaller.Instance; marshaller.Marshall(publicRequest.NewSubscriber, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetNotification()) { context.Writer.WritePropertyName("Notification"); context.Writer.WriteObjectStart(); var marshaller = NotificationMarshaller.Instance; marshaller.Marshall(publicRequest.Notification, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetOldSubscriber()) { context.Writer.WritePropertyName("OldSubscriber"); context.Writer.WriteObjectStart(); var marshaller = SubscriberMarshaller.Instance; marshaller.Marshall(publicRequest.OldSubscriber, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateSubscriberRequestMarshaller _instance = new UpdateSubscriberRequestMarshaller(); internal static UpdateSubscriberRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSubscriberRequestMarshaller Instance { get { return _instance; } } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Budgets.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateSubscriber operation /// </summary> public class UpdateSubscriberResponseUnmarshaller : 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) { UpdateSubscriberResponse response = new UpdateSubscriberResponse(); 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("DuplicateRecordException")) { return DuplicateRecordExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalErrorException")) { return InternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBudgetsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateSubscriberResponseUnmarshaller _instance = new UpdateSubscriberResponseUnmarshaller(); internal static UpdateSubscriberResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSubscriberResponseUnmarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.Budgets.Model { /// <summary> /// Paginators for the Budgets service ///</summary> public class BudgetsPaginatorFactory : IBudgetsPaginatorFactory { private readonly IAmazonBudgets client; internal BudgetsPaginatorFactory(IAmazonBudgets client) { this.client = client; } /// <summary> /// Paginator for DescribeBudgetActionHistories operation ///</summary> public IDescribeBudgetActionHistoriesPaginator DescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request) { return new DescribeBudgetActionHistoriesPaginator(this.client, request); } /// <summary> /// Paginator for DescribeBudgetActionsForAccount operation ///</summary> public IDescribeBudgetActionsForAccountPaginator DescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request) { return new DescribeBudgetActionsForAccountPaginator(this.client, request); } /// <summary> /// Paginator for DescribeBudgetActionsForBudget operation ///</summary> public IDescribeBudgetActionsForBudgetPaginator DescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request) { return new DescribeBudgetActionsForBudgetPaginator(this.client, request); } /// <summary> /// Paginator for DescribeBudgetNotificationsForAccount operation ///</summary> public IDescribeBudgetNotificationsForAccountPaginator DescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request) { return new DescribeBudgetNotificationsForAccountPaginator(this.client, request); } /// <summary> /// Paginator for DescribeBudgetPerformanceHistory operation ///</summary> public IDescribeBudgetPerformanceHistoryPaginator DescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request) { return new DescribeBudgetPerformanceHistoryPaginator(this.client, request); } /// <summary> /// Paginator for DescribeBudgets operation ///</summary> public IDescribeBudgetsPaginator DescribeBudgets(DescribeBudgetsRequest request) { return new DescribeBudgetsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeNotificationsForBudget operation ///</summary> public IDescribeNotificationsForBudgetPaginator DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request) { return new DescribeNotificationsForBudgetPaginator(this.client, request); } /// <summary> /// Paginator for DescribeSubscribersForNotification operation ///</summary> public IDescribeSubscribersForNotificationPaginator DescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request) { return new DescribeSubscribersForNotificationPaginator(this.client, request); } } }
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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeBudgetActionHistories paginators. /// </summary> internal sealed partial class DescribeBudgetActionHistoriesPaginator : IPaginator<DescribeBudgetActionHistoriesResponse>, IDescribeBudgetActionHistoriesPaginator { private readonly IAmazonBudgets _client; private readonly DescribeBudgetActionHistoriesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeBudgetActionHistoriesResponse> Responses => new PaginatedResponse<DescribeBudgetActionHistoriesResponse>(this); /// <summary> /// Enumerable containing all of the ActionHistories /// </summary> public IPaginatedEnumerable<ActionHistory> ActionHistories => new PaginatedResultKeyResponse<DescribeBudgetActionHistoriesResponse, ActionHistory>(this, (i) => i.ActionHistories); internal DescribeBudgetActionHistoriesPaginator(IAmazonBudgets client, DescribeBudgetActionHistoriesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeBudgetActionHistoriesResponse> IPaginator<DescribeBudgetActionHistoriesResponse>.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; DescribeBudgetActionHistoriesResponse response; do { _request.NextToken = nextToken; response = _client.DescribeBudgetActionHistories(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeBudgetActionHistoriesResponse> IPaginator<DescribeBudgetActionHistoriesResponse>.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; DescribeBudgetActionHistoriesResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeBudgetActionHistoriesAsync(_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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeBudgetActionsForAccount paginators. /// </summary> internal sealed partial class DescribeBudgetActionsForAccountPaginator : IPaginator<DescribeBudgetActionsForAccountResponse>, IDescribeBudgetActionsForAccountPaginator { private readonly IAmazonBudgets _client; private readonly DescribeBudgetActionsForAccountRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeBudgetActionsForAccountResponse> Responses => new PaginatedResponse<DescribeBudgetActionsForAccountResponse>(this); /// <summary> /// Enumerable containing all of the Actions /// </summary> public IPaginatedEnumerable<Action> Actions => new PaginatedResultKeyResponse<DescribeBudgetActionsForAccountResponse, Action>(this, (i) => i.Actions); internal DescribeBudgetActionsForAccountPaginator(IAmazonBudgets client, DescribeBudgetActionsForAccountRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeBudgetActionsForAccountResponse> IPaginator<DescribeBudgetActionsForAccountResponse>.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; DescribeBudgetActionsForAccountResponse response; do { _request.NextToken = nextToken; response = _client.DescribeBudgetActionsForAccount(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeBudgetActionsForAccountResponse> IPaginator<DescribeBudgetActionsForAccountResponse>.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; DescribeBudgetActionsForAccountResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeBudgetActionsForAccountAsync(_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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeBudgetActionsForBudget paginators. /// </summary> internal sealed partial class DescribeBudgetActionsForBudgetPaginator : IPaginator<DescribeBudgetActionsForBudgetResponse>, IDescribeBudgetActionsForBudgetPaginator { private readonly IAmazonBudgets _client; private readonly DescribeBudgetActionsForBudgetRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeBudgetActionsForBudgetResponse> Responses => new PaginatedResponse<DescribeBudgetActionsForBudgetResponse>(this); /// <summary> /// Enumerable containing all of the Actions /// </summary> public IPaginatedEnumerable<Action> Actions => new PaginatedResultKeyResponse<DescribeBudgetActionsForBudgetResponse, Action>(this, (i) => i.Actions); internal DescribeBudgetActionsForBudgetPaginator(IAmazonBudgets client, DescribeBudgetActionsForBudgetRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeBudgetActionsForBudgetResponse> IPaginator<DescribeBudgetActionsForBudgetResponse>.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; DescribeBudgetActionsForBudgetResponse response; do { _request.NextToken = nextToken; response = _client.DescribeBudgetActionsForBudget(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeBudgetActionsForBudgetResponse> IPaginator<DescribeBudgetActionsForBudgetResponse>.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; DescribeBudgetActionsForBudgetResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeBudgetActionsForBudgetAsync(_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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeBudgetNotificationsForAccount paginators. /// </summary> internal sealed partial class DescribeBudgetNotificationsForAccountPaginator : IPaginator<DescribeBudgetNotificationsForAccountResponse>, IDescribeBudgetNotificationsForAccountPaginator { private readonly IAmazonBudgets _client; private readonly DescribeBudgetNotificationsForAccountRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeBudgetNotificationsForAccountResponse> Responses => new PaginatedResponse<DescribeBudgetNotificationsForAccountResponse>(this); /// <summary> /// Enumerable containing all of the BudgetNotificationsForAccount /// </summary> public IPaginatedEnumerable<BudgetNotificationsForAccount> BudgetNotificationsForAccount => new PaginatedResultKeyResponse<DescribeBudgetNotificationsForAccountResponse, BudgetNotificationsForAccount>(this, (i) => i.BudgetNotificationsForAccount); internal DescribeBudgetNotificationsForAccountPaginator(IAmazonBudgets client, DescribeBudgetNotificationsForAccountRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeBudgetNotificationsForAccountResponse> IPaginator<DescribeBudgetNotificationsForAccountResponse>.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; DescribeBudgetNotificationsForAccountResponse response; do { _request.NextToken = nextToken; response = _client.DescribeBudgetNotificationsForAccount(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeBudgetNotificationsForAccountResponse> IPaginator<DescribeBudgetNotificationsForAccountResponse>.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; DescribeBudgetNotificationsForAccountResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeBudgetNotificationsForAccountAsync(_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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeBudgetPerformanceHistory paginators. /// </summary> internal sealed partial class DescribeBudgetPerformanceHistoryPaginator : IPaginator<DescribeBudgetPerformanceHistoryResponse>, IDescribeBudgetPerformanceHistoryPaginator { private readonly IAmazonBudgets _client; private readonly DescribeBudgetPerformanceHistoryRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeBudgetPerformanceHistoryResponse> Responses => new PaginatedResponse<DescribeBudgetPerformanceHistoryResponse>(this); internal DescribeBudgetPerformanceHistoryPaginator(IAmazonBudgets client, DescribeBudgetPerformanceHistoryRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeBudgetPerformanceHistoryResponse> IPaginator<DescribeBudgetPerformanceHistoryResponse>.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; DescribeBudgetPerformanceHistoryResponse response; do { _request.NextToken = nextToken; response = _client.DescribeBudgetPerformanceHistory(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeBudgetPerformanceHistoryResponse> IPaginator<DescribeBudgetPerformanceHistoryResponse>.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; DescribeBudgetPerformanceHistoryResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeBudgetPerformanceHistoryAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeBudgets paginators. /// </summary> internal sealed partial class DescribeBudgetsPaginator : IPaginator<DescribeBudgetsResponse>, IDescribeBudgetsPaginator { private readonly IAmazonBudgets _client; private readonly DescribeBudgetsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeBudgetsResponse> Responses => new PaginatedResponse<DescribeBudgetsResponse>(this); /// <summary> /// Enumerable containing all of the Budgets /// </summary> public IPaginatedEnumerable<Budget> Budgets => new PaginatedResultKeyResponse<DescribeBudgetsResponse, Budget>(this, (i) => i.Budgets); internal DescribeBudgetsPaginator(IAmazonBudgets client, DescribeBudgetsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeBudgetsResponse> IPaginator<DescribeBudgetsResponse>.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; DescribeBudgetsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeBudgets(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeBudgetsResponse> IPaginator<DescribeBudgetsResponse>.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; DescribeBudgetsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeBudgetsAsync(_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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeNotificationsForBudget paginators. /// </summary> internal sealed partial class DescribeNotificationsForBudgetPaginator : IPaginator<DescribeNotificationsForBudgetResponse>, IDescribeNotificationsForBudgetPaginator { private readonly IAmazonBudgets _client; private readonly DescribeNotificationsForBudgetRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeNotificationsForBudgetResponse> Responses => new PaginatedResponse<DescribeNotificationsForBudgetResponse>(this); /// <summary> /// Enumerable containing all of the Notifications /// </summary> public IPaginatedEnumerable<Notification> Notifications => new PaginatedResultKeyResponse<DescribeNotificationsForBudgetResponse, Notification>(this, (i) => i.Notifications); internal DescribeNotificationsForBudgetPaginator(IAmazonBudgets client, DescribeNotificationsForBudgetRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeNotificationsForBudgetResponse> IPaginator<DescribeNotificationsForBudgetResponse>.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; DescribeNotificationsForBudgetResponse response; do { _request.NextToken = nextToken; response = _client.DescribeNotificationsForBudget(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeNotificationsForBudgetResponse> IPaginator<DescribeNotificationsForBudgetResponse>.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; DescribeNotificationsForBudgetResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeNotificationsForBudgetAsync(_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 budgets-2016-10-20.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.Budgets.Model { /// <summary> /// Base class for DescribeSubscribersForNotification paginators. /// </summary> internal sealed partial class DescribeSubscribersForNotificationPaginator : IPaginator<DescribeSubscribersForNotificationResponse>, IDescribeSubscribersForNotificationPaginator { private readonly IAmazonBudgets _client; private readonly DescribeSubscribersForNotificationRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeSubscribersForNotificationResponse> Responses => new PaginatedResponse<DescribeSubscribersForNotificationResponse>(this); /// <summary> /// Enumerable containing all of the Subscribers /// </summary> public IPaginatedEnumerable<Subscriber> Subscribers => new PaginatedResultKeyResponse<DescribeSubscribersForNotificationResponse, Subscriber>(this, (i) => i.Subscribers); internal DescribeSubscribersForNotificationPaginator(IAmazonBudgets client, DescribeSubscribersForNotificationRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeSubscribersForNotificationResponse> IPaginator<DescribeSubscribersForNotificationResponse>.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; DescribeSubscribersForNotificationResponse response; do { _request.NextToken = nextToken; response = _client.DescribeSubscribersForNotification(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeSubscribersForNotificationResponse> IPaginator<DescribeSubscribersForNotificationResponse>.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; DescribeSubscribersForNotificationResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeSubscribersForNotificationAsync(_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 budgets-2016-10-20.normal.json service model. */ namespace Amazon.Budgets.Model { /// <summary> /// Paginators for the Budgets service ///</summary> public interface IBudgetsPaginatorFactory { /// <summary> /// Paginator for DescribeBudgetActionHistories operation ///</summary> IDescribeBudgetActionHistoriesPaginator DescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request); /// <summary> /// Paginator for DescribeBudgetActionsForAccount operation ///</summary> IDescribeBudgetActionsForAccountPaginator DescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request); /// <summary> /// Paginator for DescribeBudgetActionsForBudget operation ///</summary> IDescribeBudgetActionsForBudgetPaginator DescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request); /// <summary> /// Paginator for DescribeBudgetNotificationsForAccount operation ///</summary> IDescribeBudgetNotificationsForAccountPaginator DescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request); /// <summary> /// Paginator for DescribeBudgetPerformanceHistory operation ///</summary> IDescribeBudgetPerformanceHistoryPaginator DescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request); /// <summary> /// Paginator for DescribeBudgets operation ///</summary> IDescribeBudgetsPaginator DescribeBudgets(DescribeBudgetsRequest request); /// <summary> /// Paginator for DescribeNotificationsForBudget operation ///</summary> IDescribeNotificationsForBudgetPaginator DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request); /// <summary> /// Paginator for DescribeSubscribersForNotification operation ///</summary> IDescribeSubscribersForNotificationPaginator DescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request); } }
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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeBudgetActionHistories operation ///</summary> public interface IDescribeBudgetActionHistoriesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeBudgetActionHistoriesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the ActionHistories /// </summary> IPaginatedEnumerable<ActionHistory> ActionHistories { 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeBudgetActionsForAccount operation ///</summary> public interface IDescribeBudgetActionsForAccountPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeBudgetActionsForAccountResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Actions /// </summary> IPaginatedEnumerable<Action> Actions { 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeBudgetActionsForBudget operation ///</summary> public interface IDescribeBudgetActionsForBudgetPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeBudgetActionsForBudgetResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Actions /// </summary> IPaginatedEnumerable<Action> Actions { 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeBudgetNotificationsForAccount operation ///</summary> public interface IDescribeBudgetNotificationsForAccountPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeBudgetNotificationsForAccountResponse> Responses { get; } /// <summary> /// Enumerable containing all of the BudgetNotificationsForAccount /// </summary> IPaginatedEnumerable<BudgetNotificationsForAccount> BudgetNotificationsForAccount { 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeBudgetPerformanceHistory operation ///</summary> public interface IDescribeBudgetPerformanceHistoryPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeBudgetPerformanceHistoryResponse> Responses { get; } } }
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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeBudgets operation ///</summary> public interface IDescribeBudgetsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeBudgetsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Budgets /// </summary> IPaginatedEnumerable<Budget> Budgets { 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeNotificationsForBudget operation ///</summary> public interface IDescribeNotificationsForBudgetPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeNotificationsForBudgetResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Notifications /// </summary> IPaginatedEnumerable<Notification> Notifications { 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets.Model { /// <summary> /// Paginator for the DescribeSubscribersForNotification operation ///</summary> public interface IDescribeSubscribersForNotificationPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeSubscribersForNotificationResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Subscribers /// </summary> IPaginatedEnumerable<Subscriber> Subscribers { 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Budgets.Model; using Amazon.Budgets.Model.Internal.MarshallTransformations; using Amazon.Budgets.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Budgets { /// <summary> /// Implementation for accessing Budgets /// /// Use the Amazon Web Services Budgets API to plan your service usage, service costs, /// and instance reservations. This API reference provides descriptions, syntax, and usage /// examples for each of the actions and data types for the Amazon Web Services Budgets /// feature. /// /// /// <para> /// Budgets provide you with a way to see the following information: /// </para> /// <ul> <li> /// <para> /// How close your plan is to your budgeted amount or to the free tier limits /// </para> /// </li> <li> /// <para> /// Your usage-to-date, including how much you've used of your Reserved Instances (RIs) /// </para> /// </li> <li> /// <para> /// Your current estimated charges from Amazon Web Services, and how much your predicted /// usage will accrue in charges by the end of the month /// </para> /// </li> <li> /// <para> /// How much of your budget has been used /// </para> /// </li> </ul> /// <para> /// Amazon Web Services updates your budget status several times a day. Budgets track /// your unblended costs, subscriptions, refunds, and RIs. You can create the following /// types of budgets: /// </para> /// <ul> <li> /// <para> /// <b>Cost budgets</b> - Plan how much you want to spend on a service. /// </para> /// </li> <li> /// <para> /// <b>Usage budgets</b> - Plan how much you want to use one or more services. /// </para> /// </li> <li> /// <para> /// <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts /// when your RI usage falls below that threshold. This lets you see if your RIs are unused /// or under-utilized. /// </para> /// </li> <li> /// <para> /// <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when /// the number of your instance hours that are covered by RIs fall below that threshold. /// This lets you see how much of your instance usage is covered by a reservation. /// </para> /// </li> </ul> /// <para> /// Service Endpoint /// </para> /// /// <para> /// The Amazon Web Services Budgets API provides the following endpoint: /// </para> /// <ul> <li> /// <para> /// https://budgets.amazonaws.com /// </para> /// </li> </ul> /// <para> /// For information about costs that are associated with the Amazon Web Services Budgets /// API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web /// Services Cost Management Pricing</a>. /// </para> /// </summary> public partial class AmazonBudgetsClient : AmazonServiceClient, IAmazonBudgets { private static IServiceMetadata serviceMetadata = new AmazonBudgetsMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IBudgetsPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBudgetsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BudgetsPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBudgetsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBudgetsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(AmazonBudgetsConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBudgetsClient(AWSCredentials credentials) : this(credentials, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBudgetsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials and an /// AmazonBudgetsClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(AWSCredentials credentials, AmazonBudgetsConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBudgetsConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBudgetsClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBudgetsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBudgetsClient 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 AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBudgetsConfig 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 AmazonBudgetsEndpointResolver()); } /// <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 CreateBudget /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget service method.</param> /// /// <returns>The response from the CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> public virtual CreateBudgetResponse CreateBudget(CreateBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetResponseUnmarshaller.Instance; return Invoke<CreateBudgetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateBudget operation on AmazonBudgetsClient.</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 EndCreateBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> public virtual IAsyncResult BeginCreateBudget(CreateBudgetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateBudget.</param> /// /// <returns>Returns a CreateBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> public virtual CreateBudgetResponse EndCreateBudget(IAsyncResult asyncResult) { return EndInvoke<CreateBudgetResponse>(asyncResult); } #endregion #region CreateBudgetAction /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction service method.</param> /// /// <returns>The response from the CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> public virtual CreateBudgetActionResponse CreateBudgetAction(CreateBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetActionResponseUnmarshaller.Instance; return Invoke<CreateBudgetActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction operation on AmazonBudgetsClient.</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 EndCreateBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> public virtual IAsyncResult BeginCreateBudgetAction(CreateBudgetActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateBudgetAction.</param> /// /// <returns>Returns a CreateBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> public virtual CreateBudgetActionResponse EndCreateBudgetAction(IAsyncResult asyncResult) { return EndInvoke<CreateBudgetActionResponse>(asyncResult); } #endregion #region CreateNotification /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification service method.</param> /// /// <returns>The response from the CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> public virtual CreateNotificationResponse CreateNotification(CreateNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationResponseUnmarshaller.Instance; return Invoke<CreateNotificationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateNotification operation on AmazonBudgetsClient.</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 EndCreateNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> public virtual IAsyncResult BeginCreateNotification(CreateNotificationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateNotification.</param> /// /// <returns>Returns a CreateNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> public virtual CreateNotificationResponse EndCreateNotification(IAsyncResult asyncResult) { return EndInvoke<CreateNotificationResponse>(asyncResult); } #endregion #region CreateSubscriber /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber service method.</param> /// /// <returns>The response from the CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> public virtual CreateSubscriberResponse CreateSubscriber(CreateSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubscriberResponseUnmarshaller.Instance; return Invoke<CreateSubscriberResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateSubscriber operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber operation on AmazonBudgetsClient.</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 EndCreateSubscriber /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> public virtual IAsyncResult BeginCreateSubscriber(CreateSubscriberRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubscriberResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateSubscriber operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateSubscriber.</param> /// /// <returns>Returns a CreateSubscriberResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> public virtual CreateSubscriberResponse EndCreateSubscriber(IAsyncResult asyncResult) { return EndInvoke<CreateSubscriberResponse>(asyncResult); } #endregion #region DeleteBudget /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget service method.</param> /// /// <returns>The response from the DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> public virtual DeleteBudgetResponse DeleteBudget(DeleteBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetResponseUnmarshaller.Instance; return Invoke<DeleteBudgetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteBudget operation on AmazonBudgetsClient.</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 EndDeleteBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> public virtual IAsyncResult BeginDeleteBudget(DeleteBudgetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteBudget.</param> /// /// <returns>Returns a DeleteBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> public virtual DeleteBudgetResponse EndDeleteBudget(IAsyncResult asyncResult) { return EndInvoke<DeleteBudgetResponse>(asyncResult); } #endregion #region DeleteBudgetAction /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction service method.</param> /// /// <returns>The response from the DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> public virtual DeleteBudgetActionResponse DeleteBudgetAction(DeleteBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetActionResponseUnmarshaller.Instance; return Invoke<DeleteBudgetActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction operation on AmazonBudgetsClient.</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 EndDeleteBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> public virtual IAsyncResult BeginDeleteBudgetAction(DeleteBudgetActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteBudgetAction.</param> /// /// <returns>Returns a DeleteBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> public virtual DeleteBudgetActionResponse EndDeleteBudgetAction(IAsyncResult asyncResult) { return EndInvoke<DeleteBudgetActionResponse>(asyncResult); } #endregion #region DeleteNotification /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification service method.</param> /// /// <returns>The response from the DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> public virtual DeleteNotificationResponse DeleteNotification(DeleteNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationResponseUnmarshaller.Instance; return Invoke<DeleteNotificationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNotification operation on AmazonBudgetsClient.</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 EndDeleteNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> public virtual IAsyncResult BeginDeleteNotification(DeleteNotificationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNotification.</param> /// /// <returns>Returns a DeleteNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> public virtual DeleteNotificationResponse EndDeleteNotification(IAsyncResult asyncResult) { return EndInvoke<DeleteNotificationResponse>(asyncResult); } #endregion #region DeleteSubscriber /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber service method.</param> /// /// <returns>The response from the DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> public virtual DeleteSubscriberResponse DeleteSubscriber(DeleteSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubscriberResponseUnmarshaller.Instance; return Invoke<DeleteSubscriberResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteSubscriber operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber operation on AmazonBudgetsClient.</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 EndDeleteSubscriber /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> public virtual IAsyncResult BeginDeleteSubscriber(DeleteSubscriberRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubscriberResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteSubscriber operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteSubscriber.</param> /// /// <returns>Returns a DeleteSubscriberResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> public virtual DeleteSubscriberResponse EndDeleteSubscriber(IAsyncResult asyncResult) { return EndInvoke<DeleteSubscriberResponse>(asyncResult); } #endregion #region DescribeBudget /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget service method.</param> /// /// <returns>The response from the DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> public virtual DescribeBudgetResponse DescribeBudget(DescribeBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetResponseUnmarshaller.Instance; return Invoke<DescribeBudgetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudget operation on AmazonBudgetsClient.</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 EndDescribeBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> public virtual IAsyncResult BeginDescribeBudget(DescribeBudgetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudget.</param> /// /// <returns>Returns a DescribeBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> public virtual DescribeBudgetResponse EndDescribeBudget(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetResponse>(asyncResult); } #endregion #region DescribeBudgetAction /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction service method.</param> /// /// <returns>The response from the DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> public virtual DescribeBudgetActionResponse DescribeBudgetAction(DescribeBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction operation on AmazonBudgetsClient.</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 EndDescribeBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> public virtual IAsyncResult BeginDescribeBudgetAction(DescribeBudgetActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetAction.</param> /// /// <returns>Returns a DescribeBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> public virtual DescribeBudgetActionResponse EndDescribeBudgetAction(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetActionResponse>(asyncResult); } #endregion #region DescribeBudgetActionHistories /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories service method.</param> /// /// <returns>The response from the DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> public virtual DescribeBudgetActionHistoriesResponse DescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionHistoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionHistoriesResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionHistoriesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetActionHistories operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories operation on AmazonBudgetsClient.</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 EndDescribeBudgetActionHistories /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> public virtual IAsyncResult BeginDescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionHistoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionHistoriesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetActionHistories operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetActionHistories.</param> /// /// <returns>Returns a DescribeBudgetActionHistoriesResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> public virtual DescribeBudgetActionHistoriesResponse EndDescribeBudgetActionHistories(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetActionHistoriesResponse>(asyncResult); } #endregion #region DescribeBudgetActionsForAccount /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> public virtual DescribeBudgetActionsForAccountResponse DescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForAccountResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionsForAccountResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetActionsForAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount operation on AmazonBudgetsClient.</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 EndDescribeBudgetActionsForAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> public virtual IAsyncResult BeginDescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForAccountResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetActionsForAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetActionsForAccount.</param> /// /// <returns>Returns a DescribeBudgetActionsForAccountResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> public virtual DescribeBudgetActionsForAccountResponse EndDescribeBudgetActionsForAccount(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetActionsForAccountResponse>(asyncResult); } #endregion #region DescribeBudgetActionsForBudget /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> public virtual DescribeBudgetActionsForBudgetResponse DescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForBudgetResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionsForBudgetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetActionsForBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget operation on AmazonBudgetsClient.</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 EndDescribeBudgetActionsForBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> public virtual IAsyncResult BeginDescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForBudgetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetActionsForBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetActionsForBudget.</param> /// /// <returns>Returns a DescribeBudgetActionsForBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> public virtual DescribeBudgetActionsForBudgetResponse EndDescribeBudgetActionsForBudget(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetActionsForBudgetResponse>(asyncResult); } #endregion #region DescribeBudgetNotificationsForAccount /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> public virtual DescribeBudgetNotificationsForAccountResponse DescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetNotificationsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetNotificationsForAccountResponseUnmarshaller.Instance; return Invoke<DescribeBudgetNotificationsForAccountResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetNotificationsForAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount operation on AmazonBudgetsClient.</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 EndDescribeBudgetNotificationsForAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> public virtual IAsyncResult BeginDescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetNotificationsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetNotificationsForAccountResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetNotificationsForAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetNotificationsForAccount.</param> /// /// <returns>Returns a DescribeBudgetNotificationsForAccountResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> public virtual DescribeBudgetNotificationsForAccountResponse EndDescribeBudgetNotificationsForAccount(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetNotificationsForAccountResponse>(asyncResult); } #endregion #region DescribeBudgetPerformanceHistory /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory service method.</param> /// /// <returns>The response from the DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> public virtual DescribeBudgetPerformanceHistoryResponse DescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetPerformanceHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetPerformanceHistoryResponseUnmarshaller.Instance; return Invoke<DescribeBudgetPerformanceHistoryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetPerformanceHistory operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory operation on AmazonBudgetsClient.</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 EndDescribeBudgetPerformanceHistory /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> public virtual IAsyncResult BeginDescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetPerformanceHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetPerformanceHistoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetPerformanceHistory operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetPerformanceHistory.</param> /// /// <returns>Returns a DescribeBudgetPerformanceHistoryResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> public virtual DescribeBudgetPerformanceHistoryResponse EndDescribeBudgetPerformanceHistory(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetPerformanceHistoryResponse>(asyncResult); } #endregion #region DescribeBudgets /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets service method.</param> /// /// <returns>The response from the DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> public virtual DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return Invoke<DescribeBudgetsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeBudgets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets operation on AmazonBudgetsClient.</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 EndDescribeBudgets /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> public virtual IAsyncResult BeginDescribeBudgets(DescribeBudgetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeBudgets operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgets.</param> /// /// <returns>Returns a DescribeBudgetsResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> public virtual DescribeBudgetsResponse EndDescribeBudgets(IAsyncResult asyncResult) { return EndInvoke<DescribeBudgetsResponse>(asyncResult); } #endregion #region DescribeNotificationsForBudget /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget service method.</param> /// /// <returns>The response from the DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> public virtual DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return Invoke<DescribeNotificationsForBudgetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeNotificationsForBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget operation on AmazonBudgetsClient.</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 EndDescribeNotificationsForBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> public virtual IAsyncResult BeginDescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeNotificationsForBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeNotificationsForBudget.</param> /// /// <returns>Returns a DescribeNotificationsForBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> public virtual DescribeNotificationsForBudgetResponse EndDescribeNotificationsForBudget(IAsyncResult asyncResult) { return EndInvoke<DescribeNotificationsForBudgetResponse>(asyncResult); } #endregion #region DescribeSubscribersForNotification /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification service method.</param> /// /// <returns>The response from the DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> public virtual DescribeSubscribersForNotificationResponse DescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubscribersForNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubscribersForNotificationResponseUnmarshaller.Instance; return Invoke<DescribeSubscribersForNotificationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeSubscribersForNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification operation on AmazonBudgetsClient.</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 EndDescribeSubscribersForNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> public virtual IAsyncResult BeginDescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubscribersForNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubscribersForNotificationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeSubscribersForNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSubscribersForNotification.</param> /// /// <returns>Returns a DescribeSubscribersForNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> public virtual DescribeSubscribersForNotificationResponse EndDescribeSubscribersForNotification(IAsyncResult asyncResult) { return EndInvoke<DescribeSubscribersForNotificationResponse>(asyncResult); } #endregion #region ExecuteBudgetAction /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction service method.</param> /// /// <returns>The response from the ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> public virtual ExecuteBudgetActionResponse ExecuteBudgetAction(ExecuteBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteBudgetActionResponseUnmarshaller.Instance; return Invoke<ExecuteBudgetActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ExecuteBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction operation on AmazonBudgetsClient.</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 EndExecuteBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> public virtual IAsyncResult BeginExecuteBudgetAction(ExecuteBudgetActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteBudgetActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ExecuteBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExecuteBudgetAction.</param> /// /// <returns>Returns a ExecuteBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> public virtual ExecuteBudgetActionResponse EndExecuteBudgetAction(IAsyncResult asyncResult) { return EndInvoke<ExecuteBudgetActionResponse>(asyncResult); } #endregion #region UpdateBudget /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget service method.</param> /// /// <returns>The response from the UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> public virtual UpdateBudgetResponse UpdateBudget(UpdateBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetResponseUnmarshaller.Instance; return Invoke<UpdateBudgetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateBudget operation on AmazonBudgetsClient.</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 EndUpdateBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> public virtual IAsyncResult BeginUpdateBudget(UpdateBudgetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateBudget.</param> /// /// <returns>Returns a UpdateBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> public virtual UpdateBudgetResponse EndUpdateBudget(IAsyncResult asyncResult) { return EndInvoke<UpdateBudgetResponse>(asyncResult); } #endregion #region UpdateBudgetAction /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction service method.</param> /// /// <returns>The response from the UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> public virtual UpdateBudgetActionResponse UpdateBudgetAction(UpdateBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetActionResponseUnmarshaller.Instance; return Invoke<UpdateBudgetActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction operation on AmazonBudgetsClient.</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 EndUpdateBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> public virtual IAsyncResult BeginUpdateBudgetAction(UpdateBudgetActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateBudgetAction.</param> /// /// <returns>Returns a UpdateBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> public virtual UpdateBudgetActionResponse EndUpdateBudgetAction(IAsyncResult asyncResult) { return EndInvoke<UpdateBudgetActionResponse>(asyncResult); } #endregion #region UpdateNotification /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification service method.</param> /// /// <returns>The response from the UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> public virtual UpdateNotificationResponse UpdateNotification(UpdateNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationResponseUnmarshaller.Instance; return Invoke<UpdateNotificationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNotification operation on AmazonBudgetsClient.</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 EndUpdateNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> public virtual IAsyncResult BeginUpdateNotification(UpdateNotificationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNotification.</param> /// /// <returns>Returns a UpdateNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> public virtual UpdateNotificationResponse EndUpdateNotification(IAsyncResult asyncResult) { return EndInvoke<UpdateNotificationResponse>(asyncResult); } #endregion #region UpdateSubscriber /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber service method.</param> /// /// <returns>The response from the UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> public virtual UpdateSubscriberResponse UpdateSubscriber(UpdateSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return Invoke<UpdateSubscriberResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateSubscriber operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber operation on AmazonBudgetsClient.</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 EndUpdateSubscriber /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> public virtual IAsyncResult BeginUpdateSubscriber(UpdateSubscriberRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateSubscriber operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateSubscriber.</param> /// /// <returns>Returns a UpdateSubscriberResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> public virtual UpdateSubscriberResponse EndUpdateSubscriber(IAsyncResult asyncResult) { return EndInvoke<UpdateSubscriberResponse>(asyncResult); } #endregion } }
2,083
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Budgets.Model; namespace Amazon.Budgets { /// <summary> /// Interface for accessing Budgets /// /// Use the Amazon Web Services Budgets API to plan your service usage, service costs, /// and instance reservations. This API reference provides descriptions, syntax, and usage /// examples for each of the actions and data types for the Amazon Web Services Budgets /// feature. /// /// /// <para> /// Budgets provide you with a way to see the following information: /// </para> /// <ul> <li> /// <para> /// How close your plan is to your budgeted amount or to the free tier limits /// </para> /// </li> <li> /// <para> /// Your usage-to-date, including how much you've used of your Reserved Instances (RIs) /// </para> /// </li> <li> /// <para> /// Your current estimated charges from Amazon Web Services, and how much your predicted /// usage will accrue in charges by the end of the month /// </para> /// </li> <li> /// <para> /// How much of your budget has been used /// </para> /// </li> </ul> /// <para> /// Amazon Web Services updates your budget status several times a day. Budgets track /// your unblended costs, subscriptions, refunds, and RIs. You can create the following /// types of budgets: /// </para> /// <ul> <li> /// <para> /// <b>Cost budgets</b> - Plan how much you want to spend on a service. /// </para> /// </li> <li> /// <para> /// <b>Usage budgets</b> - Plan how much you want to use one or more services. /// </para> /// </li> <li> /// <para> /// <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts /// when your RI usage falls below that threshold. This lets you see if your RIs are unused /// or under-utilized. /// </para> /// </li> <li> /// <para> /// <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when /// the number of your instance hours that are covered by RIs fall below that threshold. /// This lets you see how much of your instance usage is covered by a reservation. /// </para> /// </li> </ul> /// <para> /// Service Endpoint /// </para> /// /// <para> /// The Amazon Web Services Budgets API provides the following endpoint: /// </para> /// <ul> <li> /// <para> /// https://budgets.amazonaws.com /// </para> /// </li> </ul> /// <para> /// For information about costs that are associated with the Amazon Web Services Budgets /// API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web /// Services Cost Management Pricing</a>. /// </para> /// </summary> public partial interface IAmazonBudgets : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBudgetsPaginatorFactory Paginators { get; } #endif #region CreateBudget /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget service method.</param> /// /// <returns>The response from the CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> CreateBudgetResponse CreateBudget(CreateBudgetRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateBudget operation on AmazonBudgetsClient.</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 EndCreateBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> IAsyncResult BeginCreateBudget(CreateBudgetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateBudget.</param> /// /// <returns>Returns a CreateBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> CreateBudgetResponse EndCreateBudget(IAsyncResult asyncResult); #endregion #region CreateBudgetAction /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction service method.</param> /// /// <returns>The response from the CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> CreateBudgetActionResponse CreateBudgetAction(CreateBudgetActionRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction operation on AmazonBudgetsClient.</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 EndCreateBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> IAsyncResult BeginCreateBudgetAction(CreateBudgetActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateBudgetAction.</param> /// /// <returns>Returns a CreateBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> CreateBudgetActionResponse EndCreateBudgetAction(IAsyncResult asyncResult); #endregion #region CreateNotification /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification service method.</param> /// /// <returns>The response from the CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> CreateNotificationResponse CreateNotification(CreateNotificationRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateNotification operation on AmazonBudgetsClient.</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 EndCreateNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> IAsyncResult BeginCreateNotification(CreateNotificationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateNotification.</param> /// /// <returns>Returns a CreateNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> CreateNotificationResponse EndCreateNotification(IAsyncResult asyncResult); #endregion #region CreateSubscriber /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber service method.</param> /// /// <returns>The response from the CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> CreateSubscriberResponse CreateSubscriber(CreateSubscriberRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateSubscriber operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber operation on AmazonBudgetsClient.</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 EndCreateSubscriber /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> IAsyncResult BeginCreateSubscriber(CreateSubscriberRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateSubscriber operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateSubscriber.</param> /// /// <returns>Returns a CreateSubscriberResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> CreateSubscriberResponse EndCreateSubscriber(IAsyncResult asyncResult); #endregion #region DeleteBudget /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget service method.</param> /// /// <returns>The response from the DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> DeleteBudgetResponse DeleteBudget(DeleteBudgetRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteBudget operation on AmazonBudgetsClient.</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 EndDeleteBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> IAsyncResult BeginDeleteBudget(DeleteBudgetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteBudget.</param> /// /// <returns>Returns a DeleteBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> DeleteBudgetResponse EndDeleteBudget(IAsyncResult asyncResult); #endregion #region DeleteBudgetAction /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction service method.</param> /// /// <returns>The response from the DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> DeleteBudgetActionResponse DeleteBudgetAction(DeleteBudgetActionRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction operation on AmazonBudgetsClient.</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 EndDeleteBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> IAsyncResult BeginDeleteBudgetAction(DeleteBudgetActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteBudgetAction.</param> /// /// <returns>Returns a DeleteBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> DeleteBudgetActionResponse EndDeleteBudgetAction(IAsyncResult asyncResult); #endregion #region DeleteNotification /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification service method.</param> /// /// <returns>The response from the DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> DeleteNotificationResponse DeleteNotification(DeleteNotificationRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNotification operation on AmazonBudgetsClient.</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 EndDeleteNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> IAsyncResult BeginDeleteNotification(DeleteNotificationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNotification.</param> /// /// <returns>Returns a DeleteNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> DeleteNotificationResponse EndDeleteNotification(IAsyncResult asyncResult); #endregion #region DeleteSubscriber /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber service method.</param> /// /// <returns>The response from the DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> DeleteSubscriberResponse DeleteSubscriber(DeleteSubscriberRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteSubscriber operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber operation on AmazonBudgetsClient.</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 EndDeleteSubscriber /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> IAsyncResult BeginDeleteSubscriber(DeleteSubscriberRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteSubscriber operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteSubscriber.</param> /// /// <returns>Returns a DeleteSubscriberResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> DeleteSubscriberResponse EndDeleteSubscriber(IAsyncResult asyncResult); #endregion #region DescribeBudget /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget service method.</param> /// /// <returns>The response from the DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> DescribeBudgetResponse DescribeBudget(DescribeBudgetRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudget operation on AmazonBudgetsClient.</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 EndDescribeBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> IAsyncResult BeginDescribeBudget(DescribeBudgetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudget.</param> /// /// <returns>Returns a DescribeBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> DescribeBudgetResponse EndDescribeBudget(IAsyncResult asyncResult); #endregion #region DescribeBudgetAction /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction service method.</param> /// /// <returns>The response from the DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> DescribeBudgetActionResponse DescribeBudgetAction(DescribeBudgetActionRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction operation on AmazonBudgetsClient.</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 EndDescribeBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> IAsyncResult BeginDescribeBudgetAction(DescribeBudgetActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetAction.</param> /// /// <returns>Returns a DescribeBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> DescribeBudgetActionResponse EndDescribeBudgetAction(IAsyncResult asyncResult); #endregion #region DescribeBudgetActionHistories /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories service method.</param> /// /// <returns>The response from the DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> DescribeBudgetActionHistoriesResponse DescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetActionHistories operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories operation on AmazonBudgetsClient.</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 EndDescribeBudgetActionHistories /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> IAsyncResult BeginDescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetActionHistories operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetActionHistories.</param> /// /// <returns>Returns a DescribeBudgetActionHistoriesResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> DescribeBudgetActionHistoriesResponse EndDescribeBudgetActionHistories(IAsyncResult asyncResult); #endregion #region DescribeBudgetActionsForAccount /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> DescribeBudgetActionsForAccountResponse DescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetActionsForAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount operation on AmazonBudgetsClient.</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 EndDescribeBudgetActionsForAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> IAsyncResult BeginDescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetActionsForAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetActionsForAccount.</param> /// /// <returns>Returns a DescribeBudgetActionsForAccountResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> DescribeBudgetActionsForAccountResponse EndDescribeBudgetActionsForAccount(IAsyncResult asyncResult); #endregion #region DescribeBudgetActionsForBudget /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> DescribeBudgetActionsForBudgetResponse DescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetActionsForBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget operation on AmazonBudgetsClient.</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 EndDescribeBudgetActionsForBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> IAsyncResult BeginDescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetActionsForBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetActionsForBudget.</param> /// /// <returns>Returns a DescribeBudgetActionsForBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> DescribeBudgetActionsForBudgetResponse EndDescribeBudgetActionsForBudget(IAsyncResult asyncResult); #endregion #region DescribeBudgetNotificationsForAccount /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> DescribeBudgetNotificationsForAccountResponse DescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetNotificationsForAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount operation on AmazonBudgetsClient.</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 EndDescribeBudgetNotificationsForAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> IAsyncResult BeginDescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetNotificationsForAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetNotificationsForAccount.</param> /// /// <returns>Returns a DescribeBudgetNotificationsForAccountResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> DescribeBudgetNotificationsForAccountResponse EndDescribeBudgetNotificationsForAccount(IAsyncResult asyncResult); #endregion #region DescribeBudgetPerformanceHistory /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory service method.</param> /// /// <returns>The response from the DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> DescribeBudgetPerformanceHistoryResponse DescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudgetPerformanceHistory operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory operation on AmazonBudgetsClient.</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 EndDescribeBudgetPerformanceHistory /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> IAsyncResult BeginDescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudgetPerformanceHistory operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgetPerformanceHistory.</param> /// /// <returns>Returns a DescribeBudgetPerformanceHistoryResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> DescribeBudgetPerformanceHistoryResponse EndDescribeBudgetPerformanceHistory(IAsyncResult asyncResult); #endregion #region DescribeBudgets /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets service method.</param> /// /// <returns>The response from the DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBudgets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets operation on AmazonBudgetsClient.</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 EndDescribeBudgets /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> IAsyncResult BeginDescribeBudgets(DescribeBudgetsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBudgets operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBudgets.</param> /// /// <returns>Returns a DescribeBudgetsResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> DescribeBudgetsResponse EndDescribeBudgets(IAsyncResult asyncResult); #endregion #region DescribeNotificationsForBudget /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget service method.</param> /// /// <returns>The response from the DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeNotificationsForBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget operation on AmazonBudgetsClient.</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 EndDescribeNotificationsForBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> IAsyncResult BeginDescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeNotificationsForBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeNotificationsForBudget.</param> /// /// <returns>Returns a DescribeNotificationsForBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> DescribeNotificationsForBudgetResponse EndDescribeNotificationsForBudget(IAsyncResult asyncResult); #endregion #region DescribeSubscribersForNotification /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification service method.</param> /// /// <returns>The response from the DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> DescribeSubscribersForNotificationResponse DescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeSubscribersForNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification operation on AmazonBudgetsClient.</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 EndDescribeSubscribersForNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> IAsyncResult BeginDescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeSubscribersForNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSubscribersForNotification.</param> /// /// <returns>Returns a DescribeSubscribersForNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> DescribeSubscribersForNotificationResponse EndDescribeSubscribersForNotification(IAsyncResult asyncResult); #endregion #region ExecuteBudgetAction /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction service method.</param> /// /// <returns>The response from the ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> ExecuteBudgetActionResponse ExecuteBudgetAction(ExecuteBudgetActionRequest request); /// <summary> /// Initiates the asynchronous execution of the ExecuteBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction operation on AmazonBudgetsClient.</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 EndExecuteBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> IAsyncResult BeginExecuteBudgetAction(ExecuteBudgetActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ExecuteBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExecuteBudgetAction.</param> /// /// <returns>Returns a ExecuteBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> ExecuteBudgetActionResponse EndExecuteBudgetAction(IAsyncResult asyncResult); #endregion #region UpdateBudget /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget service method.</param> /// /// <returns>The response from the UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> UpdateBudgetResponse UpdateBudget(UpdateBudgetRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateBudget operation on AmazonBudgetsClient.</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 EndUpdateBudget /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> IAsyncResult BeginUpdateBudget(UpdateBudgetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateBudget operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateBudget.</param> /// /// <returns>Returns a UpdateBudgetResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> UpdateBudgetResponse EndUpdateBudget(IAsyncResult asyncResult); #endregion #region UpdateBudgetAction /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction service method.</param> /// /// <returns>The response from the UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> UpdateBudgetActionResponse UpdateBudgetAction(UpdateBudgetActionRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateBudgetAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction operation on AmazonBudgetsClient.</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 EndUpdateBudgetAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> IAsyncResult BeginUpdateBudgetAction(UpdateBudgetActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateBudgetAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateBudgetAction.</param> /// /// <returns>Returns a UpdateBudgetActionResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> UpdateBudgetActionResponse EndUpdateBudgetAction(IAsyncResult asyncResult); #endregion #region UpdateNotification /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification service method.</param> /// /// <returns>The response from the UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> UpdateNotificationResponse UpdateNotification(UpdateNotificationRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateNotification operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNotification operation on AmazonBudgetsClient.</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 EndUpdateNotification /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> IAsyncResult BeginUpdateNotification(UpdateNotificationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateNotification operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNotification.</param> /// /// <returns>Returns a UpdateNotificationResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> UpdateNotificationResponse EndUpdateNotification(IAsyncResult asyncResult); #endregion #region UpdateSubscriber /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber service method.</param> /// /// <returns>The response from the UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> UpdateSubscriberResponse UpdateSubscriber(UpdateSubscriberRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateSubscriber operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber operation on AmazonBudgetsClient.</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 EndUpdateSubscriber /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> IAsyncResult BeginUpdateSubscriber(UpdateSubscriberRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateSubscriber operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateSubscriber.</param> /// /// <returns>Returns a UpdateSubscriberResult from Budgets.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> UpdateSubscriberResponse EndUpdateSubscriber(IAsyncResult asyncResult); #endregion } }
1,541
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Budgets.Model.Internal.MarshallTransformations; using Amazon.Budgets.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Budgets { /// <summary> /// Implementation for accessing Budgets /// /// Use the Amazon Web Services Budgets API to plan your service usage, service costs, /// and instance reservations. This API reference provides descriptions, syntax, and usage /// examples for each of the actions and data types for the Amazon Web Services Budgets /// feature. /// /// /// <para> /// Budgets provide you with a way to see the following information: /// </para> /// <ul> <li> /// <para> /// How close your plan is to your budgeted amount or to the free tier limits /// </para> /// </li> <li> /// <para> /// Your usage-to-date, including how much you've used of your Reserved Instances (RIs) /// </para> /// </li> <li> /// <para> /// Your current estimated charges from Amazon Web Services, and how much your predicted /// usage will accrue in charges by the end of the month /// </para> /// </li> <li> /// <para> /// How much of your budget has been used /// </para> /// </li> </ul> /// <para> /// Amazon Web Services updates your budget status several times a day. Budgets track /// your unblended costs, subscriptions, refunds, and RIs. You can create the following /// types of budgets: /// </para> /// <ul> <li> /// <para> /// <b>Cost budgets</b> - Plan how much you want to spend on a service. /// </para> /// </li> <li> /// <para> /// <b>Usage budgets</b> - Plan how much you want to use one or more services. /// </para> /// </li> <li> /// <para> /// <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts /// when your RI usage falls below that threshold. This lets you see if your RIs are unused /// or under-utilized. /// </para> /// </li> <li> /// <para> /// <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when /// the number of your instance hours that are covered by RIs fall below that threshold. /// This lets you see how much of your instance usage is covered by a reservation. /// </para> /// </li> </ul> /// <para> /// Service Endpoint /// </para> /// /// <para> /// The Amazon Web Services Budgets API provides the following endpoint: /// </para> /// <ul> <li> /// <para> /// https://budgets.amazonaws.com /// </para> /// </li> </ul> /// <para> /// For information about costs that are associated with the Amazon Web Services Budgets /// API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web /// Services Cost Management Pricing</a>. /// </para> /// </summary> public partial class AmazonBudgetsClient : AmazonServiceClient, IAmazonBudgets { private static IServiceMetadata serviceMetadata = new AmazonBudgetsMetadata(); private IBudgetsPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBudgetsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BudgetsPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBudgetsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBudgetsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(AmazonBudgetsConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBudgetsClient(AWSCredentials credentials) : this(credentials, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBudgetsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials and an /// AmazonBudgetsClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(AWSCredentials credentials, AmazonBudgetsConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBudgetsConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBudgetsClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBudgetsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBudgetsClient 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 AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBudgetsConfig 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 AmazonBudgetsEndpointResolver()); } /// <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 CreateBudget /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget service method.</param> /// /// <returns>The response from the CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> public virtual CreateBudgetResponse CreateBudget(CreateBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetResponseUnmarshaller.Instance; return Invoke<CreateBudgetResponse>(request, options); } /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget 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 CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> public virtual Task<CreateBudgetResponse> CreateBudgetAsync(CreateBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetResponseUnmarshaller.Instance; return InvokeAsync<CreateBudgetResponse>(request, options, cancellationToken); } #endregion #region CreateBudgetAction /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction service method.</param> /// /// <returns>The response from the CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> public virtual CreateBudgetActionResponse CreateBudgetAction(CreateBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetActionResponseUnmarshaller.Instance; return Invoke<CreateBudgetActionResponse>(request, options); } /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction 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 CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> public virtual Task<CreateBudgetActionResponse> CreateBudgetActionAsync(CreateBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<CreateBudgetActionResponse>(request, options, cancellationToken); } #endregion #region CreateNotification /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification service method.</param> /// /// <returns>The response from the CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> public virtual CreateNotificationResponse CreateNotification(CreateNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationResponseUnmarshaller.Instance; return Invoke<CreateNotificationResponse>(request, options); } /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification 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 CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> public virtual Task<CreateNotificationResponse> CreateNotificationAsync(CreateNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationResponseUnmarshaller.Instance; return InvokeAsync<CreateNotificationResponse>(request, options, cancellationToken); } #endregion #region CreateSubscriber /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber service method.</param> /// /// <returns>The response from the CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> public virtual CreateSubscriberResponse CreateSubscriber(CreateSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubscriberResponseUnmarshaller.Instance; return Invoke<CreateSubscriberResponse>(request, options); } /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber 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 CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> public virtual Task<CreateSubscriberResponse> CreateSubscriberAsync(CreateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubscriberResponseUnmarshaller.Instance; return InvokeAsync<CreateSubscriberResponse>(request, options, cancellationToken); } #endregion #region DeleteBudget /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget service method.</param> /// /// <returns>The response from the DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> public virtual DeleteBudgetResponse DeleteBudget(DeleteBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetResponseUnmarshaller.Instance; return Invoke<DeleteBudgetResponse>(request, options); } /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget 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 DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> public virtual Task<DeleteBudgetResponse> DeleteBudgetAsync(DeleteBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetResponseUnmarshaller.Instance; return InvokeAsync<DeleteBudgetResponse>(request, options, cancellationToken); } #endregion #region DeleteBudgetAction /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction service method.</param> /// /// <returns>The response from the DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> public virtual DeleteBudgetActionResponse DeleteBudgetAction(DeleteBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetActionResponseUnmarshaller.Instance; return Invoke<DeleteBudgetActionResponse>(request, options); } /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction 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 DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> public virtual Task<DeleteBudgetActionResponse> DeleteBudgetActionAsync(DeleteBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<DeleteBudgetActionResponse>(request, options, cancellationToken); } #endregion #region DeleteNotification /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification service method.</param> /// /// <returns>The response from the DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> public virtual DeleteNotificationResponse DeleteNotification(DeleteNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationResponseUnmarshaller.Instance; return Invoke<DeleteNotificationResponse>(request, options); } /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification 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 DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> public virtual Task<DeleteNotificationResponse> DeleteNotificationAsync(DeleteNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationResponseUnmarshaller.Instance; return InvokeAsync<DeleteNotificationResponse>(request, options, cancellationToken); } #endregion #region DeleteSubscriber /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber service method.</param> /// /// <returns>The response from the DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> public virtual DeleteSubscriberResponse DeleteSubscriber(DeleteSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubscriberResponseUnmarshaller.Instance; return Invoke<DeleteSubscriberResponse>(request, options); } /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber 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 DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> public virtual Task<DeleteSubscriberResponse> DeleteSubscriberAsync(DeleteSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubscriberResponseUnmarshaller.Instance; return InvokeAsync<DeleteSubscriberResponse>(request, options, cancellationToken); } #endregion #region DescribeBudget /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget service method.</param> /// /// <returns>The response from the DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> public virtual DescribeBudgetResponse DescribeBudget(DescribeBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetResponseUnmarshaller.Instance; return Invoke<DescribeBudgetResponse>(request, options); } /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget 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 DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> public virtual Task<DescribeBudgetResponse> DescribeBudgetAsync(DescribeBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetAction /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction service method.</param> /// /// <returns>The response from the DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> public virtual DescribeBudgetActionResponse DescribeBudgetAction(DescribeBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionResponse>(request, options); } /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction 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 DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> public virtual Task<DescribeBudgetActionResponse> DescribeBudgetActionAsync(DescribeBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetActionHistories /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories service method.</param> /// /// <returns>The response from the DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> public virtual DescribeBudgetActionHistoriesResponse DescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionHistoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionHistoriesResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionHistoriesResponse>(request, options); } /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories 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 DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> public virtual Task<DescribeBudgetActionHistoriesResponse> DescribeBudgetActionHistoriesAsync(DescribeBudgetActionHistoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionHistoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionHistoriesResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionHistoriesResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetActionsForAccount /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> public virtual DescribeBudgetActionsForAccountResponse DescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForAccountResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionsForAccountResponse>(request, options); } /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount 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 DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> public virtual Task<DescribeBudgetActionsForAccountResponse> DescribeBudgetActionsForAccountAsync(DescribeBudgetActionsForAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForAccountResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionsForAccountResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetActionsForBudget /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> public virtual DescribeBudgetActionsForBudgetResponse DescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForBudgetResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionsForBudgetResponse>(request, options); } /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget 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 DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> public virtual Task<DescribeBudgetActionsForBudgetResponse> DescribeBudgetActionsForBudgetAsync(DescribeBudgetActionsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForBudgetResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionsForBudgetResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetNotificationsForAccount /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> public virtual DescribeBudgetNotificationsForAccountResponse DescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetNotificationsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetNotificationsForAccountResponseUnmarshaller.Instance; return Invoke<DescribeBudgetNotificationsForAccountResponse>(request, options); } /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount 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 DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> public virtual Task<DescribeBudgetNotificationsForAccountResponse> DescribeBudgetNotificationsForAccountAsync(DescribeBudgetNotificationsForAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetNotificationsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetNotificationsForAccountResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetNotificationsForAccountResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetPerformanceHistory /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory service method.</param> /// /// <returns>The response from the DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> public virtual DescribeBudgetPerformanceHistoryResponse DescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetPerformanceHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetPerformanceHistoryResponseUnmarshaller.Instance; return Invoke<DescribeBudgetPerformanceHistoryResponse>(request, options); } /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory 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 DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> public virtual Task<DescribeBudgetPerformanceHistoryResponse> DescribeBudgetPerformanceHistoryAsync(DescribeBudgetPerformanceHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetPerformanceHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetPerformanceHistoryResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetPerformanceHistoryResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgets /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets service method.</param> /// /// <returns>The response from the DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> public virtual DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return Invoke<DescribeBudgetsResponse>(request, options); } /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets 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 DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> public virtual Task<DescribeBudgetsResponse> DescribeBudgetsAsync(DescribeBudgetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetsResponse>(request, options, cancellationToken); } #endregion #region DescribeNotificationsForBudget /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget service method.</param> /// /// <returns>The response from the DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> public virtual DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return Invoke<DescribeNotificationsForBudgetResponse>(request, options); } /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget 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 DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> public virtual Task<DescribeNotificationsForBudgetResponse> DescribeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return InvokeAsync<DescribeNotificationsForBudgetResponse>(request, options, cancellationToken); } #endregion #region DescribeSubscribersForNotification /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification service method.</param> /// /// <returns>The response from the DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> public virtual DescribeSubscribersForNotificationResponse DescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubscribersForNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubscribersForNotificationResponseUnmarshaller.Instance; return Invoke<DescribeSubscribersForNotificationResponse>(request, options); } /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification 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 DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> public virtual Task<DescribeSubscribersForNotificationResponse> DescribeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubscribersForNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubscribersForNotificationResponseUnmarshaller.Instance; return InvokeAsync<DescribeSubscribersForNotificationResponse>(request, options, cancellationToken); } #endregion #region ExecuteBudgetAction /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction service method.</param> /// /// <returns>The response from the ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> public virtual ExecuteBudgetActionResponse ExecuteBudgetAction(ExecuteBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteBudgetActionResponseUnmarshaller.Instance; return Invoke<ExecuteBudgetActionResponse>(request, options); } /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction 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 ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> public virtual Task<ExecuteBudgetActionResponse> ExecuteBudgetActionAsync(ExecuteBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<ExecuteBudgetActionResponse>(request, options, cancellationToken); } #endregion #region UpdateBudget /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget service method.</param> /// /// <returns>The response from the UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> public virtual UpdateBudgetResponse UpdateBudget(UpdateBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetResponseUnmarshaller.Instance; return Invoke<UpdateBudgetResponse>(request, options); } /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget 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 UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> public virtual Task<UpdateBudgetResponse> UpdateBudgetAsync(UpdateBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetResponseUnmarshaller.Instance; return InvokeAsync<UpdateBudgetResponse>(request, options, cancellationToken); } #endregion #region UpdateBudgetAction /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction service method.</param> /// /// <returns>The response from the UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> public virtual UpdateBudgetActionResponse UpdateBudgetAction(UpdateBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetActionResponseUnmarshaller.Instance; return Invoke<UpdateBudgetActionResponse>(request, options); } /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction 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 UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> public virtual Task<UpdateBudgetActionResponse> UpdateBudgetActionAsync(UpdateBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<UpdateBudgetActionResponse>(request, options, cancellationToken); } #endregion #region UpdateNotification /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification service method.</param> /// /// <returns>The response from the UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> public virtual UpdateNotificationResponse UpdateNotification(UpdateNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationResponseUnmarshaller.Instance; return Invoke<UpdateNotificationResponse>(request, options); } /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification 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 UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> public virtual Task<UpdateNotificationResponse> UpdateNotificationAsync(UpdateNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationResponseUnmarshaller.Instance; return InvokeAsync<UpdateNotificationResponse>(request, options, cancellationToken); } #endregion #region UpdateSubscriber /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber service method.</param> /// /// <returns>The response from the UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> public virtual UpdateSubscriberResponse UpdateSubscriber(UpdateSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return Invoke<UpdateSubscriberResponse>(request, options); } /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber 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 UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> public virtual Task<UpdateSubscriberResponse> UpdateSubscriberAsync(UpdateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return InvokeAsync<UpdateSubscriberResponse>(request, options, cancellationToken); } #endregion } }
2,287
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Budgets.Model; namespace Amazon.Budgets { /// <summary> /// Interface for accessing Budgets /// /// Use the Amazon Web Services Budgets API to plan your service usage, service costs, /// and instance reservations. This API reference provides descriptions, syntax, and usage /// examples for each of the actions and data types for the Amazon Web Services Budgets /// feature. /// /// /// <para> /// Budgets provide you with a way to see the following information: /// </para> /// <ul> <li> /// <para> /// How close your plan is to your budgeted amount or to the free tier limits /// </para> /// </li> <li> /// <para> /// Your usage-to-date, including how much you've used of your Reserved Instances (RIs) /// </para> /// </li> <li> /// <para> /// Your current estimated charges from Amazon Web Services, and how much your predicted /// usage will accrue in charges by the end of the month /// </para> /// </li> <li> /// <para> /// How much of your budget has been used /// </para> /// </li> </ul> /// <para> /// Amazon Web Services updates your budget status several times a day. Budgets track /// your unblended costs, subscriptions, refunds, and RIs. You can create the following /// types of budgets: /// </para> /// <ul> <li> /// <para> /// <b>Cost budgets</b> - Plan how much you want to spend on a service. /// </para> /// </li> <li> /// <para> /// <b>Usage budgets</b> - Plan how much you want to use one or more services. /// </para> /// </li> <li> /// <para> /// <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts /// when your RI usage falls below that threshold. This lets you see if your RIs are unused /// or under-utilized. /// </para> /// </li> <li> /// <para> /// <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when /// the number of your instance hours that are covered by RIs fall below that threshold. /// This lets you see how much of your instance usage is covered by a reservation. /// </para> /// </li> </ul> /// <para> /// Service Endpoint /// </para> /// /// <para> /// The Amazon Web Services Budgets API provides the following endpoint: /// </para> /// <ul> <li> /// <para> /// https://budgets.amazonaws.com /// </para> /// </li> </ul> /// <para> /// For information about costs that are associated with the Amazon Web Services Budgets /// API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web /// Services Cost Management Pricing</a>. /// </para> /// </summary> public partial interface IAmazonBudgets : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IBudgetsPaginatorFactory Paginators { get; } #region CreateBudget /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget service method.</param> /// /// <returns>The response from the CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> CreateBudgetResponse CreateBudget(CreateBudgetRequest request); /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget 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 CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> Task<CreateBudgetResponse> CreateBudgetAsync(CreateBudgetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateBudgetAction /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction service method.</param> /// /// <returns>The response from the CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> CreateBudgetActionResponse CreateBudgetAction(CreateBudgetActionRequest request); /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction 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 CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> Task<CreateBudgetActionResponse> CreateBudgetActionAsync(CreateBudgetActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateNotification /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification service method.</param> /// /// <returns>The response from the CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> CreateNotificationResponse CreateNotification(CreateNotificationRequest request); /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification 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 CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> Task<CreateNotificationResponse> CreateNotificationAsync(CreateNotificationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateSubscriber /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber service method.</param> /// /// <returns>The response from the CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> CreateSubscriberResponse CreateSubscriber(CreateSubscriberRequest request); /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber 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 CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> Task<CreateSubscriberResponse> CreateSubscriberAsync(CreateSubscriberRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteBudget /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget service method.</param> /// /// <returns>The response from the DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> DeleteBudgetResponse DeleteBudget(DeleteBudgetRequest request); /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget 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 DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> Task<DeleteBudgetResponse> DeleteBudgetAsync(DeleteBudgetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteBudgetAction /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction service method.</param> /// /// <returns>The response from the DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> DeleteBudgetActionResponse DeleteBudgetAction(DeleteBudgetActionRequest request); /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction 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 DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> Task<DeleteBudgetActionResponse> DeleteBudgetActionAsync(DeleteBudgetActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNotification /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification service method.</param> /// /// <returns>The response from the DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> DeleteNotificationResponse DeleteNotification(DeleteNotificationRequest request); /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification 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 DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> Task<DeleteNotificationResponse> DeleteNotificationAsync(DeleteNotificationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteSubscriber /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber service method.</param> /// /// <returns>The response from the DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> DeleteSubscriberResponse DeleteSubscriber(DeleteSubscriberRequest request); /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber 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 DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> Task<DeleteSubscriberResponse> DeleteSubscriberAsync(DeleteSubscriberRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudget /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget service method.</param> /// /// <returns>The response from the DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> DescribeBudgetResponse DescribeBudget(DescribeBudgetRequest request); /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget 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 DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> Task<DescribeBudgetResponse> DescribeBudgetAsync(DescribeBudgetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetAction /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction service method.</param> /// /// <returns>The response from the DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> DescribeBudgetActionResponse DescribeBudgetAction(DescribeBudgetActionRequest request); /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction 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 DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> Task<DescribeBudgetActionResponse> DescribeBudgetActionAsync(DescribeBudgetActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetActionHistories /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories service method.</param> /// /// <returns>The response from the DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> DescribeBudgetActionHistoriesResponse DescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request); /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories 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 DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> Task<DescribeBudgetActionHistoriesResponse> DescribeBudgetActionHistoriesAsync(DescribeBudgetActionHistoriesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetActionsForAccount /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> DescribeBudgetActionsForAccountResponse DescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request); /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount 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 DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> Task<DescribeBudgetActionsForAccountResponse> DescribeBudgetActionsForAccountAsync(DescribeBudgetActionsForAccountRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetActionsForBudget /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget service method.</param> /// /// <returns>The response from the DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> DescribeBudgetActionsForBudgetResponse DescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request); /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget 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 DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> Task<DescribeBudgetActionsForBudgetResponse> DescribeBudgetActionsForBudgetAsync(DescribeBudgetActionsForBudgetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetNotificationsForAccount /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount service method.</param> /// /// <returns>The response from the DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> DescribeBudgetNotificationsForAccountResponse DescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request); /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount 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 DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> Task<DescribeBudgetNotificationsForAccountResponse> DescribeBudgetNotificationsForAccountAsync(DescribeBudgetNotificationsForAccountRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetPerformanceHistory /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory service method.</param> /// /// <returns>The response from the DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> DescribeBudgetPerformanceHistoryResponse DescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request); /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory 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 DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> Task<DescribeBudgetPerformanceHistoryResponse> DescribeBudgetPerformanceHistoryAsync(DescribeBudgetPerformanceHistoryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgets /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets service method.</param> /// /// <returns>The response from the DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request); /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets 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 DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> Task<DescribeBudgetsResponse> DescribeBudgetsAsync(DescribeBudgetsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeNotificationsForBudget /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget service method.</param> /// /// <returns>The response from the DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request); /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget 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 DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> Task<DescribeNotificationsForBudgetResponse> DescribeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeSubscribersForNotification /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification service method.</param> /// /// <returns>The response from the DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> DescribeSubscribersForNotificationResponse DescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request); /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification 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 DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> Task<DescribeSubscribersForNotificationResponse> DescribeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExecuteBudgetAction /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction service method.</param> /// /// <returns>The response from the ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> ExecuteBudgetActionResponse ExecuteBudgetAction(ExecuteBudgetActionRequest request); /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction 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 ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> Task<ExecuteBudgetActionResponse> ExecuteBudgetActionAsync(ExecuteBudgetActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateBudget /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget service method.</param> /// /// <returns>The response from the UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> UpdateBudgetResponse UpdateBudget(UpdateBudgetRequest request); /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget 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 UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> Task<UpdateBudgetResponse> UpdateBudgetAsync(UpdateBudgetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateBudgetAction /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction service method.</param> /// /// <returns>The response from the UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> UpdateBudgetActionResponse UpdateBudgetAction(UpdateBudgetActionRequest request); /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction 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 UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> Task<UpdateBudgetActionResponse> UpdateBudgetActionAsync(UpdateBudgetActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNotification /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification service method.</param> /// /// <returns>The response from the UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> UpdateNotificationResponse UpdateNotification(UpdateNotificationRequest request); /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification 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 UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> Task<UpdateNotificationResponse> UpdateNotificationAsync(UpdateNotificationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateSubscriber /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber service method.</param> /// /// <returns>The response from the UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> UpdateSubscriberResponse UpdateSubscriber(UpdateSubscriberRequest request); /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber 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 UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> Task<UpdateSubscriberResponse> UpdateSubscriberAsync(UpdateSubscriberRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,767
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.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.Budgets.Model; using Amazon.Budgets.Model.Internal.MarshallTransformations; using Amazon.Budgets.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Budgets { /// <summary> /// Implementation for accessing Budgets /// /// Use the Amazon Web Services Budgets API to plan your service usage, service costs, /// and instance reservations. This API reference provides descriptions, syntax, and usage /// examples for each of the actions and data types for the Amazon Web Services Budgets /// feature. /// /// /// <para> /// Budgets provide you with a way to see the following information: /// </para> /// <ul> <li> /// <para> /// How close your plan is to your budgeted amount or to the free tier limits /// </para> /// </li> <li> /// <para> /// Your usage-to-date, including how much you've used of your Reserved Instances (RIs) /// </para> /// </li> <li> /// <para> /// Your current estimated charges from Amazon Web Services, and how much your predicted /// usage will accrue in charges by the end of the month /// </para> /// </li> <li> /// <para> /// How much of your budget has been used /// </para> /// </li> </ul> /// <para> /// Amazon Web Services updates your budget status several times a day. Budgets track /// your unblended costs, subscriptions, refunds, and RIs. You can create the following /// types of budgets: /// </para> /// <ul> <li> /// <para> /// <b>Cost budgets</b> - Plan how much you want to spend on a service. /// </para> /// </li> <li> /// <para> /// <b>Usage budgets</b> - Plan how much you want to use one or more services. /// </para> /// </li> <li> /// <para> /// <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts /// when your RI usage falls below that threshold. This lets you see if your RIs are unused /// or under-utilized. /// </para> /// </li> <li> /// <para> /// <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when /// the number of your instance hours that are covered by RIs fall below that threshold. /// This lets you see how much of your instance usage is covered by a reservation. /// </para> /// </li> </ul> /// <para> /// Service Endpoint /// </para> /// /// <para> /// The Amazon Web Services Budgets API provides the following endpoint: /// </para> /// <ul> <li> /// <para> /// https://budgets.amazonaws.com /// </para> /// </li> </ul> /// <para> /// For information about costs that are associated with the Amazon Web Services Budgets /// API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web /// Services Cost Management Pricing</a>. /// </para> /// </summary> public partial class AmazonBudgetsClient : AmazonServiceClient, IAmazonBudgets { private static IServiceMetadata serviceMetadata = new AmazonBudgetsMetadata(); #region Constructors /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBudgetsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBudgetsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(AmazonBudgetsConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBudgetsClient(AWSCredentials credentials) : this(credentials, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBudgetsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Credentials and an /// AmazonBudgetsClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(AWSCredentials credentials, AmazonBudgetsConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBudgetsConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBudgetsClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBudgetsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBudgetsConfig()) { } /// <summary> /// Constructs AmazonBudgetsClient 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 AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBudgetsConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBudgetsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBudgetsClient 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 AmazonBudgetsClient Configuration Object</param> public AmazonBudgetsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBudgetsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IBudgetsPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBudgetsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BudgetsPaginatorFactory(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 AmazonBudgetsEndpointResolver()); } /// <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 CreateBudget internal virtual CreateBudgetResponse CreateBudget(CreateBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetResponseUnmarshaller.Instance; return Invoke<CreateBudgetResponse>(request, options); } /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget 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 CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> public virtual Task<CreateBudgetResponse> CreateBudgetAsync(CreateBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetResponseUnmarshaller.Instance; return InvokeAsync<CreateBudgetResponse>(request, options, cancellationToken); } #endregion #region CreateBudgetAction internal virtual CreateBudgetActionResponse CreateBudgetAction(CreateBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetActionResponseUnmarshaller.Instance; return Invoke<CreateBudgetActionResponse>(request, options); } /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction 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 CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> public virtual Task<CreateBudgetActionResponse> CreateBudgetActionAsync(CreateBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<CreateBudgetActionResponse>(request, options, cancellationToken); } #endregion #region CreateNotification internal virtual CreateNotificationResponse CreateNotification(CreateNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationResponseUnmarshaller.Instance; return Invoke<CreateNotificationResponse>(request, options); } /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification 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 CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> public virtual Task<CreateNotificationResponse> CreateNotificationAsync(CreateNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationResponseUnmarshaller.Instance; return InvokeAsync<CreateNotificationResponse>(request, options, cancellationToken); } #endregion #region CreateSubscriber internal virtual CreateSubscriberResponse CreateSubscriber(CreateSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubscriberResponseUnmarshaller.Instance; return Invoke<CreateSubscriberResponse>(request, options); } /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber 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 CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> public virtual Task<CreateSubscriberResponse> CreateSubscriberAsync(CreateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubscriberResponseUnmarshaller.Instance; return InvokeAsync<CreateSubscriberResponse>(request, options, cancellationToken); } #endregion #region DeleteBudget internal virtual DeleteBudgetResponse DeleteBudget(DeleteBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetResponseUnmarshaller.Instance; return Invoke<DeleteBudgetResponse>(request, options); } /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget 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 DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> public virtual Task<DeleteBudgetResponse> DeleteBudgetAsync(DeleteBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetResponseUnmarshaller.Instance; return InvokeAsync<DeleteBudgetResponse>(request, options, cancellationToken); } #endregion #region DeleteBudgetAction internal virtual DeleteBudgetActionResponse DeleteBudgetAction(DeleteBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetActionResponseUnmarshaller.Instance; return Invoke<DeleteBudgetActionResponse>(request, options); } /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction 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 DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> public virtual Task<DeleteBudgetActionResponse> DeleteBudgetActionAsync(DeleteBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<DeleteBudgetActionResponse>(request, options, cancellationToken); } #endregion #region DeleteNotification internal virtual DeleteNotificationResponse DeleteNotification(DeleteNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationResponseUnmarshaller.Instance; return Invoke<DeleteNotificationResponse>(request, options); } /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification 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 DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> public virtual Task<DeleteNotificationResponse> DeleteNotificationAsync(DeleteNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationResponseUnmarshaller.Instance; return InvokeAsync<DeleteNotificationResponse>(request, options, cancellationToken); } #endregion #region DeleteSubscriber internal virtual DeleteSubscriberResponse DeleteSubscriber(DeleteSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubscriberResponseUnmarshaller.Instance; return Invoke<DeleteSubscriberResponse>(request, options); } /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber 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 DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> public virtual Task<DeleteSubscriberResponse> DeleteSubscriberAsync(DeleteSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubscriberResponseUnmarshaller.Instance; return InvokeAsync<DeleteSubscriberResponse>(request, options, cancellationToken); } #endregion #region DescribeBudget internal virtual DescribeBudgetResponse DescribeBudget(DescribeBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetResponseUnmarshaller.Instance; return Invoke<DescribeBudgetResponse>(request, options); } /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget 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 DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> public virtual Task<DescribeBudgetResponse> DescribeBudgetAsync(DescribeBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetAction internal virtual DescribeBudgetActionResponse DescribeBudgetAction(DescribeBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionResponse>(request, options); } /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction 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 DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> public virtual Task<DescribeBudgetActionResponse> DescribeBudgetActionAsync(DescribeBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetActionHistories internal virtual DescribeBudgetActionHistoriesResponse DescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionHistoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionHistoriesResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionHistoriesResponse>(request, options); } /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories 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 DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> public virtual Task<DescribeBudgetActionHistoriesResponse> DescribeBudgetActionHistoriesAsync(DescribeBudgetActionHistoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionHistoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionHistoriesResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionHistoriesResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetActionsForAccount internal virtual DescribeBudgetActionsForAccountResponse DescribeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForAccountResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionsForAccountResponse>(request, options); } /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount 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 DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> public virtual Task<DescribeBudgetActionsForAccountResponse> DescribeBudgetActionsForAccountAsync(DescribeBudgetActionsForAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForAccountResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionsForAccountResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetActionsForBudget internal virtual DescribeBudgetActionsForBudgetResponse DescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForBudgetResponseUnmarshaller.Instance; return Invoke<DescribeBudgetActionsForBudgetResponse>(request, options); } /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget 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 DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> public virtual Task<DescribeBudgetActionsForBudgetResponse> DescribeBudgetActionsForBudgetAsync(DescribeBudgetActionsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetActionsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetActionsForBudgetResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetActionsForBudgetResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetNotificationsForAccount internal virtual DescribeBudgetNotificationsForAccountResponse DescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetNotificationsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetNotificationsForAccountResponseUnmarshaller.Instance; return Invoke<DescribeBudgetNotificationsForAccountResponse>(request, options); } /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount 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 DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> public virtual Task<DescribeBudgetNotificationsForAccountResponse> DescribeBudgetNotificationsForAccountAsync(DescribeBudgetNotificationsForAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetNotificationsForAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetNotificationsForAccountResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetNotificationsForAccountResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgetPerformanceHistory internal virtual DescribeBudgetPerformanceHistoryResponse DescribeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetPerformanceHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetPerformanceHistoryResponseUnmarshaller.Instance; return Invoke<DescribeBudgetPerformanceHistoryResponse>(request, options); } /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory 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 DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> public virtual Task<DescribeBudgetPerformanceHistoryResponse> DescribeBudgetPerformanceHistoryAsync(DescribeBudgetPerformanceHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetPerformanceHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetPerformanceHistoryResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetPerformanceHistoryResponse>(request, options, cancellationToken); } #endregion #region DescribeBudgets internal virtual DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return Invoke<DescribeBudgetsResponse>(request, options); } /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets 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 DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> public virtual Task<DescribeBudgetsResponse> DescribeBudgetsAsync(DescribeBudgetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return InvokeAsync<DescribeBudgetsResponse>(request, options, cancellationToken); } #endregion #region DescribeNotificationsForBudget internal virtual DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return Invoke<DescribeNotificationsForBudgetResponse>(request, options); } /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget 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 DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> public virtual Task<DescribeNotificationsForBudgetResponse> DescribeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return InvokeAsync<DescribeNotificationsForBudgetResponse>(request, options, cancellationToken); } #endregion #region DescribeSubscribersForNotification internal virtual DescribeSubscribersForNotificationResponse DescribeSubscribersForNotification(DescribeSubscribersForNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubscribersForNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubscribersForNotificationResponseUnmarshaller.Instance; return Invoke<DescribeSubscribersForNotificationResponse>(request, options); } /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification 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 DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> public virtual Task<DescribeSubscribersForNotificationResponse> DescribeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubscribersForNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubscribersForNotificationResponseUnmarshaller.Instance; return InvokeAsync<DescribeSubscribersForNotificationResponse>(request, options, cancellationToken); } #endregion #region ExecuteBudgetAction internal virtual ExecuteBudgetActionResponse ExecuteBudgetAction(ExecuteBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteBudgetActionResponseUnmarshaller.Instance; return Invoke<ExecuteBudgetActionResponse>(request, options); } /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction 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 ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> public virtual Task<ExecuteBudgetActionResponse> ExecuteBudgetActionAsync(ExecuteBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<ExecuteBudgetActionResponse>(request, options, cancellationToken); } #endregion #region UpdateBudget internal virtual UpdateBudgetResponse UpdateBudget(UpdateBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetResponseUnmarshaller.Instance; return Invoke<UpdateBudgetResponse>(request, options); } /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget 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 UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> public virtual Task<UpdateBudgetResponse> UpdateBudgetAsync(UpdateBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetResponseUnmarshaller.Instance; return InvokeAsync<UpdateBudgetResponse>(request, options, cancellationToken); } #endregion #region UpdateBudgetAction internal virtual UpdateBudgetActionResponse UpdateBudgetAction(UpdateBudgetActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetActionResponseUnmarshaller.Instance; return Invoke<UpdateBudgetActionResponse>(request, options); } /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction 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 UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> public virtual Task<UpdateBudgetActionResponse> UpdateBudgetActionAsync(UpdateBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBudgetActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBudgetActionResponseUnmarshaller.Instance; return InvokeAsync<UpdateBudgetActionResponse>(request, options, cancellationToken); } #endregion #region UpdateNotification internal virtual UpdateNotificationResponse UpdateNotification(UpdateNotificationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationResponseUnmarshaller.Instance; return Invoke<UpdateNotificationResponse>(request, options); } /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification 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 UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> public virtual Task<UpdateNotificationResponse> UpdateNotificationAsync(UpdateNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationResponseUnmarshaller.Instance; return InvokeAsync<UpdateNotificationResponse>(request, options, cancellationToken); } #endregion #region UpdateSubscriber internal virtual UpdateSubscriberResponse UpdateSubscriber(UpdateSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return Invoke<UpdateSubscriberResponse>(request, options); } /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber 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 UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> public virtual Task<UpdateSubscriberResponse> UpdateSubscriberAsync(UpdateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return InvokeAsync<UpdateSubscriberResponse>(request, options, cancellationToken); } #endregion } }
1,626
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the budgets-2016-10-20.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Budgets.Model; namespace Amazon.Budgets { /// <summary> /// Interface for accessing Budgets /// /// Use the Amazon Web Services Budgets API to plan your service usage, service costs, /// and instance reservations. This API reference provides descriptions, syntax, and usage /// examples for each of the actions and data types for the Amazon Web Services Budgets /// feature. /// /// /// <para> /// Budgets provide you with a way to see the following information: /// </para> /// <ul> <li> /// <para> /// How close your plan is to your budgeted amount or to the free tier limits /// </para> /// </li> <li> /// <para> /// Your usage-to-date, including how much you've used of your Reserved Instances (RIs) /// </para> /// </li> <li> /// <para> /// Your current estimated charges from Amazon Web Services, and how much your predicted /// usage will accrue in charges by the end of the month /// </para> /// </li> <li> /// <para> /// How much of your budget has been used /// </para> /// </li> </ul> /// <para> /// Amazon Web Services updates your budget status several times a day. Budgets track /// your unblended costs, subscriptions, refunds, and RIs. You can create the following /// types of budgets: /// </para> /// <ul> <li> /// <para> /// <b>Cost budgets</b> - Plan how much you want to spend on a service. /// </para> /// </li> <li> /// <para> /// <b>Usage budgets</b> - Plan how much you want to use one or more services. /// </para> /// </li> <li> /// <para> /// <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts /// when your RI usage falls below that threshold. This lets you see if your RIs are unused /// or under-utilized. /// </para> /// </li> <li> /// <para> /// <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when /// the number of your instance hours that are covered by RIs fall below that threshold. /// This lets you see how much of your instance usage is covered by a reservation. /// </para> /// </li> </ul> /// <para> /// Service Endpoint /// </para> /// /// <para> /// The Amazon Web Services Budgets API provides the following endpoint: /// </para> /// <ul> <li> /// <para> /// https://budgets.amazonaws.com /// </para> /// </li> </ul> /// <para> /// For information about costs that are associated with the Amazon Web Services Budgets /// API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web /// Services Cost Management Pricing</a>. /// </para> /// </summary> public partial interface IAmazonBudgets : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBudgetsPaginatorFactory Paginators { get; } #endif #region CreateBudget /// <summary> /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudget 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 CreateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudget">REST API Reference for CreateBudget Operation</seealso> Task<CreateBudgetResponse> CreateBudgetAsync(CreateBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateBudgetAction /// <summary> /// Creates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBudgetAction 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 CreateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateBudgetAction">REST API Reference for CreateBudgetAction Operation</seealso> Task<CreateBudgetActionResponse> CreateBudgetActionAsync(CreateBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateNotification /// <summary> /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotification 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 CreateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateNotification">REST API Reference for CreateNotification Operation</seealso> Task<CreateNotificationResponse> CreateNotificationAsync(CreateNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateSubscriber /// <summary> /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSubscriber 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 CreateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.CreationLimitExceededException"> /// You've exceeded the notification or subscriber limit. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/CreateSubscriber">REST API Reference for CreateSubscriber Operation</seealso> Task<CreateSubscriberResponse> CreateSubscriberAsync(CreateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteBudget /// <summary> /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudget 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 DeleteBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudget">REST API Reference for DeleteBudget Operation</seealso> Task<DeleteBudgetResponse> DeleteBudgetAsync(DeleteBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteBudgetAction /// <summary> /// Deletes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBudgetAction 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 DeleteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteBudgetAction">REST API Reference for DeleteBudgetAction Operation</seealso> Task<DeleteBudgetActionResponse> DeleteBudgetActionAsync(DeleteBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNotification /// <summary> /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotification 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 DeleteNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteNotification">REST API Reference for DeleteNotification Operation</seealso> Task<DeleteNotificationResponse> DeleteNotificationAsync(DeleteNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteSubscriber /// <summary> /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSubscriber 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 DeleteSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DeleteSubscriber">REST API Reference for DeleteSubscriber Operation</seealso> Task<DeleteSubscriberResponse> DeleteSubscriberAsync(DeleteSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudget /// <summary> /// Describes a budget. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudget 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 DescribeBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudget">REST API Reference for DescribeBudget Operation</seealso> Task<DescribeBudgetResponse> DescribeBudgetAsync(DescribeBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetAction /// <summary> /// Describes a budget action detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetAction 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 DescribeBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetAction">REST API Reference for DescribeBudgetAction Operation</seealso> Task<DescribeBudgetActionResponse> DescribeBudgetActionAsync(DescribeBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetActionHistories /// <summary> /// Describes a budget action history detail. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionHistories 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 DescribeBudgetActionHistories service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionHistories">REST API Reference for DescribeBudgetActionHistories Operation</seealso> Task<DescribeBudgetActionHistoriesResponse> DescribeBudgetActionHistoriesAsync(DescribeBudgetActionHistoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetActionsForAccount /// <summary> /// Describes all of the budget actions for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForAccount 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 DescribeBudgetActionsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForAccount">REST API Reference for DescribeBudgetActionsForAccount Operation</seealso> Task<DescribeBudgetActionsForAccountResponse> DescribeBudgetActionsForAccountAsync(DescribeBudgetActionsForAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetActionsForBudget /// <summary> /// Describes all of the budget actions for a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetActionsForBudget 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 DescribeBudgetActionsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetActionsForBudget">REST API Reference for DescribeBudgetActionsForBudget Operation</seealso> Task<DescribeBudgetActionsForBudgetResponse> DescribeBudgetActionsForBudgetAsync(DescribeBudgetActionsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetNotificationsForAccount /// <summary> /// Lists the budget names and notifications that are associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetNotificationsForAccount 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 DescribeBudgetNotificationsForAccount service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetNotificationsForAccount">REST API Reference for DescribeBudgetNotificationsForAccount Operation</seealso> Task<DescribeBudgetNotificationsForAccountResponse> DescribeBudgetNotificationsForAccountAsync(DescribeBudgetNotificationsForAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgetPerformanceHistory /// <summary> /// Describes the history for <code>DAILY</code>, <code>MONTHLY</code>, and <code>QUARTERLY</code> /// budgets. Budget history isn't available for <code>ANNUAL</code> budgets. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgetPerformanceHistory 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 DescribeBudgetPerformanceHistory service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgetPerformanceHistory">REST API Reference for DescribeBudgetPerformanceHistory Operation</seealso> Task<DescribeBudgetPerformanceHistoryResponse> DescribeBudgetPerformanceHistoryAsync(DescribeBudgetPerformanceHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeBudgets /// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets 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 DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeBudgets">REST API Reference for DescribeBudgets Operation</seealso> Task<DescribeBudgetsResponse> DescribeBudgetsAsync(DescribeBudgetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeNotificationsForBudget /// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget 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 DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeNotificationsForBudget">REST API Reference for DescribeNotificationsForBudget Operation</seealso> Task<DescribeNotificationsForBudgetResponse> DescribeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeSubscribersForNotification /// <summary> /// Lists the subscribers that are associated with a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSubscribersForNotification 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 DescribeSubscribersForNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/DescribeSubscribersForNotification">REST API Reference for DescribeSubscribersForNotification Operation</seealso> Task<DescribeSubscribersForNotificationResponse> DescribeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExecuteBudgetAction /// <summary> /// Executes a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteBudgetAction 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 ExecuteBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/ExecuteBudgetAction">REST API Reference for ExecuteBudgetAction Operation</seealso> Task<ExecuteBudgetActionResponse> ExecuteBudgetActionAsync(ExecuteBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateBudget /// <summary> /// Updates a budget. You can change every part of a budget except for the <code>budgetName</code> /// and the <code>calculatedSpend</code>. When you modify a budget, the <code>calculatedSpend</code> /// drops to zero until Amazon Web Services has new usage data to use for forecasting. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudget 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 UpdateBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudget">REST API Reference for UpdateBudget Operation</seealso> Task<UpdateBudgetResponse> UpdateBudgetAsync(UpdateBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateBudgetAction /// <summary> /// Updates a budget action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBudgetAction 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 UpdateBudgetAction service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ResourceLockedException"> /// The request was received and recognized by the server, but the server rejected that /// particular method for the requested resource. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateBudgetAction">REST API Reference for UpdateBudgetAction Operation</seealso> Task<UpdateBudgetActionResponse> UpdateBudgetActionAsync(UpdateBudgetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNotification /// <summary> /// Updates a notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotification 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 UpdateNotification service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateNotification">REST API Reference for UpdateNotification Operation</seealso> Task<UpdateNotificationResponse> UpdateNotificationAsync(UpdateNotificationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateSubscriber /// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber 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 UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> /// <exception cref="Amazon.Budgets.Model.ThrottlingException"> /// The number of API requests has exceeded the maximum allowed API request throttling /// limit for the account. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/budgets-2016-10-20/UpdateSubscriber">REST API Reference for UpdateSubscriber Operation</seealso> Task<UpdateSubscriberResponse> UpdateSubscriberAsync(UpdateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,033
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.Budgets")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Budgets. AWS Budget service will provide create/get/list/update/delete budgets for cost management. ")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Budgets. AWS Budget service will provide create/get/list/update/delete budgets for cost management. ")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Budgets. AWS Budget service will provide create/get/list/update/delete budgets for cost management. ")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Budgets. AWS Budget service will provide create/get/list/update/delete budgets for cost management. ")] #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.100.147")] [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 acm-2015-12-08.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CertificateManager.Internal; namespace Amazon.CertificateManager { /// <summary> /// Configuration for accessing Amazon CertificateManager service /// </summary> [AWSSignerType("v4")] public partial class AmazonCertificateManagerConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.101.136"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCertificateManagerConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCertificateManagerDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "acm"; this.EndpointProvider = new AmazonCertificateManagerEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "acm"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2015-12-08"; } } /// <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 acm-2015-12-08.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CertificateManager { /// <summary> /// Configuration for accessing Amazon CertificateManager service /// </summary> public static class AmazonCertificateManagerDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CertificateManager /// </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 acm-2015-12-08.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CertificateManager.Endpoints { /// <summary> /// Contains parameters used for resolving CertificateManager endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CertificateManagerEndpointProvider and CertificateManagerEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CertificateManagerEndpointParameters : EndpointParameters { /// <summary> /// CertificateManagerEndpointParameters constructor /// </summary> public CertificateManagerEndpointParameters() { 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 acm-2015-12-08.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CertificateManager { ///<summary> /// Common exception for the CertificateManager service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCertificateManagerException : AmazonServiceException { /// <summary> /// Construct instance of AmazonCertificateManagerException /// </summary> /// <param name="message"></param> public AmazonCertificateManagerException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCertificateManagerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCertificateManagerException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCertificateManagerException /// </summary> /// <param name="innerException"></param> public AmazonCertificateManagerException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCertificateManagerException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCertificateManagerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCertificateManagerException /// </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 AmazonCertificateManagerException(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 AmazonCertificateManagerException 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 AmazonCertificateManagerException(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 acm-2015-12-08.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CertificateManager { /// <summary> /// Constants used for properties of type CertificateStatus. /// </summary> public class CertificateStatus : ConstantClass { /// <summary> /// Constant EXPIRED for CertificateStatus /// </summary> public static readonly CertificateStatus EXPIRED = new CertificateStatus("EXPIRED"); /// <summary> /// Constant FAILED for CertificateStatus /// </summary> public static readonly CertificateStatus FAILED = new CertificateStatus("FAILED"); /// <summary> /// Constant INACTIVE for CertificateStatus /// </summary> public static readonly CertificateStatus INACTIVE = new CertificateStatus("INACTIVE"); /// <summary> /// Constant ISSUED for CertificateStatus /// </summary> public static readonly CertificateStatus ISSUED = new CertificateStatus("ISSUED"); /// <summary> /// Constant PENDING_VALIDATION for CertificateStatus /// </summary> public static readonly CertificateStatus PENDING_VALIDATION = new CertificateStatus("PENDING_VALIDATION"); /// <summary> /// Constant REVOKED for CertificateStatus /// </summary> public static readonly CertificateStatus REVOKED = new CertificateStatus("REVOKED"); /// <summary> /// Constant VALIDATION_TIMED_OUT for CertificateStatus /// </summary> public static readonly CertificateStatus VALIDATION_TIMED_OUT = new CertificateStatus("VALIDATION_TIMED_OUT"); /// <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 CertificateStatus(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 CertificateStatus FindValue(string value) { return FindValue<CertificateStatus>(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 CertificateStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CertificateTransparencyLoggingPreference. /// </summary> public class CertificateTransparencyLoggingPreference : ConstantClass { /// <summary> /// Constant DISABLED for CertificateTransparencyLoggingPreference /// </summary> public static readonly CertificateTransparencyLoggingPreference DISABLED = new CertificateTransparencyLoggingPreference("DISABLED"); /// <summary> /// Constant ENABLED for CertificateTransparencyLoggingPreference /// </summary> public static readonly CertificateTransparencyLoggingPreference ENABLED = new CertificateTransparencyLoggingPreference("ENABLED"); /// <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 CertificateTransparencyLoggingPreference(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 CertificateTransparencyLoggingPreference FindValue(string value) { return FindValue<CertificateTransparencyLoggingPreference>(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 CertificateTransparencyLoggingPreference(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CertificateType. /// </summary> public class CertificateType : ConstantClass { /// <summary> /// Constant AMAZON_ISSUED for CertificateType /// </summary> public static readonly CertificateType AMAZON_ISSUED = new CertificateType("AMAZON_ISSUED"); /// <summary> /// Constant IMPORTED for CertificateType /// </summary> public static readonly CertificateType IMPORTED = new CertificateType("IMPORTED"); /// <summary> /// Constant PRIVATE for CertificateType /// </summary> public static readonly CertificateType PRIVATE = new CertificateType("PRIVATE"); /// <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 CertificateType(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 CertificateType FindValue(string value) { return FindValue<CertificateType>(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 CertificateType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DomainStatus. /// </summary> public class DomainStatus : ConstantClass { /// <summary> /// Constant FAILED for DomainStatus /// </summary> public static readonly DomainStatus FAILED = new DomainStatus("FAILED"); /// <summary> /// Constant PENDING_VALIDATION for DomainStatus /// </summary> public static readonly DomainStatus PENDING_VALIDATION = new DomainStatus("PENDING_VALIDATION"); /// <summary> /// Constant SUCCESS for DomainStatus /// </summary> public static readonly DomainStatus SUCCESS = new DomainStatus("SUCCESS"); /// <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 DomainStatus(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 DomainStatus FindValue(string value) { return FindValue<DomainStatus>(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 DomainStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ExtendedKeyUsageName. /// </summary> public class ExtendedKeyUsageName : ConstantClass { /// <summary> /// Constant ANY for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName ANY = new ExtendedKeyUsageName("ANY"); /// <summary> /// Constant CODE_SIGNING for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName CODE_SIGNING = new ExtendedKeyUsageName("CODE_SIGNING"); /// <summary> /// Constant CUSTOM for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName CUSTOM = new ExtendedKeyUsageName("CUSTOM"); /// <summary> /// Constant EMAIL_PROTECTION for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName EMAIL_PROTECTION = new ExtendedKeyUsageName("EMAIL_PROTECTION"); /// <summary> /// Constant IPSEC_END_SYSTEM for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName IPSEC_END_SYSTEM = new ExtendedKeyUsageName("IPSEC_END_SYSTEM"); /// <summary> /// Constant IPSEC_TUNNEL for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName IPSEC_TUNNEL = new ExtendedKeyUsageName("IPSEC_TUNNEL"); /// <summary> /// Constant IPSEC_USER for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName IPSEC_USER = new ExtendedKeyUsageName("IPSEC_USER"); /// <summary> /// Constant NONE for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName NONE = new ExtendedKeyUsageName("NONE"); /// <summary> /// Constant OCSP_SIGNING for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName OCSP_SIGNING = new ExtendedKeyUsageName("OCSP_SIGNING"); /// <summary> /// Constant TIME_STAMPING for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName TIME_STAMPING = new ExtendedKeyUsageName("TIME_STAMPING"); /// <summary> /// Constant TLS_WEB_CLIENT_AUTHENTICATION for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName TLS_WEB_CLIENT_AUTHENTICATION = new ExtendedKeyUsageName("TLS_WEB_CLIENT_AUTHENTICATION"); /// <summary> /// Constant TLS_WEB_SERVER_AUTHENTICATION for ExtendedKeyUsageName /// </summary> public static readonly ExtendedKeyUsageName TLS_WEB_SERVER_AUTHENTICATION = new ExtendedKeyUsageName("TLS_WEB_SERVER_AUTHENTICATION"); /// <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 ExtendedKeyUsageName(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 ExtendedKeyUsageName FindValue(string value) { return FindValue<ExtendedKeyUsageName>(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 ExtendedKeyUsageName(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type FailureReason. /// </summary> public class FailureReason : ConstantClass { /// <summary> /// Constant ADDITIONAL_VERIFICATION_REQUIRED for FailureReason /// </summary> public static readonly FailureReason ADDITIONAL_VERIFICATION_REQUIRED = new FailureReason("ADDITIONAL_VERIFICATION_REQUIRED"); /// <summary> /// Constant CAA_ERROR for FailureReason /// </summary> public static readonly FailureReason CAA_ERROR = new FailureReason("CAA_ERROR"); /// <summary> /// Constant DOMAIN_NOT_ALLOWED for FailureReason /// </summary> public static readonly FailureReason DOMAIN_NOT_ALLOWED = new FailureReason("DOMAIN_NOT_ALLOWED"); /// <summary> /// Constant DOMAIN_VALIDATION_DENIED for FailureReason /// </summary> public static readonly FailureReason DOMAIN_VALIDATION_DENIED = new FailureReason("DOMAIN_VALIDATION_DENIED"); /// <summary> /// Constant INVALID_PUBLIC_DOMAIN for FailureReason /// </summary> public static readonly FailureReason INVALID_PUBLIC_DOMAIN = new FailureReason("INVALID_PUBLIC_DOMAIN"); /// <summary> /// Constant NO_AVAILABLE_CONTACTS for FailureReason /// </summary> public static readonly FailureReason NO_AVAILABLE_CONTACTS = new FailureReason("NO_AVAILABLE_CONTACTS"); /// <summary> /// Constant OTHER for FailureReason /// </summary> public static readonly FailureReason OTHER = new FailureReason("OTHER"); /// <summary> /// Constant PCA_ACCESS_DENIED for FailureReason /// </summary> public static readonly FailureReason PCA_ACCESS_DENIED = new FailureReason("PCA_ACCESS_DENIED"); /// <summary> /// Constant PCA_INVALID_ARGS for FailureReason /// </summary> public static readonly FailureReason PCA_INVALID_ARGS = new FailureReason("PCA_INVALID_ARGS"); /// <summary> /// Constant PCA_INVALID_ARN for FailureReason /// </summary> public static readonly FailureReason PCA_INVALID_ARN = new FailureReason("PCA_INVALID_ARN"); /// <summary> /// Constant PCA_INVALID_DURATION for FailureReason /// </summary> public static readonly FailureReason PCA_INVALID_DURATION = new FailureReason("PCA_INVALID_DURATION"); /// <summary> /// Constant PCA_INVALID_STATE for FailureReason /// </summary> public static readonly FailureReason PCA_INVALID_STATE = new FailureReason("PCA_INVALID_STATE"); /// <summary> /// Constant PCA_LIMIT_EXCEEDED for FailureReason /// </summary> public static readonly FailureReason PCA_LIMIT_EXCEEDED = new FailureReason("PCA_LIMIT_EXCEEDED"); /// <summary> /// Constant PCA_NAME_CONSTRAINTS_VALIDATION for FailureReason /// </summary> public static readonly FailureReason PCA_NAME_CONSTRAINTS_VALIDATION = new FailureReason("PCA_NAME_CONSTRAINTS_VALIDATION"); /// <summary> /// Constant PCA_REQUEST_FAILED for FailureReason /// </summary> public static readonly FailureReason PCA_REQUEST_FAILED = new FailureReason("PCA_REQUEST_FAILED"); /// <summary> /// Constant PCA_RESOURCE_NOT_FOUND for FailureReason /// </summary> public static readonly FailureReason PCA_RESOURCE_NOT_FOUND = new FailureReason("PCA_RESOURCE_NOT_FOUND"); /// <summary> /// Constant SLR_NOT_FOUND for FailureReason /// </summary> public static readonly FailureReason SLR_NOT_FOUND = new FailureReason("SLR_NOT_FOUND"); /// <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 FailureReason(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 FailureReason FindValue(string value) { return FindValue<FailureReason>(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 FailureReason(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type KeyAlgorithm. /// </summary> public class KeyAlgorithm : ConstantClass { /// <summary> /// Constant EC_prime256v1 for KeyAlgorithm /// </summary> public static readonly KeyAlgorithm EC_prime256v1 = new KeyAlgorithm("EC_prime256v1"); /// <summary> /// Constant EC_secp384r1 for KeyAlgorithm /// </summary> public static readonly KeyAlgorithm EC_secp384r1 = new KeyAlgorithm("EC_secp384r1"); /// <summary> /// Constant EC_secp521r1 for KeyAlgorithm /// </summary> public static readonly KeyAlgorithm EC_secp521r1 = new KeyAlgorithm("EC_secp521r1"); /// <summary> /// Constant RSA_1024 for KeyAlgorithm /// </summary> public static readonly KeyAlgorithm RSA_1024 = new KeyAlgorithm("RSA_1024"); /// <summary> /// Constant RSA_2048 for KeyAlgorithm /// </summary> public static readonly KeyAlgorithm RSA_2048 = new KeyAlgorithm("RSA_2048"); /// <summary> /// Constant RSA_3072 for KeyAlgorithm /// </summary> public static readonly KeyAlgorithm RSA_3072 = new KeyAlgorithm("RSA_3072"); /// <summary> /// Constant RSA_4096 for KeyAlgorithm /// </summary> public static readonly KeyAlgorithm RSA_4096 = new KeyAlgorithm("RSA_4096"); /// <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 KeyAlgorithm(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 KeyAlgorithm FindValue(string value) { return FindValue<KeyAlgorithm>(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 KeyAlgorithm(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type KeyUsageName. /// </summary> public class KeyUsageName : ConstantClass { /// <summary> /// Constant ANY for KeyUsageName /// </summary> public static readonly KeyUsageName ANY = new KeyUsageName("ANY"); /// <summary> /// Constant CERTIFICATE_SIGNING for KeyUsageName /// </summary> public static readonly KeyUsageName CERTIFICATE_SIGNING = new KeyUsageName("CERTIFICATE_SIGNING"); /// <summary> /// Constant CRL_SIGNING for KeyUsageName /// </summary> public static readonly KeyUsageName CRL_SIGNING = new KeyUsageName("CRL_SIGNING"); /// <summary> /// Constant CUSTOM for KeyUsageName /// </summary> public static readonly KeyUsageName CUSTOM = new KeyUsageName("CUSTOM"); /// <summary> /// Constant DATA_ENCIPHERMENT for KeyUsageName /// </summary> public static readonly KeyUsageName DATA_ENCIPHERMENT = new KeyUsageName("DATA_ENCIPHERMENT"); /// <summary> /// Constant DECIPHER_ONLY for KeyUsageName /// </summary> public static readonly KeyUsageName DECIPHER_ONLY = new KeyUsageName("DECIPHER_ONLY"); /// <summary> /// Constant DIGITAL_SIGNATURE for KeyUsageName /// </summary> public static readonly KeyUsageName DIGITAL_SIGNATURE = new KeyUsageName("DIGITAL_SIGNATURE"); /// <summary> /// Constant ENCIPHER_ONLY for KeyUsageName /// </summary> public static readonly KeyUsageName ENCIPHER_ONLY = new KeyUsageName("ENCIPHER_ONLY"); /// <summary> /// Constant KEY_AGREEMENT for KeyUsageName /// </summary> public static readonly KeyUsageName KEY_AGREEMENT = new KeyUsageName("KEY_AGREEMENT"); /// <summary> /// Constant KEY_ENCIPHERMENT for KeyUsageName /// </summary> public static readonly KeyUsageName KEY_ENCIPHERMENT = new KeyUsageName("KEY_ENCIPHERMENT"); /// <summary> /// Constant NON_REPUDIATION for KeyUsageName /// </summary> public static readonly KeyUsageName NON_REPUDIATION = new KeyUsageName("NON_REPUDIATION"); /// <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 KeyUsageName(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 KeyUsageName FindValue(string value) { return FindValue<KeyUsageName>(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 KeyUsageName(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RecordType. /// </summary> public class RecordType : ConstantClass { /// <summary> /// Constant CNAME for RecordType /// </summary> public static readonly RecordType CNAME = new RecordType("CNAME"); /// <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 RecordType(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 RecordType FindValue(string value) { return FindValue<RecordType>(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 RecordType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RenewalEligibility. /// </summary> public class RenewalEligibility : ConstantClass { /// <summary> /// Constant ELIGIBLE for RenewalEligibility /// </summary> public static readonly RenewalEligibility ELIGIBLE = new RenewalEligibility("ELIGIBLE"); /// <summary> /// Constant INELIGIBLE for RenewalEligibility /// </summary> public static readonly RenewalEligibility INELIGIBLE = new RenewalEligibility("INELIGIBLE"); /// <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 RenewalEligibility(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 RenewalEligibility FindValue(string value) { return FindValue<RenewalEligibility>(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 RenewalEligibility(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RenewalStatus. /// </summary> public class RenewalStatus : ConstantClass { /// <summary> /// Constant FAILED for RenewalStatus /// </summary> public static readonly RenewalStatus FAILED = new RenewalStatus("FAILED"); /// <summary> /// Constant PENDING_AUTO_RENEWAL for RenewalStatus /// </summary> public static readonly RenewalStatus PENDING_AUTO_RENEWAL = new RenewalStatus("PENDING_AUTO_RENEWAL"); /// <summary> /// Constant PENDING_VALIDATION for RenewalStatus /// </summary> public static readonly RenewalStatus PENDING_VALIDATION = new RenewalStatus("PENDING_VALIDATION"); /// <summary> /// Constant SUCCESS for RenewalStatus /// </summary> public static readonly RenewalStatus SUCCESS = new RenewalStatus("SUCCESS"); /// <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 RenewalStatus(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 RenewalStatus FindValue(string value) { return FindValue<RenewalStatus>(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 RenewalStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RevocationReason. /// </summary> public class RevocationReason : ConstantClass { /// <summary> /// Constant A_A_COMPROMISE for RevocationReason /// </summary> public static readonly RevocationReason A_A_COMPROMISE = new RevocationReason("A_A_COMPROMISE"); /// <summary> /// Constant AFFILIATION_CHANGED for RevocationReason /// </summary> public static readonly RevocationReason AFFILIATION_CHANGED = new RevocationReason("AFFILIATION_CHANGED"); /// <summary> /// Constant CA_COMPROMISE for RevocationReason /// </summary> public static readonly RevocationReason CA_COMPROMISE = new RevocationReason("CA_COMPROMISE"); /// <summary> /// Constant CERTIFICATE_HOLD for RevocationReason /// </summary> public static readonly RevocationReason CERTIFICATE_HOLD = new RevocationReason("CERTIFICATE_HOLD"); /// <summary> /// Constant CESSATION_OF_OPERATION for RevocationReason /// </summary> public static readonly RevocationReason CESSATION_OF_OPERATION = new RevocationReason("CESSATION_OF_OPERATION"); /// <summary> /// Constant KEY_COMPROMISE for RevocationReason /// </summary> public static readonly RevocationReason KEY_COMPROMISE = new RevocationReason("KEY_COMPROMISE"); /// <summary> /// Constant PRIVILEGE_WITHDRAWN for RevocationReason /// </summary> public static readonly RevocationReason PRIVILEGE_WITHDRAWN = new RevocationReason("PRIVILEGE_WITHDRAWN"); /// <summary> /// Constant REMOVE_FROM_CRL for RevocationReason /// </summary> public static readonly RevocationReason REMOVE_FROM_CRL = new RevocationReason("REMOVE_FROM_CRL"); /// <summary> /// Constant SUPERCEDED for RevocationReason /// </summary> public static readonly RevocationReason SUPERCEDED = new RevocationReason("SUPERCEDED"); /// <summary> /// Constant UNSPECIFIED for RevocationReason /// </summary> public static readonly RevocationReason UNSPECIFIED = new RevocationReason("UNSPECIFIED"); /// <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 RevocationReason(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 RevocationReason FindValue(string value) { return FindValue<RevocationReason>(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 RevocationReason(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SortBy. /// </summary> public class SortBy : ConstantClass { /// <summary> /// Constant CREATED_AT for SortBy /// </summary> public static readonly SortBy CREATED_AT = new SortBy("CREATED_AT"); /// <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 SortBy(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 SortBy FindValue(string value) { return FindValue<SortBy>(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 SortBy(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SortOrder. /// </summary> public class SortOrder : ConstantClass { /// <summary> /// Constant ASCENDING for SortOrder /// </summary> public static readonly SortOrder ASCENDING = new SortOrder("ASCENDING"); /// <summary> /// Constant DESCENDING for SortOrder /// </summary> public static readonly SortOrder DESCENDING = new SortOrder("DESCENDING"); /// <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 SortOrder(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 SortOrder FindValue(string value) { return FindValue<SortOrder>(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 SortOrder(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ValidationMethod. /// </summary> public class ValidationMethod : ConstantClass { /// <summary> /// Constant DNS for ValidationMethod /// </summary> public static readonly ValidationMethod DNS = new ValidationMethod("DNS"); /// <summary> /// Constant EMAIL for ValidationMethod /// </summary> public static readonly ValidationMethod EMAIL = new ValidationMethod("EMAIL"); /// <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 ValidationMethod(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 ValidationMethod FindValue(string value) { return FindValue<ValidationMethod>(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 ValidationMethod(string value) { return FindValue(value); } } }
992
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Internal { /// <summary> /// Amazon CertificateManager endpoint provider. /// Resolves endpoint for given set of CertificateManagerEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCertificateManagerEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CertificateManagerEndpointParameters /// </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://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { if (Equals("aws-us-gov", GetAttr(refs["PartitionResult"], "name"))) { return new Endpoint(Interpolate(@"https://acm.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://acm-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://acm.{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://acm.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
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 acm-2015-12-08.normal.json service model. */ using System; using Amazon.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CertificateManager.Endpoints; #pragma warning disable 1591 namespace Amazon.CertificateManager.Internal { /// <summary> /// Amazon CertificateManager endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CertificateManager service requests. /// Collects values for CertificateManagerEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CertificateManagerEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCertificateManagerEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCertificateManagerConfig)requestContext.ClientConfig; var result = new CertificateManagerEndpointParameters(); 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 acm-2015-12-08.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CertificateManager.Internal { /// <summary> /// Service metadata for Amazon CertificateManager service /// </summary> public partial class AmazonCertificateManagerMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "ACM"; } } /// <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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// You do not have access required to perform this action. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonCertificateManagerException { /// <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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the AddTagsToCertificate operation. /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> public partial class AddTagsToCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains the ARN of the ACM certificate to which the tag is to be applied. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The key-value pair that defines the tag. The tag value is optional. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
111
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the AddTagsToCertificate operation. /// </summary> public partial class AddTagsToCertificateResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CertificateManager { /// <summary> /// Base class for CertificateManager operation requests. /// </summary> public partial class AmazonCertificateManagerRequest : 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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Contains metadata about an ACM certificate. This structure is returned in the response /// to a <a>DescribeCertificate</a> request. /// </summary> public partial class CertificateDetail { private string _certificateArn; private string _certificateAuthorityArn; private DateTime? _createdAt; private string _domainName; private List<DomainValidation> _domainValidationOptions = new List<DomainValidation>(); private List<ExtendedKeyUsage> _extendedKeyUsages = new List<ExtendedKeyUsage>(); private FailureReason _failureReason; private DateTime? _importedAt; private List<string> _inUseBy = new List<string>(); private DateTime? _issuedAt; private string _issuer; private KeyAlgorithm _keyAlgorithm; private List<KeyUsage> _keyUsages = new List<KeyUsage>(); private DateTime? _notAfter; private DateTime? _notBefore; private CertificateOptions _options; private RenewalEligibility _renewalEligibility; private RenewalSummary _renewalSummary; private RevocationReason _revocationReason; private DateTime? _revokedAt; private string _serial; private string _signatureAlgorithm; private CertificateStatus _status; private string _subject; private List<string> _subjectAlternativeNames = new List<string>(); private CertificateType _type; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, /// see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) of the private certificate authority (CA) that issued /// the certificate. This has the following format: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string CertificateAuthorityArn { get { return this._certificateAuthorityArn; } set { this._certificateAuthorityArn = value; } } // Check to see if CertificateAuthorityArn property is set internal bool IsSetCertificateAuthorityArn() { return this._certificateAuthorityArn != null; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time at which the certificate was requested. /// </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 DomainName. /// <para> /// The fully qualified domain name for the certificate, such as www.example.com or example.com. /// </para> /// </summary> [AWSProperty(Min=1, Max=253)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property DomainValidationOptions. /// <para> /// Contains information about the initial validation of each domain name that occurs /// as a result of the <a>RequestCertificate</a> request. This field exists only when /// the certificate type is <code>AMAZON_ISSUED</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public List<DomainValidation> DomainValidationOptions { get { return this._domainValidationOptions; } set { this._domainValidationOptions = value; } } // Check to see if DomainValidationOptions property is set internal bool IsSetDomainValidationOptions() { return this._domainValidationOptions != null && this._domainValidationOptions.Count > 0; } /// <summary> /// Gets and sets the property ExtendedKeyUsages. /// <para> /// Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies /// a purpose for which the certificate public key can be used and consists of a name /// and an object identifier (OID). /// </para> /// </summary> public List<ExtendedKeyUsage> ExtendedKeyUsages { get { return this._extendedKeyUsages; } set { this._extendedKeyUsages = value; } } // Check to see if ExtendedKeyUsages property is set internal bool IsSetExtendedKeyUsages() { return this._extendedKeyUsages != null && this._extendedKeyUsages.Count > 0; } /// <summary> /// Gets and sets the property FailureReason. /// <para> /// The reason the certificate request failed. This value exists only when the certificate /// status is <code>FAILED</code>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed">Certificate /// Request Failed</a> in the <i>Certificate Manager User Guide</i>. /// </para> /// </summary> public FailureReason FailureReason { get { return this._failureReason; } set { this._failureReason = value; } } // Check to see if FailureReason property is set internal bool IsSetFailureReason() { return this._failureReason != null; } /// <summary> /// Gets and sets the property ImportedAt. /// <para> /// The date and time when the certificate was imported. This value exists only when the /// certificate type is <code>IMPORTED</code>. /// </para> /// </summary> public DateTime ImportedAt { get { return this._importedAt.GetValueOrDefault(); } set { this._importedAt = value; } } // Check to see if ImportedAt property is set internal bool IsSetImportedAt() { return this._importedAt.HasValue; } /// <summary> /// Gets and sets the property InUseBy. /// <para> /// A list of ARNs for the Amazon Web Services resources that are using the certificate. /// A certificate can be used by multiple Amazon Web Services resources. /// </para> /// </summary> public List<string> InUseBy { get { return this._inUseBy; } set { this._inUseBy = value; } } // Check to see if InUseBy property is set internal bool IsSetInUseBy() { return this._inUseBy != null && this._inUseBy.Count > 0; } /// <summary> /// Gets and sets the property IssuedAt. /// <para> /// The time at which the certificate was issued. This value exists only when the certificate /// type is <code>AMAZON_ISSUED</code>. /// </para> /// </summary> public DateTime IssuedAt { get { return this._issuedAt.GetValueOrDefault(); } set { this._issuedAt = value; } } // Check to see if IssuedAt property is set internal bool IsSetIssuedAt() { return this._issuedAt.HasValue; } /// <summary> /// Gets and sets the property Issuer. /// <para> /// The name of the certificate authority that issued and signed the certificate. /// </para> /// </summary> public string Issuer { get { return this._issuer; } set { this._issuer = value; } } // Check to see if Issuer property is set internal bool IsSetIssuer() { return this._issuer != null; } /// <summary> /// Gets and sets the property KeyAlgorithm. /// <para> /// The algorithm that was used to generate the public-private key pair. /// </para> /// </summary> public KeyAlgorithm KeyAlgorithm { get { return this._keyAlgorithm; } set { this._keyAlgorithm = value; } } // Check to see if KeyAlgorithm property is set internal bool IsSetKeyAlgorithm() { return this._keyAlgorithm != null; } /// <summary> /// Gets and sets the property KeyUsages. /// <para> /// A list of Key Usage X.509 v3 extension objects. Each object is a string value that /// identifies the purpose of the public key contained in the certificate. Possible extension /// values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more. /// </para> /// </summary> public List<KeyUsage> KeyUsages { get { return this._keyUsages; } set { this._keyUsages = value; } } // Check to see if KeyUsages property is set internal bool IsSetKeyUsages() { return this._keyUsages != null && this._keyUsages.Count > 0; } /// <summary> /// Gets and sets the property NotAfter. /// <para> /// The time after which the certificate is not valid. /// </para> /// </summary> public DateTime NotAfter { get { return this._notAfter.GetValueOrDefault(); } set { this._notAfter = value; } } // Check to see if NotAfter property is set internal bool IsSetNotAfter() { return this._notAfter.HasValue; } /// <summary> /// Gets and sets the property NotBefore. /// <para> /// The time before which the certificate is not valid. /// </para> /// </summary> public DateTime NotBefore { get { return this._notBefore.GetValueOrDefault(); } set { this._notBefore = value; } } // Check to see if NotBefore property is set internal bool IsSetNotBefore() { return this._notBefore.HasValue; } /// <summary> /// Gets and sets the property Options. /// <para> /// Value that specifies whether to add the certificate to a transparency log. Certificate /// transparency makes it possible to detect SSL certificates that have been mistakenly /// or maliciously issued. A browser might respond to certificate that has not been logged /// by showing an error message. The logs are cryptographically secure. /// </para> /// </summary> public CertificateOptions Options { get { return this._options; } set { this._options = value; } } // Check to see if Options property is set internal bool IsSetOptions() { return this._options != null; } /// <summary> /// Gets and sets the property RenewalEligibility. /// <para> /// Specifies whether the certificate is eligible for renewal. At this time, only exported /// private certificates can be renewed with the <a>RenewCertificate</a> command. /// </para> /// </summary> public RenewalEligibility RenewalEligibility { get { return this._renewalEligibility; } set { this._renewalEligibility = value; } } // Check to see if RenewalEligibility property is set internal bool IsSetRenewalEligibility() { return this._renewalEligibility != null; } /// <summary> /// Gets and sets the property RenewalSummary. /// <para> /// Contains information about the status of ACM's <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for the certificate. This field exists only when the certificate type /// is <code>AMAZON_ISSUED</code>. /// </para> /// </summary> public RenewalSummary RenewalSummary { get { return this._renewalSummary; } set { this._renewalSummary = value; } } // Check to see if RenewalSummary property is set internal bool IsSetRenewalSummary() { return this._renewalSummary != null; } /// <summary> /// Gets and sets the property RevocationReason. /// <para> /// The reason the certificate was revoked. This value exists only when the certificate /// status is <code>REVOKED</code>. /// </para> /// </summary> public RevocationReason RevocationReason { get { return this._revocationReason; } set { this._revocationReason = value; } } // Check to see if RevocationReason property is set internal bool IsSetRevocationReason() { return this._revocationReason != null; } /// <summary> /// Gets and sets the property RevokedAt. /// <para> /// The time at which the certificate was revoked. This value exists only when the certificate /// status is <code>REVOKED</code>. /// </para> /// </summary> public DateTime RevokedAt { get { return this._revokedAt.GetValueOrDefault(); } set { this._revokedAt = value; } } // Check to see if RevokedAt property is set internal bool IsSetRevokedAt() { return this._revokedAt.HasValue; } /// <summary> /// Gets and sets the property Serial. /// <para> /// The serial number of the certificate. /// </para> /// </summary> public string Serial { get { return this._serial; } set { this._serial = value; } } // Check to see if Serial property is set internal bool IsSetSerial() { return this._serial != null; } /// <summary> /// Gets and sets the property SignatureAlgorithm. /// <para> /// The algorithm that was used to sign the certificate. /// </para> /// </summary> public string SignatureAlgorithm { get { return this._signatureAlgorithm; } set { this._signatureAlgorithm = value; } } // Check to see if SignatureAlgorithm property is set internal bool IsSetSignatureAlgorithm() { return this._signatureAlgorithm != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the certificate. /// </para> /// /// <para> /// A certificate enters status PENDING_VALIDATION upon being requested, unless it fails /// for any of the reasons given in the troubleshooting topic <a href="https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting-failed.html">Certificate /// request fails</a>. ACM makes repeated attempts to validate a certificate for 72 hours /// and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, /// delete the request, correct the issue with <a href="https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html">Email /// validation</a>, and try again. If validation succeeds, the certificate enters status /// ISSUED. /// </para> /// </summary> public CertificateStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Subject. /// <para> /// The name of the entity that is associated with the public key contained in the certificate. /// </para> /// </summary> public string Subject { get { return this._subject; } set { this._subject = value; } } // Check to see if Subject property is set internal bool IsSetSubject() { return this._subject != null; } /// <summary> /// Gets and sets the property SubjectAlternativeNames. /// <para> /// One or more domain names (subject alternative names) included in the certificate. /// This list contains the domain names that are bound to the public key that is contained /// in the certificate. The subject alternative names include the canonical domain name /// (CN) of the certificate and additional domain names that can be used to connect to /// the website. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> SubjectAlternativeNames { get { return this._subjectAlternativeNames; } set { this._subjectAlternativeNames = value; } } // Check to see if SubjectAlternativeNames property is set internal bool IsSetSubjectAlternativeNames() { return this._subjectAlternativeNames != null && this._subjectAlternativeNames.Count > 0; } /// <summary> /// Gets and sets the property Type. /// <para> /// The source of the certificate. For certificates provided by ACM, this value is <code>AMAZON_ISSUED</code>. /// For certificates that you imported with <a>ImportCertificate</a>, this value is <code>IMPORTED</code>. /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for imported certificates. For more information about the differences /// between certificates that you import and those that ACM provides, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// </para> /// </summary> public CertificateType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
585
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Structure that contains options for your certificate. Currently, you can use this /// only to specify whether to opt in to or out of certificate transparency logging. Some /// browsers require that public certificates issued for your domain be recorded in a /// log. Certificates that are not logged typically generate a browser error. Transparency /// makes it possible for you to detect SSL/TLS certificates that have been mistakenly /// or maliciously issued for your domain. For general information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency">Certificate /// Transparency Logging</a>. /// </summary> public partial class CertificateOptions { private CertificateTransparencyLoggingPreference _certificateTransparencyLoggingPreference; /// <summary> /// Gets and sets the property CertificateTransparencyLoggingPreference. /// <para> /// You can opt out of certificate transparency logging by specifying the <code>DISABLED</code> /// option. Opt in by specifying <code>ENABLED</code>. /// </para> /// </summary> public CertificateTransparencyLoggingPreference CertificateTransparencyLoggingPreference { get { return this._certificateTransparencyLoggingPreference; } set { this._certificateTransparencyLoggingPreference = value; } } // Check to see if CertificateTransparencyLoggingPreference property is set internal bool IsSetCertificateTransparencyLoggingPreference() { return this._certificateTransparencyLoggingPreference != null; } } }
64
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This structure is returned in the response object of <a>ListCertificates</a> action. /// </summary> public partial class CertificateSummary { private string _certificateArn; private DateTime? _createdAt; private string _domainName; private bool? _exported; private List<string> _extendedKeyUsages = new List<string>(); private bool? _hasAdditionalSubjectAlternativeNames; private DateTime? _importedAt; private bool? _inUse; private DateTime? _issuedAt; private KeyAlgorithm _keyAlgorithm; private List<string> _keyUsages = new List<string>(); private DateTime? _notAfter; private DateTime? _notBefore; private RenewalEligibility _renewalEligibility; private DateTime? _revokedAt; private CertificateStatus _status; private List<string> _subjectAlternativeNameSummaries = new List<string>(); private CertificateType _type; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// Amazon Resource Name (ARN) of the certificate. This is of the form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time at which the certificate was requested. /// </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 DomainName. /// <para> /// Fully qualified domain name (FQDN), such as www.example.com or example.com, for the /// certificate. /// </para> /// </summary> [AWSProperty(Min=1, Max=253)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property Exported. /// <para> /// Indicates whether the certificate has been exported. This value exists only when the /// certificate type is <code>PRIVATE</code>. /// </para> /// </summary> public bool Exported { get { return this._exported.GetValueOrDefault(); } set { this._exported = value; } } // Check to see if Exported property is set internal bool IsSetExported() { return this._exported.HasValue; } /// <summary> /// Gets and sets the property ExtendedKeyUsages. /// <para> /// Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies /// a purpose for which the certificate public key can be used and consists of a name /// and an object identifier (OID). /// </para> /// </summary> public List<string> ExtendedKeyUsages { get { return this._extendedKeyUsages; } set { this._extendedKeyUsages = value; } } // Check to see if ExtendedKeyUsages property is set internal bool IsSetExtendedKeyUsages() { return this._extendedKeyUsages != null && this._extendedKeyUsages.Count > 0; } /// <summary> /// Gets and sets the property HasAdditionalSubjectAlternativeNames. /// <para> /// When called by <a href="https://docs.aws.amazon.com/acm/latestAPIReference/API_ListCertificates.html">ListCertificates</a>, /// indicates whether the full list of subject alternative names has been included in /// the response. If false, the response includes all of the subject alternative names /// included in the certificate. If true, the response only includes the first 100 subject /// alternative names included in the certificate. To display the full list of subject /// alternative names, use <a href="https://docs.aws.amazon.com/acm/latestAPIReference/API_DescribeCertificate.html">DescribeCertificate</a>. /// </para> /// </summary> public bool HasAdditionalSubjectAlternativeNames { get { return this._hasAdditionalSubjectAlternativeNames.GetValueOrDefault(); } set { this._hasAdditionalSubjectAlternativeNames = value; } } // Check to see if HasAdditionalSubjectAlternativeNames property is set internal bool IsSetHasAdditionalSubjectAlternativeNames() { return this._hasAdditionalSubjectAlternativeNames.HasValue; } /// <summary> /// Gets and sets the property ImportedAt. /// <para> /// The date and time when the certificate was imported. This value exists only when the /// certificate type is <code>IMPORTED</code>. /// </para> /// </summary> public DateTime ImportedAt { get { return this._importedAt.GetValueOrDefault(); } set { this._importedAt = value; } } // Check to see if ImportedAt property is set internal bool IsSetImportedAt() { return this._importedAt.HasValue; } /// <summary> /// Gets and sets the property InUse. /// <para> /// Indicates whether the certificate is currently in use by any Amazon Web Services resources. /// </para> /// </summary> public bool InUse { get { return this._inUse.GetValueOrDefault(); } set { this._inUse = value; } } // Check to see if InUse property is set internal bool IsSetInUse() { return this._inUse.HasValue; } /// <summary> /// Gets and sets the property IssuedAt. /// <para> /// The time at which the certificate was issued. This value exists only when the certificate /// type is <code>AMAZON_ISSUED</code>. /// </para> /// </summary> public DateTime IssuedAt { get { return this._issuedAt.GetValueOrDefault(); } set { this._issuedAt = value; } } // Check to see if IssuedAt property is set internal bool IsSetIssuedAt() { return this._issuedAt.HasValue; } /// <summary> /// Gets and sets the property KeyAlgorithm. /// <para> /// The algorithm that was used to generate the public-private key pair. /// </para> /// </summary> public KeyAlgorithm KeyAlgorithm { get { return this._keyAlgorithm; } set { this._keyAlgorithm = value; } } // Check to see if KeyAlgorithm property is set internal bool IsSetKeyAlgorithm() { return this._keyAlgorithm != null; } /// <summary> /// Gets and sets the property KeyUsages. /// <para> /// A list of Key Usage X.509 v3 extension objects. Each object is a string value that /// identifies the purpose of the public key contained in the certificate. Possible extension /// values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more. /// </para> /// </summary> public List<string> KeyUsages { get { return this._keyUsages; } set { this._keyUsages = value; } } // Check to see if KeyUsages property is set internal bool IsSetKeyUsages() { return this._keyUsages != null && this._keyUsages.Count > 0; } /// <summary> /// Gets and sets the property NotAfter. /// <para> /// The time after which the certificate is not valid. /// </para> /// </summary> public DateTime NotAfter { get { return this._notAfter.GetValueOrDefault(); } set { this._notAfter = value; } } // Check to see if NotAfter property is set internal bool IsSetNotAfter() { return this._notAfter.HasValue; } /// <summary> /// Gets and sets the property NotBefore. /// <para> /// The time before which the certificate is not valid. /// </para> /// </summary> public DateTime NotBefore { get { return this._notBefore.GetValueOrDefault(); } set { this._notBefore = value; } } // Check to see if NotBefore property is set internal bool IsSetNotBefore() { return this._notBefore.HasValue; } /// <summary> /// Gets and sets the property RenewalEligibility. /// <para> /// Specifies whether the certificate is eligible for renewal. At this time, only exported /// private certificates can be renewed with the <a>RenewCertificate</a> command. /// </para> /// </summary> public RenewalEligibility RenewalEligibility { get { return this._renewalEligibility; } set { this._renewalEligibility = value; } } // Check to see if RenewalEligibility property is set internal bool IsSetRenewalEligibility() { return this._renewalEligibility != null; } /// <summary> /// Gets and sets the property RevokedAt. /// <para> /// The time at which the certificate was revoked. This value exists only when the certificate /// status is <code>REVOKED</code>. /// </para> /// </summary> public DateTime RevokedAt { get { return this._revokedAt.GetValueOrDefault(); } set { this._revokedAt = value; } } // Check to see if RevokedAt property is set internal bool IsSetRevokedAt() { return this._revokedAt.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the certificate. /// </para> /// /// <para> /// A certificate enters status PENDING_VALIDATION upon being requested, unless it fails /// for any of the reasons given in the troubleshooting topic <a href="https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting-failed.html">Certificate /// request fails</a>. ACM makes repeated attempts to validate a certificate for 72 hours /// and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, /// delete the request, correct the issue with <a href="https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html">Email /// validation</a>, and try again. If validation succeeds, the certificate enters status /// ISSUED. /// </para> /// </summary> public CertificateStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property SubjectAlternativeNameSummaries. /// <para> /// One or more domain names (subject alternative names) included in the certificate. /// This list contains the domain names that are bound to the public key that is contained /// in the certificate. The subject alternative names include the canonical domain name /// (CN) of the certificate and additional domain names that can be used to connect to /// the website. /// </para> /// /// <para> /// When called by <a href="https://docs.aws.amazon.com/acm/latestAPIReference/API_ListCertificates.html">ListCertificates</a>, /// this parameter will only return the first 100 subject alternative names included in /// the certificate. To display the full list of subject alternative names, use <a href="https://docs.aws.amazon.com/acm/latestAPIReference/API_DescribeCertificate.html">DescribeCertificate</a>. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> SubjectAlternativeNameSummaries { get { return this._subjectAlternativeNameSummaries; } set { this._subjectAlternativeNameSummaries = value; } } // Check to see if SubjectAlternativeNameSummaries property is set internal bool IsSetSubjectAlternativeNameSummaries() { return this._subjectAlternativeNameSummaries != null && this._subjectAlternativeNameSummaries.Count > 0; } /// <summary> /// Gets and sets the property Type. /// <para> /// The source of the certificate. For certificates provided by ACM, this value is <code>AMAZON_ISSUED</code>. /// For certificates that you imported with <a>ImportCertificate</a>, this value is <code>IMPORTED</code>. /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for imported certificates. For more information about the differences /// between certificates that you import and those that ACM provides, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// </para> /// </summary> public CertificateType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
434
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConflictException : AmazonCertificateManagerException { /// <summary> /// Constructs a new ConflictException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConflictException(string message) : base(message) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConflictException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="innerException"></param> public ConflictException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConflictException /// </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 ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConflictException(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 ConflictException 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 ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the DeleteCertificate operation. /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> public partial class DeleteCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public DeleteCertificateRequest() { } /// <summary> /// Instantiates DeleteCertificateRequest with the parameterized properties /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> public DeleteCertificateRequest(string certificateArn) { _certificateArn = certificateArn; } /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains the ARN of the ACM certificate to be deleted. This must be of /// the form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } } }
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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the DeleteCertificate operation. /// </summary> public partial class DeleteCertificateResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the DescribeCertificate operation. /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> public partial class DescribeCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public DescribeCertificateRequest() { } /// <summary> /// Instantiates DescribeCertificateRequest with the parameterized properties /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> public DescribeCertificateRequest(string certificateArn) { _certificateArn = certificateArn; } /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following /// form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the DescribeCertificate operation. /// </summary> public partial class DescribeCertificateResponse : AmazonWebServiceResponse { private CertificateDetail _certificate; /// <summary> /// Gets and sets the property Certificate. /// <para> /// Metadata about an ACM certificate. /// </para> /// </summary> public CertificateDetail Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Contains information about the validation of each domain name in the certificate. /// </summary> public partial class DomainValidation { private string _domainName; private ResourceRecord _resourceRecord; private string _validationDomain; private List<string> _validationEmails = new List<string>(); private ValidationMethod _validationMethod; private DomainStatus _validationStatus; /// <summary> /// Gets and sets the property DomainName. /// <para> /// A fully qualified domain name (FQDN) in the certificate. For example, <code>www.example.com</code> /// or <code>example.com</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=253)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property ResourceRecord. /// <para> /// Contains the CNAME record that you add to your DNS database for domain validation. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">Use /// DNS to Validate Domain Ownership</a>. /// </para> /// /// <para> /// Note: The CNAME information that you need does not include the name of your domain. /// If you include&#x2028; your domain name in the DNS database CNAME record, validation /// fails.&#x2028; For example, if the name is "_a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com", /// only "_a79865eb4cd1a6ab990a45779b4e0b96" must be used. /// </para> /// </summary> public ResourceRecord ResourceRecord { get { return this._resourceRecord; } set { this._resourceRecord = value; } } // Check to see if ResourceRecord property is set internal bool IsSetResourceRecord() { return this._resourceRecord != null; } /// <summary> /// Gets and sets the property ValidationDomain. /// <para> /// The domain name that ACM used to send domain validation emails. /// </para> /// </summary> [AWSProperty(Min=1, Max=253)] public string ValidationDomain { get { return this._validationDomain; } set { this._validationDomain = value; } } // Check to see if ValidationDomain property is set internal bool IsSetValidationDomain() { return this._validationDomain != null; } /// <summary> /// Gets and sets the property ValidationEmails. /// <para> /// A list of email addresses that ACM used to send domain validation emails. /// </para> /// </summary> public List<string> ValidationEmails { get { return this._validationEmails; } set { this._validationEmails = value; } } // Check to see if ValidationEmails property is set internal bool IsSetValidationEmails() { return this._validationEmails != null && this._validationEmails.Count > 0; } /// <summary> /// Gets and sets the property ValidationMethod. /// <para> /// Specifies the domain validation method. /// </para> /// </summary> public ValidationMethod ValidationMethod { get { return this._validationMethod; } set { this._validationMethod = value; } } // Check to see if ValidationMethod property is set internal bool IsSetValidationMethod() { return this._validationMethod != null; } /// <summary> /// Gets and sets the property ValidationStatus. /// <para> /// The validation status of the domain name. This can be one of the following values: /// </para> /// <ul> <li> /// <para> /// <code>PENDING_VALIDATION</code> /// </para> /// </li> <li> /// <para> /// <code/>SUCCESS /// </para> /// </li> <li> /// <para> /// <code/>FAILED /// </para> /// </li> </ul> /// </summary> public DomainStatus ValidationStatus { get { return this._validationStatus; } set { this._validationStatus = value; } } // Check to see if ValidationStatus property is set internal bool IsSetValidationStatus() { return this._validationStatus != null; } } }
177
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Contains information about the domain names that you want ACM to use to send you emails /// that enable you to validate domain ownership. /// </summary> public partial class DomainValidationOption { private string _domainName; private string _validationDomain; /// <summary> /// Gets and sets the property DomainName. /// <para> /// A fully qualified domain name (FQDN) in the certificate request. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=253)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property ValidationDomain. /// <para> /// The domain name that you want ACM to use to send you validation emails. This domain /// name is the suffix of the email addresses that you want ACM to use. This must be the /// same as the <code>DomainName</code> value or a superdomain of the <code>DomainName</code> /// value. For example, if you request a certificate for <code>testing.example.com</code>, /// you can specify <code>example.com</code> for this value. In that case, ACM sends domain /// validation emails to the following five addresses: /// </para> /// <ul> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true, Min=1, Max=253)] public string ValidationDomain { get { return this._validationDomain; } set { this._validationDomain = value; } } // Check to see if ValidationDomain property is set internal bool IsSetValidationDomain() { return this._validationDomain != null; } } }
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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Object containing expiration events options associated with an Amazon Web Services /// account. /// </summary> public partial class ExpiryEventsConfiguration { private int? _daysBeforeExpiry; /// <summary> /// Gets and sets the property DaysBeforeExpiry. /// <para> /// Specifies the number of days prior to certificate expiration when ACM starts generating /// <code>EventBridge</code> events. ACM sends one event per day per certificate until /// the certificate expires. By default, accounts receive events starting 45 days before /// certificate expiration. /// </para> /// </summary> [AWSProperty(Min=1)] public int DaysBeforeExpiry { get { return this._daysBeforeExpiry.GetValueOrDefault(); } set { this._daysBeforeExpiry = value; } } // Check to see if DaysBeforeExpiry property is set internal bool IsSetDaysBeforeExpiry() { return this._daysBeforeExpiry.HasValue; } } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the ExportCertificate operation. /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> public partial class ExportCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; private MemoryStream _passphrase; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// An Amazon Resource Name (ARN) of the issued certificate. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } /// <summary> /// Gets and sets the property Passphrase. /// <para> /// Passphrase to associate with the encrypted exported private key. /// </para> /// <note> /// <para> /// When creating your passphrase, you can use any ASCII character except #, $, or %. /// </para> /// </note> /// <para> /// If you want to later decrypt the private key, you must have the passphrase. You can /// use the following OpenSSL command to decrypt a private key. After entering the command, /// you are prompted for the passphrase. /// </para> /// /// <para> /// <code>openssl rsa -in encrypted_key.pem -out decrypted_key.pem</code> /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=4, Max=128)] public MemoryStream Passphrase { get { return this._passphrase; } set { this._passphrase = value; } } // Check to see if Passphrase property is set internal bool IsSetPassphrase() { return this._passphrase != null; } } }
109
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the ExportCertificate operation. /// </summary> public partial class ExportCertificateResponse : AmazonWebServiceResponse { private string _certificate; private string _certificateChain; private string _privateKey; /// <summary> /// Gets and sets the property Certificate. /// <para> /// The base64 PEM-encoded certificate. /// </para> /// </summary> [AWSProperty(Min=1, Max=32768)] public string Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// <summary> /// Gets and sets the property CertificateChain. /// <para> /// The base64 PEM-encoded certificate chain. This does not include the certificate that /// you are exporting. /// </para> /// </summary> [AWSProperty(Min=1, Max=2097152)] public string CertificateChain { get { return this._certificateChain; } set { this._certificateChain = value; } } // Check to see if CertificateChain property is set internal bool IsSetCertificateChain() { return this._certificateChain != null; } /// <summary> /// Gets and sets the property PrivateKey. /// <para> /// The encrypted private key associated with the public key in the certificate. The key /// is output in PKCS #8 format and is base64 PEM-encoded. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=524288)] public string PrivateKey { get { return this._privateKey; } set { this._privateKey = value; } } // Check to see if PrivateKey property is set internal bool IsSetPrivateKey() { return this._privateKey != 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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// The Extended Key Usage X.509 v3 extension defines one or more purposes for which the /// public key can be used. This is in addition to or in place of the basic purposes specified /// by the Key Usage extension. /// </summary> public partial class ExtendedKeyUsage { private ExtendedKeyUsageName _name; private string _oid; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of an Extended Key Usage value. /// </para> /// </summary> public ExtendedKeyUsageName Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property OID. /// <para> /// An object identifier (OID) for the extension value. OIDs are strings of numbers separated /// by periods. The following OIDs are defined in RFC 3280 and RFC 5280. /// </para> /// <ul> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.3 (CODE_SIGNING)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.8 (TIME_STAMPING)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.9 (OCSP_SIGNING)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL)</code> /// </para> /// </li> <li> /// <para> /// <code>1.3.6.1.5.5.7.3.7 (IPSEC_USER)</code> /// </para> /// </li> </ul> /// </summary> public string OID { get { return this._oid; } set { this._oid = value; } } // Check to see if OID property is set internal bool IsSetOID() { return this._oid != null; } } }
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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This structure can be used in the <a>ListCertificates</a> action to filter the output /// of the certificate list. /// </summary> public partial class Filters { private List<string> _extendedKeyUsage = new List<string>(); private List<string> _keyTypes = new List<string>(); private List<string> _keyUsage = new List<string>(); /// <summary> /// Gets and sets the property ExtendedKeyUsage. /// <para> /// Specify one or more <a>ExtendedKeyUsage</a> extension values. /// </para> /// </summary> public List<string> ExtendedKeyUsage { get { return this._extendedKeyUsage; } set { this._extendedKeyUsage = value; } } // Check to see if ExtendedKeyUsage property is set internal bool IsSetExtendedKeyUsage() { return this._extendedKeyUsage != null && this._extendedKeyUsage.Count > 0; } /// <summary> /// Gets and sets the property KeyTypes. /// <para> /// Specify one or more algorithms that can be used to generate key pairs. /// </para> /// /// <para> /// Default filtering returns only <code>RSA_1024</code> and <code>RSA_2048</code> certificates /// that have at least one domain. To return other certificate types, provide the desired /// type signatures in a comma-separated list. For example, <code>"keyTypes": ["RSA_2048","RSA_4096"]</code> /// returns both <code>RSA_2048</code> and <code>RSA_4096</code> certificates. /// </para> /// </summary> public List<string> KeyTypes { get { return this._keyTypes; } set { this._keyTypes = value; } } // Check to see if KeyTypes property is set internal bool IsSetKeyTypes() { return this._keyTypes != null && this._keyTypes.Count > 0; } /// <summary> /// Gets and sets the property KeyUsage. /// <para> /// Specify one or more <a>KeyUsage</a> extension values. /// </para> /// </summary> public List<string> KeyUsage { get { return this._keyUsage; } set { this._keyUsage = value; } } // Check to see if KeyUsage property is set internal bool IsSetKeyUsage() { return this._keyUsage != null && this._keyUsage.Count > 0; } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the GetAccountConfiguration operation. /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> public partial class GetAccountConfigurationRequest : AmazonCertificateManagerRequest { } }
39
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the GetAccountConfiguration operation. /// </summary> public partial class GetAccountConfigurationResponse : AmazonWebServiceResponse { private ExpiryEventsConfiguration _expiryEvents; /// <summary> /// Gets and sets the property ExpiryEvents. /// <para> /// Expiration events configuration options associated with the Amazon Web Services account. /// </para> /// </summary> public ExpiryEventsConfiguration ExpiryEvents { get { return this._expiryEvents; } set { this._expiryEvents = value; } } // Check to see if ExpiryEvents property is set internal bool IsSetExpiryEvents() { return this._expiryEvents != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the GetCertificate operation. /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> public partial class GetCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public GetCertificateRequest() { } /// <summary> /// Instantiates GetCertificateRequest with the parameterized properties /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> public GetCertificateRequest(string certificateArn) { _certificateArn = certificateArn; } /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains a certificate ARN in the following format: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the GetCertificate operation. /// </summary> public partial class GetCertificateResponse : AmazonWebServiceResponse { private string _certificate; private string _certificateChain; /// <summary> /// Gets and sets the property Certificate. /// <para> /// The ACM-issued certificate corresponding to the ARN specified as input. /// </para> /// </summary> [AWSProperty(Min=1, Max=32768)] public string Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// <summary> /// Gets and sets the property CertificateChain. /// <para> /// Certificates forming the requested certificate's chain of trust. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. /// </para> /// </summary> [AWSProperty(Min=1, Max=2097152)] public string CertificateChain { get { return this._certificateChain; } set { this._certificateChain = value; } } // Check to see if CertificateChain property is set internal bool IsSetCertificateChain() { return this._certificateChain != null; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the ImportCertificate operation. /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> public partial class ImportCertificateRequest : AmazonCertificateManagerRequest { private MemoryStream _certificate; private string _certificateArn; private MemoryStream _certificateChain; private MemoryStream _privateKey; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property Certificate. /// <para> /// The certificate to import. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=32768)] public MemoryStream Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of an imported certificate to replace. To import a new certificate, /// omit this field. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } /// <summary> /// Gets and sets the property CertificateChain. /// <para> /// The PEM encoded certificate chain. /// </para> /// </summary> [AWSProperty(Min=1, Max=2097152)] public MemoryStream CertificateChain { get { return this._certificateChain; } set { this._certificateChain = value; } } // Check to see if CertificateChain property is set internal bool IsSetCertificateChain() { return this._certificateChain != null; } /// <summary> /// Gets and sets the property PrivateKey. /// <para> /// The private key that matches the public key in the certificate. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=5120)] public MemoryStream PrivateKey { get { return this._privateKey; } set { this._privateKey = value; } } // Check to see if PrivateKey property is set internal bool IsSetPrivateKey() { return this._privateKey != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// One or more resource tags to associate with the imported certificate. /// </para> /// /// <para> /// Note: You cannot apply tags when reimporting a certificate. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
231
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the ImportCertificate operation. /// </summary> public partial class ImportCertificateResponse : AmazonWebServiceResponse { private string _certificateArn; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != 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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// One or more of of request parameters specified is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidArgsException : AmazonCertificateManagerException { /// <summary> /// Constructs a new InvalidArgsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidArgsException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidArgsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidArgsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidArgsException /// </summary> /// <param name="innerException"></param> public InvalidArgsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidArgsException /// </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 InvalidArgsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidArgsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidArgsException(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 InvalidArgsException 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 InvalidArgsException(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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidArnException : AmazonCertificateManagerException { /// <summary> /// Constructs a new InvalidArnException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidArnException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidArnException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidArnException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidArnException /// </summary> /// <param name="innerException"></param> public InvalidArnException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidArnException /// </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 InvalidArnException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidArnException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidArnException(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 InvalidArnException 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 InvalidArnException(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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidDomainValidationOptionsException : AmazonCertificateManagerException { /// <summary> /// Constructs a new InvalidDomainValidationOptionsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidDomainValidationOptionsException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidDomainValidationOptionsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidDomainValidationOptionsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidDomainValidationOptionsException /// </summary> /// <param name="innerException"></param> public InvalidDomainValidationOptionsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidDomainValidationOptionsException /// </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 InvalidDomainValidationOptionsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidDomainValidationOptionsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidDomainValidationOptionsException(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 InvalidDomainValidationOptionsException 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 InvalidDomainValidationOptionsException(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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// An input parameter was invalid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidParameterException : AmazonCertificateManagerException { /// <summary> /// Constructs a new InvalidParameterException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidParameterException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidParameterException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidParameterException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidParameterException /// </summary> /// <param name="innerException"></param> public InvalidParameterException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidParameterException /// </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 InvalidParameterException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidParameterException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidParameterException(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 InvalidParameterException 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 InvalidParameterException(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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Processing has reached an invalid state. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidStateException : AmazonCertificateManagerException { /// <summary> /// Constructs a new InvalidStateException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidStateException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidStateException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="innerException"></param> public InvalidStateException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidStateException /// </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 InvalidStateException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidStateException(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 InvalidStateException 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 InvalidStateException(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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidTagException : AmazonCertificateManagerException { /// <summary> /// Constructs a new InvalidTagException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidTagException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidTagException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidTagException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidTagException /// </summary> /// <param name="innerException"></param> public InvalidTagException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidTagException /// </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 InvalidTagException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidTagException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidTagException(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 InvalidTagException 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 InvalidTagException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// The Key Usage X.509 v3 extension defines the purpose of the public key contained in /// the certificate. /// </summary> public partial class KeyUsage { private KeyUsageName _name; /// <summary> /// Gets and sets the property Name. /// <para> /// A string value that contains a Key Usage extension name. /// </para> /// </summary> public KeyUsageName Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != 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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// An ACM quota has been exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class LimitExceededException : AmazonCertificateManagerException { /// <summary> /// Constructs a new LimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public LimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public LimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="innerException"></param> public LimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the LimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected LimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the ListCertificates operation. /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> public partial class ListCertificatesRequest : AmazonCertificateManagerRequest { private List<string> _certificateStatuses = new List<string>(); private Filters _includes; private int? _maxItems; private string _nextToken; private SortBy _sortBy; private SortOrder _sortOrder; /// <summary> /// Gets and sets the property CertificateStatuses. /// <para> /// Filter the certificate list by status value. /// </para> /// </summary> public List<string> CertificateStatuses { get { return this._certificateStatuses; } set { this._certificateStatuses = value; } } // Check to see if CertificateStatuses property is set internal bool IsSetCertificateStatuses() { return this._certificateStatuses != null && this._certificateStatuses.Count > 0; } /// <summary> /// Gets and sets the property Includes. /// <para> /// Filter the certificate list. For more information, see the <a>Filters</a> structure. /// </para> /// </summary> public Filters Includes { get { return this._includes; } set { this._includes = value; } } // Check to see if Includes property is set internal bool IsSetIncludes() { return this._includes != null; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// Use this parameter when paginating results to specify the maximum number of items /// to return in the response. If additional items exist beyond the number you specify, /// the <code>NextToken</code> element is sent in the response. Use this <code>NextToken</code> /// value in a subsequent request to retrieve additional items. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// Use this parameter only when paginating results and only in a subsequent request after /// you receive a response with truncated results. Set it to the value of <code>NextToken</code> /// from the response you just received. /// </para> /// </summary> [AWSProperty(Min=1, Max=10000)] 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 SortBy. /// <para> /// Specifies the field to sort results by. If you specify <code>SortBy</code>, you must /// also specify <code>SortOrder</code>. /// </para> /// </summary> public SortBy SortBy { get { return this._sortBy; } set { this._sortBy = value; } } // Check to see if SortBy property is set internal bool IsSetSortBy() { return this._sortBy != null; } /// <summary> /// Gets and sets the property SortOrder. /// <para> /// Specifies the order of sorted results. If you specify <code>SortOrder</code>, you /// must also specify <code>SortBy</code>. /// </para> /// </summary> public SortOrder SortOrder { get { return this._sortOrder; } set { this._sortOrder = value; } } // Check to see if SortOrder property is set internal bool IsSetSortOrder() { return this._sortOrder != null; } } }
165
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the ListCertificates operation. /// </summary> public partial class ListCertificatesResponse : AmazonWebServiceResponse { private List<CertificateSummary> _certificateSummaryList = new List<CertificateSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property CertificateSummaryList. /// <para> /// A list of ACM certificates. /// </para> /// </summary> public List<CertificateSummary> CertificateSummaryList { get { return this._certificateSummaryList; } set { this._certificateSummaryList = value; } } // Check to see if CertificateSummaryList property is set internal bool IsSetCertificateSummaryList() { return this._certificateSummaryList != null && this._certificateSummaryList.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// When the list is truncated, this value is present and contains the value to use for /// the <code>NextToken</code> parameter in a subsequent pagination request. /// </para> /// </summary> [AWSProperty(Min=1, Max=10000)] 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; } } }
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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the ListTagsForCertificate operation. /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> public partial class ListTagsForCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains the ARN of the ACM certificate for which you want to list the /// tags. This must have the following form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the ListTagsForCertificate operation. /// </summary> public partial class ListTagsForCertificateResponse : AmazonWebServiceResponse { private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// The key-value pairs that define the applied tags. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
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 acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the PutAccountConfiguration operation. /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> public partial class PutAccountConfigurationRequest : AmazonCertificateManagerRequest { private ExpiryEventsConfiguration _expiryEvents; private string _idempotencyToken; /// <summary> /// Gets and sets the property ExpiryEvents. /// <para> /// Specifies expiration events associated with an account. /// </para> /// </summary> public ExpiryEventsConfiguration ExpiryEvents { get { return this._expiryEvents; } set { this._expiryEvents = value; } } // Check to see if ExpiryEvents property is set internal bool IsSetExpiryEvents() { return this._expiryEvents != null; } /// <summary> /// Gets and sets the property IdempotencyToken. /// <para> /// Customer-chosen string used to distinguish between calls to <code>PutAccountConfiguration</code>. /// Idempotency tokens time out after one hour. If you call <code>PutAccountConfiguration</code> /// multiple times with the same unexpired idempotency token, ACM treats it as the same /// request and returns the original result. If you change the idempotency token for each /// call, ACM treats each call as a new request. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=32)] public string IdempotencyToken { get { return this._idempotencyToken; } set { this._idempotencyToken = value; } } // Check to see if IdempotencyToken property is set internal bool IsSetIdempotencyToken() { return this._idempotencyToken != null; } } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the PutAccountConfiguration operation. /// </summary> public partial class PutAccountConfigurationResponse : AmazonWebServiceResponse { } }
38