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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// ResourceRequirement Marshaller /// </summary> public class ResourceRequirementMarshaller : IRequestMarshaller<ResourceRequirement, 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(ResourceRequirement requestObject, JsonMarshallerContext context) { if(requestObject.IsSetType()) { context.Writer.WritePropertyName("type"); context.Writer.Write(requestObject.Type); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ResourceRequirementMarshaller Instance = new ResourceRequirementMarshaller(); } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceRequirement Object /// </summary> public class ResourceRequirementUnmarshaller : IUnmarshaller<ResourceRequirement, XmlUnmarshallerContext>, IUnmarshaller<ResourceRequirement, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ResourceRequirement IUnmarshaller<ResourceRequirement, 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 ResourceRequirement Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ResourceRequirement unmarshalledObject = new ResourceRequirement(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ResourceRequirementUnmarshaller _instance = new ResourceRequirementUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceRequirementUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// RetryStrategy Marshaller /// </summary> public class RetryStrategyMarshaller : IRequestMarshaller<RetryStrategy, 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(RetryStrategy requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAttempts()) { context.Writer.WritePropertyName("attempts"); context.Writer.Write(requestObject.Attempts); } if(requestObject.IsSetEvaluateOnExit()) { context.Writer.WritePropertyName("evaluateOnExit"); context.Writer.WriteArrayStart(); foreach(var requestObjectEvaluateOnExitListValue in requestObject.EvaluateOnExit) { context.Writer.WriteObjectStart(); var marshaller = EvaluateOnExitMarshaller.Instance; marshaller.Marshall(requestObjectEvaluateOnExitListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static RetryStrategyMarshaller Instance = new RetryStrategyMarshaller(); } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RetryStrategy Object /// </summary> public class RetryStrategyUnmarshaller : IUnmarshaller<RetryStrategy, XmlUnmarshallerContext>, IUnmarshaller<RetryStrategy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> RetryStrategy IUnmarshaller<RetryStrategy, 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 RetryStrategy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; RetryStrategy unmarshalledObject = new RetryStrategy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("attempts", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Attempts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evaluateOnExit", targetDepth)) { var unmarshaller = new ListUnmarshaller<EvaluateOnExit, EvaluateOnExitUnmarshaller>(EvaluateOnExitUnmarshaller.Instance); unmarshalledObject.EvaluateOnExit = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static RetryStrategyUnmarshaller _instance = new RetryStrategyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RetryStrategyUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SchedulingPolicyDetail Object /// </summary> public class SchedulingPolicyDetailUnmarshaller : IUnmarshaller<SchedulingPolicyDetail, XmlUnmarshallerContext>, IUnmarshaller<SchedulingPolicyDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SchedulingPolicyDetail IUnmarshaller<SchedulingPolicyDetail, 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 SchedulingPolicyDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SchedulingPolicyDetail unmarshalledObject = new SchedulingPolicyDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fairsharePolicy", targetDepth)) { var unmarshaller = FairsharePolicyUnmarshaller.Instance; unmarshalledObject.FairsharePolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SchedulingPolicyDetailUnmarshaller _instance = new SchedulingPolicyDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SchedulingPolicyDetailUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SchedulingPolicyListingDetail Object /// </summary> public class SchedulingPolicyListingDetailUnmarshaller : IUnmarshaller<SchedulingPolicyListingDetail, XmlUnmarshallerContext>, IUnmarshaller<SchedulingPolicyListingDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SchedulingPolicyListingDetail IUnmarshaller<SchedulingPolicyListingDetail, 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 SchedulingPolicyListingDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SchedulingPolicyListingDetail unmarshalledObject = new SchedulingPolicyListingDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SchedulingPolicyListingDetailUnmarshaller _instance = new SchedulingPolicyListingDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SchedulingPolicyListingDetailUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Secret Marshaller /// </summary> public class SecretMarshaller : IRequestMarshaller<Secret, 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(Secret requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetValueFrom()) { context.Writer.WritePropertyName("valueFrom"); context.Writer.Write(requestObject.ValueFrom); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SecretMarshaller Instance = new SecretMarshaller(); } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Secret Object /// </summary> public class SecretUnmarshaller : IUnmarshaller<Secret, XmlUnmarshallerContext>, IUnmarshaller<Secret, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Secret IUnmarshaller<Secret, 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 Secret Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Secret unmarshalledObject = new Secret(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("valueFrom", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ValueFrom = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SecretUnmarshaller _instance = new SecretUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SecretUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ServerException Object /// </summary> public class ServerExceptionUnmarshaller : IErrorResponseUnmarshaller<ServerException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServerException 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 ServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ServerException unmarshalledObject = new ServerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ServerExceptionUnmarshaller _instance = new ServerExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServerExceptionUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// ShareAttributes Marshaller /// </summary> public class ShareAttributesMarshaller : IRequestMarshaller<ShareAttributes, 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(ShareAttributes requestObject, JsonMarshallerContext context) { if(requestObject.IsSetShareIdentifier()) { context.Writer.WritePropertyName("shareIdentifier"); context.Writer.Write(requestObject.ShareIdentifier); } if(requestObject.IsSetWeightFactor()) { context.Writer.WritePropertyName("weightFactor"); context.Writer.Write(requestObject.WeightFactor); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ShareAttributesMarshaller Instance = new ShareAttributesMarshaller(); } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ShareAttributes Object /// </summary> public class ShareAttributesUnmarshaller : IUnmarshaller<ShareAttributes, XmlUnmarshallerContext>, IUnmarshaller<ShareAttributes, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ShareAttributes IUnmarshaller<ShareAttributes, 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 ShareAttributes Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ShareAttributes unmarshalledObject = new ShareAttributes(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("shareIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ShareIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("weightFactor", targetDepth)) { var unmarshaller = FloatUnmarshaller.Instance; unmarshalledObject.WeightFactor = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ShareAttributesUnmarshaller _instance = new ShareAttributesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ShareAttributesUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// SubmitJob Request Marshaller /// </summary> public class SubmitJobRequestMarshaller : IMarshaller<IRequest, SubmitJobRequest> , 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((SubmitJobRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SubmitJobRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/submitjob"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetArrayProperties()) { context.Writer.WritePropertyName("arrayProperties"); context.Writer.WriteObjectStart(); var marshaller = ArrayPropertiesMarshaller.Instance; marshaller.Marshall(publicRequest.ArrayProperties, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetContainerOverrides()) { context.Writer.WritePropertyName("containerOverrides"); context.Writer.WriteObjectStart(); var marshaller = ContainerOverridesMarshaller.Instance; marshaller.Marshall(publicRequest.ContainerOverrides, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetDependsOn()) { context.Writer.WritePropertyName("dependsOn"); context.Writer.WriteArrayStart(); foreach(var publicRequestDependsOnListValue in publicRequest.DependsOn) { context.Writer.WriteObjectStart(); var marshaller = JobDependencyMarshaller.Instance; marshaller.Marshall(publicRequestDependsOnListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetEksPropertiesOverride()) { context.Writer.WritePropertyName("eksPropertiesOverride"); context.Writer.WriteObjectStart(); var marshaller = EksPropertiesOverrideMarshaller.Instance; marshaller.Marshall(publicRequest.EksPropertiesOverride, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetJobDefinition()) { context.Writer.WritePropertyName("jobDefinition"); context.Writer.Write(publicRequest.JobDefinition); } if(publicRequest.IsSetJobName()) { context.Writer.WritePropertyName("jobName"); context.Writer.Write(publicRequest.JobName); } if(publicRequest.IsSetJobQueue()) { context.Writer.WritePropertyName("jobQueue"); context.Writer.Write(publicRequest.JobQueue); } if(publicRequest.IsSetNodeOverrides()) { context.Writer.WritePropertyName("nodeOverrides"); context.Writer.WriteObjectStart(); var marshaller = NodeOverridesMarshaller.Instance; marshaller.Marshall(publicRequest.NodeOverrides, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetParameters()) { context.Writer.WritePropertyName("parameters"); context.Writer.WriteObjectStart(); foreach (var publicRequestParametersKvp in publicRequest.Parameters) { context.Writer.WritePropertyName(publicRequestParametersKvp.Key); var publicRequestParametersValue = publicRequestParametersKvp.Value; context.Writer.Write(publicRequestParametersValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetPropagateTags()) { context.Writer.WritePropertyName("propagateTags"); context.Writer.Write(publicRequest.PropagateTags); } if(publicRequest.IsSetRetryStrategy()) { context.Writer.WritePropertyName("retryStrategy"); context.Writer.WriteObjectStart(); var marshaller = RetryStrategyMarshaller.Instance; marshaller.Marshall(publicRequest.RetryStrategy, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSchedulingPriorityOverride()) { context.Writer.WritePropertyName("schedulingPriorityOverride"); context.Writer.Write(publicRequest.SchedulingPriorityOverride); } if(publicRequest.IsSetShareIdentifier()) { context.Writer.WritePropertyName("shareIdentifier"); context.Writer.Write(publicRequest.ShareIdentifier); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTimeout()) { context.Writer.WritePropertyName("timeout"); context.Writer.WriteObjectStart(); var marshaller = JobTimeoutMarshaller.Instance; marshaller.Marshall(publicRequest.Timeout, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static SubmitJobRequestMarshaller _instance = new SubmitJobRequestMarshaller(); internal static SubmitJobRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SubmitJobRequestMarshaller Instance { get { return _instance; } } } }
241
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SubmitJob operation /// </summary> public class SubmitJobResponseUnmarshaller : 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) { SubmitJobResponse response = new SubmitJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobName = 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("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static SubmitJobResponseUnmarshaller _instance = new SubmitJobResponseUnmarshaller(); internal static SubmitJobResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SubmitJobResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// TagResource Request Marshaller /// </summary> public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((TagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; if (!publicRequest.IsSetResourceArn()) throw new AmazonBatchException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/v1/tags/{resourceArn}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); internal static TagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TagResource operation /// </summary> public class TagResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { TagResourceResponse response = new TagResourceResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller(); internal static TagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// TerminateJob Request Marshaller /// </summary> public class TerminateJobRequestMarshaller : IMarshaller<IRequest, TerminateJobRequest> , 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((TerminateJobRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TerminateJobRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/terminatejob"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetJobId()) { context.Writer.WritePropertyName("jobId"); context.Writer.Write(publicRequest.JobId); } if(publicRequest.IsSetReason()) { context.Writer.WritePropertyName("reason"); context.Writer.Write(publicRequest.Reason); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static TerminateJobRequestMarshaller _instance = new TerminateJobRequestMarshaller(); internal static TerminateJobRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TerminateJobRequestMarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TerminateJob operation /// </summary> public class TerminateJobResponseUnmarshaller : 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) { TerminateJobResponse response = new TerminateJobResponse(); 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("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static TerminateJobResponseUnmarshaller _instance = new TerminateJobResponseUnmarshaller(); internal static TerminateJobResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TerminateJobResponseUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Tmpfs Marshaller /// </summary> public class TmpfsMarshaller : IRequestMarshaller<Tmpfs, 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(Tmpfs requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainerPath()) { context.Writer.WritePropertyName("containerPath"); context.Writer.Write(requestObject.ContainerPath); } if(requestObject.IsSetMountOptions()) { context.Writer.WritePropertyName("mountOptions"); context.Writer.WriteArrayStart(); foreach(var requestObjectMountOptionsListValue in requestObject.MountOptions) { context.Writer.Write(requestObjectMountOptionsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetSize()) { context.Writer.WritePropertyName("size"); context.Writer.Write(requestObject.Size); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TmpfsMarshaller Instance = new TmpfsMarshaller(); } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tmpfs Object /// </summary> public class TmpfsUnmarshaller : IUnmarshaller<Tmpfs, XmlUnmarshallerContext>, IUnmarshaller<Tmpfs, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Tmpfs IUnmarshaller<Tmpfs, 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 Tmpfs Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Tmpfs unmarshalledObject = new Tmpfs(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containerPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContainerPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("mountOptions", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.MountOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("size", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Size = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TmpfsUnmarshaller _instance = new TmpfsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TmpfsUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Ulimit Marshaller /// </summary> public class UlimitMarshaller : IRequestMarshaller<Ulimit, 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(Ulimit requestObject, JsonMarshallerContext context) { if(requestObject.IsSetHardLimit()) { context.Writer.WritePropertyName("hardLimit"); context.Writer.Write(requestObject.HardLimit); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetSoftLimit()) { context.Writer.WritePropertyName("softLimit"); context.Writer.Write(requestObject.SoftLimit); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UlimitMarshaller Instance = new UlimitMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Ulimit Object /// </summary> public class UlimitUnmarshaller : IUnmarshaller<Ulimit, XmlUnmarshallerContext>, IUnmarshaller<Ulimit, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Ulimit IUnmarshaller<Ulimit, 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 Ulimit Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Ulimit unmarshalledObject = new Ulimit(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("hardLimit", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.HardLimit = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("softLimit", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.SoftLimit = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UlimitUnmarshaller _instance = new UlimitUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UlimitUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// UntagResource Request Marshaller /// </summary> public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UntagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UntagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetResourceArn()) throw new AmazonBatchException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); if (publicRequest.IsSetTagKeys()) request.ParameterCollection.Add("tagKeys", publicRequest.TagKeys); request.ResourcePath = "/v1/tags/{resourceArn}"; request.UseQueryString = true; return request; } private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller(); internal static UntagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceRequestMarshaller Instance { get { return _instance; } } } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UntagResource operation /// </summary> public class UntagResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UntagResourceResponse response = new UntagResourceResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller(); internal static UntagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// UpdateComputeEnvironment Request Marshaller /// </summary> public class UpdateComputeEnvironmentRequestMarshaller : IMarshaller<IRequest, UpdateComputeEnvironmentRequest> , 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((UpdateComputeEnvironmentRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateComputeEnvironmentRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/updatecomputeenvironment"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetComputeEnvironment()) { context.Writer.WritePropertyName("computeEnvironment"); context.Writer.Write(publicRequest.ComputeEnvironment); } if(publicRequest.IsSetComputeResources()) { context.Writer.WritePropertyName("computeResources"); context.Writer.WriteObjectStart(); var marshaller = ComputeResourceUpdateMarshaller.Instance; marshaller.Marshall(publicRequest.ComputeResources, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetServiceRole()) { context.Writer.WritePropertyName("serviceRole"); context.Writer.Write(publicRequest.ServiceRole); } if(publicRequest.IsSetState()) { context.Writer.WritePropertyName("state"); context.Writer.Write(publicRequest.State); } if(publicRequest.IsSetUnmanagedvCpus()) { context.Writer.WritePropertyName("unmanagedvCpus"); context.Writer.Write(publicRequest.UnmanagedvCpus); } if(publicRequest.IsSetUpdatePolicy()) { context.Writer.WritePropertyName("updatePolicy"); context.Writer.WriteObjectStart(); var marshaller = UpdatePolicyMarshaller.Instance; marshaller.Marshall(publicRequest.UpdatePolicy, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateComputeEnvironmentRequestMarshaller _instance = new UpdateComputeEnvironmentRequestMarshaller(); internal static UpdateComputeEnvironmentRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateComputeEnvironmentRequestMarshaller Instance { get { return _instance; } } } }
141
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateComputeEnvironment operation /// </summary> public class UpdateComputeEnvironmentResponseUnmarshaller : 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) { UpdateComputeEnvironmentResponse response = new UpdateComputeEnvironmentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("computeEnvironmentArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ComputeEnvironmentArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("computeEnvironmentName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ComputeEnvironmentName = 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("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateComputeEnvironmentResponseUnmarshaller _instance = new UpdateComputeEnvironmentResponseUnmarshaller(); internal static UpdateComputeEnvironmentResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateComputeEnvironmentResponseUnmarshaller Instance { get { return _instance; } } } }
120
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// UpdateJobQueue Request Marshaller /// </summary> public class UpdateJobQueueRequestMarshaller : IMarshaller<IRequest, UpdateJobQueueRequest> , 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((UpdateJobQueueRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateJobQueueRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/updatejobqueue"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetComputeEnvironmentOrder()) { context.Writer.WritePropertyName("computeEnvironmentOrder"); context.Writer.WriteArrayStart(); foreach(var publicRequestComputeEnvironmentOrderListValue in publicRequest.ComputeEnvironmentOrder) { context.Writer.WriteObjectStart(); var marshaller = ComputeEnvironmentOrderMarshaller.Instance; marshaller.Marshall(publicRequestComputeEnvironmentOrderListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetJobQueue()) { context.Writer.WritePropertyName("jobQueue"); context.Writer.Write(publicRequest.JobQueue); } if(publicRequest.IsSetPriority()) { context.Writer.WritePropertyName("priority"); context.Writer.Write(publicRequest.Priority); } if(publicRequest.IsSetSchedulingPolicyArn()) { context.Writer.WritePropertyName("schedulingPolicyArn"); context.Writer.Write(publicRequest.SchedulingPolicyArn); } if(publicRequest.IsSetState()) { context.Writer.WritePropertyName("state"); context.Writer.Write(publicRequest.State); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateJobQueueRequestMarshaller _instance = new UpdateJobQueueRequestMarshaller(); internal static UpdateJobQueueRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateJobQueueRequestMarshaller Instance { get { return _instance; } } } }
135
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateJobQueue operation /// </summary> public class UpdateJobQueueResponseUnmarshaller : 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) { UpdateJobQueueResponse response = new UpdateJobQueueResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobQueueArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobQueueArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobQueueName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobQueueName = 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("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateJobQueueResponseUnmarshaller _instance = new UpdateJobQueueResponseUnmarshaller(); internal static UpdateJobQueueResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateJobQueueResponseUnmarshaller Instance { get { return _instance; } } } }
120
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// UpdatePolicy Marshaller /// </summary> public class UpdatePolicyMarshaller : IRequestMarshaller<UpdatePolicy, 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(UpdatePolicy requestObject, JsonMarshallerContext context) { if(requestObject.IsSetJobExecutionTimeoutMinutes()) { context.Writer.WritePropertyName("jobExecutionTimeoutMinutes"); context.Writer.Write(requestObject.JobExecutionTimeoutMinutes); } if(requestObject.IsSetTerminateJobsOnUpdate()) { context.Writer.WritePropertyName("terminateJobsOnUpdate"); context.Writer.Write(requestObject.TerminateJobsOnUpdate); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UpdatePolicyMarshaller Instance = new UpdatePolicyMarshaller(); } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdatePolicy Object /// </summary> public class UpdatePolicyUnmarshaller : IUnmarshaller<UpdatePolicy, XmlUnmarshallerContext>, IUnmarshaller<UpdatePolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UpdatePolicy IUnmarshaller<UpdatePolicy, 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 UpdatePolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UpdatePolicy unmarshalledObject = new UpdatePolicy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobExecutionTimeoutMinutes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.JobExecutionTimeoutMinutes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("terminateJobsOnUpdate", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.TerminateJobsOnUpdate = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UpdatePolicyUnmarshaller _instance = new UpdatePolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UpdatePolicyUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// UpdateSchedulingPolicy Request Marshaller /// </summary> public class UpdateSchedulingPolicyRequestMarshaller : IMarshaller<IRequest, UpdateSchedulingPolicyRequest> , 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((UpdateSchedulingPolicyRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateSchedulingPolicyRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/updateschedulingpolicy"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetArn()) { context.Writer.WritePropertyName("arn"); context.Writer.Write(publicRequest.Arn); } if(publicRequest.IsSetFairsharePolicy()) { context.Writer.WritePropertyName("fairsharePolicy"); context.Writer.WriteObjectStart(); var marshaller = FairsharePolicyMarshaller.Instance; marshaller.Marshall(publicRequest.FairsharePolicy, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateSchedulingPolicyRequestMarshaller _instance = new UpdateSchedulingPolicyRequestMarshaller(); internal static UpdateSchedulingPolicyRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSchedulingPolicyRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateSchedulingPolicy operation /// </summary> public class UpdateSchedulingPolicyResponseUnmarshaller : 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) { UpdateSchedulingPolicyResponse response = new UpdateSchedulingPolicyResponse(); 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("ClientException")) { return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException")) { return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateSchedulingPolicyResponseUnmarshaller _instance = new UpdateSchedulingPolicyResponseUnmarshaller(); internal static UpdateSchedulingPolicyResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSchedulingPolicyResponseUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Volume Marshaller /// </summary> public class VolumeMarshaller : IRequestMarshaller<Volume, 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(Volume requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEfsVolumeConfiguration()) { context.Writer.WritePropertyName("efsVolumeConfiguration"); context.Writer.WriteObjectStart(); var marshaller = EFSVolumeConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.EfsVolumeConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetHost()) { context.Writer.WritePropertyName("host"); context.Writer.WriteObjectStart(); var marshaller = HostMarshaller.Instance; marshaller.Marshall(requestObject.Host, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VolumeMarshaller Instance = new VolumeMarshaller(); } }
84
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Batch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Batch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Volume Object /// </summary> public class VolumeUnmarshaller : IUnmarshaller<Volume, XmlUnmarshallerContext>, IUnmarshaller<Volume, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Volume IUnmarshaller<Volume, 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 Volume Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Volume unmarshalledObject = new Volume(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("efsVolumeConfiguration", targetDepth)) { var unmarshaller = EFSVolumeConfigurationUnmarshaller.Instance; unmarshalledObject.EfsVolumeConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("host", targetDepth)) { var unmarshaller = HostUnmarshaller.Instance; unmarshalledObject.Host = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VolumeUnmarshaller _instance = new VolumeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VolumeUnmarshaller 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.Batch.Model { /// <summary> /// Paginators for the Batch service ///</summary> public class BatchPaginatorFactory : IBatchPaginatorFactory { private readonly IAmazonBatch client; internal BatchPaginatorFactory(IAmazonBatch client) { this.client = client; } /// <summary> /// Paginator for DescribeComputeEnvironments operation ///</summary> public IDescribeComputeEnvironmentsPaginator DescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request) { return new DescribeComputeEnvironmentsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeJobDefinitions operation ///</summary> public IDescribeJobDefinitionsPaginator DescribeJobDefinitions(DescribeJobDefinitionsRequest request) { return new DescribeJobDefinitionsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeJobQueues operation ///</summary> public IDescribeJobQueuesPaginator DescribeJobQueues(DescribeJobQueuesRequest request) { return new DescribeJobQueuesPaginator(this.client, request); } /// <summary> /// Paginator for ListJobs operation ///</summary> public IListJobsPaginator ListJobs(ListJobsRequest request) { return new ListJobsPaginator(this.client, request); } /// <summary> /// Paginator for ListSchedulingPolicies operation ///</summary> public IListSchedulingPoliciesPaginator ListSchedulingPolicies(ListSchedulingPoliciesRequest request) { return new ListSchedulingPoliciesPaginator(this.client, request); } } }
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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Base class for DescribeComputeEnvironments paginators. /// </summary> internal sealed partial class DescribeComputeEnvironmentsPaginator : IPaginator<DescribeComputeEnvironmentsResponse>, IDescribeComputeEnvironmentsPaginator { private readonly IAmazonBatch _client; private readonly DescribeComputeEnvironmentsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeComputeEnvironmentsResponse> Responses => new PaginatedResponse<DescribeComputeEnvironmentsResponse>(this); /// <summary> /// Enumerable containing all of the ComputeEnvironments /// </summary> public IPaginatedEnumerable<ComputeEnvironmentDetail> ComputeEnvironments => new PaginatedResultKeyResponse<DescribeComputeEnvironmentsResponse, ComputeEnvironmentDetail>(this, (i) => i.ComputeEnvironments); internal DescribeComputeEnvironmentsPaginator(IAmazonBatch client, DescribeComputeEnvironmentsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeComputeEnvironmentsResponse> IPaginator<DescribeComputeEnvironmentsResponse>.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; DescribeComputeEnvironmentsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeComputeEnvironments(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeComputeEnvironmentsResponse> IPaginator<DescribeComputeEnvironmentsResponse>.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; DescribeComputeEnvironmentsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeComputeEnvironmentsAsync(_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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Base class for DescribeJobDefinitions paginators. /// </summary> internal sealed partial class DescribeJobDefinitionsPaginator : IPaginator<DescribeJobDefinitionsResponse>, IDescribeJobDefinitionsPaginator { private readonly IAmazonBatch _client; private readonly DescribeJobDefinitionsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeJobDefinitionsResponse> Responses => new PaginatedResponse<DescribeJobDefinitionsResponse>(this); /// <summary> /// Enumerable containing all of the JobDefinitions /// </summary> public IPaginatedEnumerable<JobDefinition> JobDefinitions => new PaginatedResultKeyResponse<DescribeJobDefinitionsResponse, JobDefinition>(this, (i) => i.JobDefinitions); internal DescribeJobDefinitionsPaginator(IAmazonBatch client, DescribeJobDefinitionsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeJobDefinitionsResponse> IPaginator<DescribeJobDefinitionsResponse>.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; DescribeJobDefinitionsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeJobDefinitions(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeJobDefinitionsResponse> IPaginator<DescribeJobDefinitionsResponse>.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; DescribeJobDefinitionsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeJobDefinitionsAsync(_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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Base class for DescribeJobQueues paginators. /// </summary> internal sealed partial class DescribeJobQueuesPaginator : IPaginator<DescribeJobQueuesResponse>, IDescribeJobQueuesPaginator { private readonly IAmazonBatch _client; private readonly DescribeJobQueuesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeJobQueuesResponse> Responses => new PaginatedResponse<DescribeJobQueuesResponse>(this); /// <summary> /// Enumerable containing all of the JobQueues /// </summary> public IPaginatedEnumerable<JobQueueDetail> JobQueues => new PaginatedResultKeyResponse<DescribeJobQueuesResponse, JobQueueDetail>(this, (i) => i.JobQueues); internal DescribeJobQueuesPaginator(IAmazonBatch client, DescribeJobQueuesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeJobQueuesResponse> IPaginator<DescribeJobQueuesResponse>.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; DescribeJobQueuesResponse response; do { _request.NextToken = nextToken; response = _client.DescribeJobQueues(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeJobQueuesResponse> IPaginator<DescribeJobQueuesResponse>.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; DescribeJobQueuesResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeJobQueuesAsync(_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 batch-2016-08-10.normal.json service model. */ namespace Amazon.Batch.Model { /// <summary> /// Paginators for the Batch service ///</summary> public interface IBatchPaginatorFactory { /// <summary> /// Paginator for DescribeComputeEnvironments operation ///</summary> IDescribeComputeEnvironmentsPaginator DescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request); /// <summary> /// Paginator for DescribeJobDefinitions operation ///</summary> IDescribeJobDefinitionsPaginator DescribeJobDefinitions(DescribeJobDefinitionsRequest request); /// <summary> /// Paginator for DescribeJobQueues operation ///</summary> IDescribeJobQueuesPaginator DescribeJobQueues(DescribeJobQueuesRequest request); /// <summary> /// Paginator for ListJobs operation ///</summary> IListJobsPaginator ListJobs(ListJobsRequest request); /// <summary> /// Paginator for ListSchedulingPolicies operation ///</summary> IListSchedulingPoliciesPaginator ListSchedulingPolicies(ListSchedulingPoliciesRequest request); } }
53
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Paginator for the DescribeComputeEnvironments operation ///</summary> public interface IDescribeComputeEnvironmentsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeComputeEnvironmentsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the ComputeEnvironments /// </summary> IPaginatedEnumerable<ComputeEnvironmentDetail> ComputeEnvironments { 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 batch-2016-08-10.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Paginator for the DescribeJobDefinitions operation ///</summary> public interface IDescribeJobDefinitionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeJobDefinitionsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the JobDefinitions /// </summary> IPaginatedEnumerable<JobDefinition> JobDefinitions { 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 batch-2016-08-10.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Paginator for the DescribeJobQueues operation ///</summary> public interface IDescribeJobQueuesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeJobQueuesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the JobQueues /// </summary> IPaginatedEnumerable<JobQueueDetail> JobQueues { 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 batch-2016-08-10.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Paginator for the ListJobs operation ///</summary> public interface IListJobsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListJobsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the JobSummaryList /// </summary> IPaginatedEnumerable<JobSummary> JobSummaryList { 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 batch-2016-08-10.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Paginator for the ListSchedulingPolicies operation ///</summary> public interface IListSchedulingPoliciesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListSchedulingPoliciesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the SchedulingPolicies /// </summary> IPaginatedEnumerable<SchedulingPolicyListingDetail> SchedulingPolicies { 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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Base class for ListJobs paginators. /// </summary> internal sealed partial class ListJobsPaginator : IPaginator<ListJobsResponse>, IListJobsPaginator { private readonly IAmazonBatch _client; private readonly ListJobsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListJobsResponse> Responses => new PaginatedResponse<ListJobsResponse>(this); /// <summary> /// Enumerable containing all of the JobSummaryList /// </summary> public IPaginatedEnumerable<JobSummary> JobSummaryList => new PaginatedResultKeyResponse<ListJobsResponse, JobSummary>(this, (i) => i.JobSummaryList); internal ListJobsPaginator(IAmazonBatch client, ListJobsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListJobsResponse> IPaginator<ListJobsResponse>.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; ListJobsResponse response; do { _request.NextToken = nextToken; response = _client.ListJobs(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListJobsResponse> IPaginator<ListJobsResponse>.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; ListJobsResponse response; do { _request.NextToken = nextToken; response = await _client.ListJobsAsync(_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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Batch.Model { /// <summary> /// Base class for ListSchedulingPolicies paginators. /// </summary> internal sealed partial class ListSchedulingPoliciesPaginator : IPaginator<ListSchedulingPoliciesResponse>, IListSchedulingPoliciesPaginator { private readonly IAmazonBatch _client; private readonly ListSchedulingPoliciesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListSchedulingPoliciesResponse> Responses => new PaginatedResponse<ListSchedulingPoliciesResponse>(this); /// <summary> /// Enumerable containing all of the SchedulingPolicies /// </summary> public IPaginatedEnumerable<SchedulingPolicyListingDetail> SchedulingPolicies => new PaginatedResultKeyResponse<ListSchedulingPoliciesResponse, SchedulingPolicyListingDetail>(this, (i) => i.SchedulingPolicies); internal ListSchedulingPoliciesPaginator(IAmazonBatch client, ListSchedulingPoliciesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListSchedulingPoliciesResponse> IPaginator<ListSchedulingPoliciesResponse>.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; ListSchedulingPoliciesResponse response; do { _request.NextToken = nextToken; response = _client.ListSchedulingPolicies(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListSchedulingPoliciesResponse> IPaginator<ListSchedulingPoliciesResponse>.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; ListSchedulingPoliciesResponse response; do { _request.NextToken = nextToken; response = await _client.ListSchedulingPoliciesAsync(_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 batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Batch.Model; using Amazon.Batch.Model.Internal.MarshallTransformations; using Amazon.Batch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Batch { /// <summary> /// Implementation for accessing Batch /// /// Batch /// <para> /// Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. /// Batch computing is a common means for developers, scientists, and engineers to access /// large amounts of compute resources. Batch uses the advantages of the batch computing /// to remove the undifferentiated heavy lifting of configuring and managing required /// infrastructure. At the same time, it also adopts a familiar batch computing software /// approach. You can use Batch to efficiently provision resources d, and work toward /// eliminating capacity constraints, reducing your overall compute costs, and delivering /// results more quickly. /// </para> /// /// <para> /// As a fully managed service, Batch can run batch computing workloads of any scale. /// Batch automatically provisions compute resources and optimizes workload distribution /// based on the quantity and scale of your specific workloads. With Batch, there's no /// need to install or manage batch computing software. This means that you can focus /// on analyzing results and solving your specific problems instead. /// </para> /// </summary> public partial class AmazonBatchClient : AmazonServiceClient, IAmazonBatch { private static IServiceMetadata serviceMetadata = new AmazonBatchMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IBatchPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBatchPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BatchPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient Configuration Object</param> public AmazonBatchClient(AmazonBatchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBatchClient(AWSCredentials credentials) : this(credentials, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBatchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials and an /// AmazonBatchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBatchClient Configuration Object</param> public AmazonBatchClient(AWSCredentials credentials, AmazonBatchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBatchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBatchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBatchClient Configuration Object</param> public AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBatchClient 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 AmazonBatchClient Configuration Object</param> public AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBatchConfig 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 AmazonBatchEndpointResolver()); } /// <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 CancelJob /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke<CancelJobResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelJob operation on AmazonBatchClient.</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 EndCancelJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual IAsyncResult BeginCancelJob(CancelJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelJob.</param> /// /// <returns>Returns a CancelJobResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual CancelJobResponse EndCancelJob(IAsyncResult asyncResult) { return EndInvoke<CancelJobResponse>(asyncResult); } #endregion #region CreateComputeEnvironment /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment service method.</param> /// /// <returns>The response from the CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> public virtual CreateComputeEnvironmentResponse CreateComputeEnvironment(CreateComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<CreateComputeEnvironmentResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateComputeEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment operation on AmazonBatchClient.</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 EndCreateComputeEnvironment /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> public virtual IAsyncResult BeginCreateComputeEnvironment(CreateComputeEnvironmentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComputeEnvironmentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateComputeEnvironment operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateComputeEnvironment.</param> /// /// <returns>Returns a CreateComputeEnvironmentResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> public virtual CreateComputeEnvironmentResponse EndCreateComputeEnvironment(IAsyncResult asyncResult) { return EndInvoke<CreateComputeEnvironmentResponse>(asyncResult); } #endregion #region CreateJobQueue /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue service method.</param> /// /// <returns>The response from the CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> public virtual CreateJobQueueResponse CreateJobQueue(CreateJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobQueueResponseUnmarshaller.Instance; return Invoke<CreateJobQueueResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateJobQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue operation on AmazonBatchClient.</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 EndCreateJobQueue /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> public virtual IAsyncResult BeginCreateJobQueue(CreateJobQueueRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobQueueResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateJobQueue operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateJobQueue.</param> /// /// <returns>Returns a CreateJobQueueResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> public virtual CreateJobQueueResponse EndCreateJobQueue(IAsyncResult asyncResult) { return EndInvoke<CreateJobQueueResponse>(asyncResult); } #endregion #region CreateSchedulingPolicy /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy service method.</param> /// /// <returns>The response from the CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> public virtual CreateSchedulingPolicyResponse CreateSchedulingPolicy(CreateSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<CreateSchedulingPolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateSchedulingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy operation on AmazonBatchClient.</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 EndCreateSchedulingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> public virtual IAsyncResult BeginCreateSchedulingPolicy(CreateSchedulingPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSchedulingPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateSchedulingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateSchedulingPolicy.</param> /// /// <returns>Returns a CreateSchedulingPolicyResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> public virtual CreateSchedulingPolicyResponse EndCreateSchedulingPolicy(IAsyncResult asyncResult) { return EndInvoke<CreateSchedulingPolicyResponse>(asyncResult); } #endregion #region DeleteComputeEnvironment /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment service method.</param> /// /// <returns>The response from the DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> public virtual DeleteComputeEnvironmentResponse DeleteComputeEnvironment(DeleteComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<DeleteComputeEnvironmentResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteComputeEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment operation on AmazonBatchClient.</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 EndDeleteComputeEnvironment /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> public virtual IAsyncResult BeginDeleteComputeEnvironment(DeleteComputeEnvironmentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComputeEnvironmentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteComputeEnvironment operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteComputeEnvironment.</param> /// /// <returns>Returns a DeleteComputeEnvironmentResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> public virtual DeleteComputeEnvironmentResponse EndDeleteComputeEnvironment(IAsyncResult asyncResult) { return EndInvoke<DeleteComputeEnvironmentResponse>(asyncResult); } #endregion #region DeleteJobQueue /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue service method.</param> /// /// <returns>The response from the DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> public virtual DeleteJobQueueResponse DeleteJobQueue(DeleteJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobQueueResponseUnmarshaller.Instance; return Invoke<DeleteJobQueueResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteJobQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue operation on AmazonBatchClient.</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 EndDeleteJobQueue /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> public virtual IAsyncResult BeginDeleteJobQueue(DeleteJobQueueRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobQueueResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteJobQueue operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteJobQueue.</param> /// /// <returns>Returns a DeleteJobQueueResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> public virtual DeleteJobQueueResponse EndDeleteJobQueue(IAsyncResult asyncResult) { return EndInvoke<DeleteJobQueueResponse>(asyncResult); } #endregion #region DeleteSchedulingPolicy /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy service method.</param> /// /// <returns>The response from the DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> public virtual DeleteSchedulingPolicyResponse DeleteSchedulingPolicy(DeleteSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<DeleteSchedulingPolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteSchedulingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy operation on AmazonBatchClient.</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 EndDeleteSchedulingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> public virtual IAsyncResult BeginDeleteSchedulingPolicy(DeleteSchedulingPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSchedulingPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteSchedulingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteSchedulingPolicy.</param> /// /// <returns>Returns a DeleteSchedulingPolicyResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> public virtual DeleteSchedulingPolicyResponse EndDeleteSchedulingPolicy(IAsyncResult asyncResult) { return EndInvoke<DeleteSchedulingPolicyResponse>(asyncResult); } #endregion #region DeregisterJobDefinition /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition service method.</param> /// /// <returns>The response from the DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> public virtual DeregisterJobDefinitionResponse DeregisterJobDefinition(DeregisterJobDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterJobDefinitionResponseUnmarshaller.Instance; return Invoke<DeregisterJobDefinitionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeregisterJobDefinition operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition operation on AmazonBatchClient.</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 EndDeregisterJobDefinition /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> public virtual IAsyncResult BeginDeregisterJobDefinition(DeregisterJobDefinitionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterJobDefinitionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeregisterJobDefinition operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeregisterJobDefinition.</param> /// /// <returns>Returns a DeregisterJobDefinitionResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> public virtual DeregisterJobDefinitionResponse EndDeregisterJobDefinition(IAsyncResult asyncResult) { return EndInvoke<DeregisterJobDefinitionResponse>(asyncResult); } #endregion #region DescribeComputeEnvironments /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments service method.</param> /// /// <returns>The response from the DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> public virtual DescribeComputeEnvironmentsResponse DescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComputeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComputeEnvironmentsResponseUnmarshaller.Instance; return Invoke<DescribeComputeEnvironmentsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeComputeEnvironments operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments operation on AmazonBatchClient.</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 EndDescribeComputeEnvironments /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> public virtual IAsyncResult BeginDescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComputeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComputeEnvironmentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeComputeEnvironments operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComputeEnvironments.</param> /// /// <returns>Returns a DescribeComputeEnvironmentsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> public virtual DescribeComputeEnvironmentsResponse EndDescribeComputeEnvironments(IAsyncResult asyncResult) { return EndInvoke<DescribeComputeEnvironmentsResponse>(asyncResult); } #endregion #region DescribeJobDefinitions /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions service method.</param> /// /// <returns>The response from the DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> public virtual DescribeJobDefinitionsResponse DescribeJobDefinitions(DescribeJobDefinitionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobDefinitionsResponseUnmarshaller.Instance; return Invoke<DescribeJobDefinitionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeJobDefinitions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions operation on AmazonBatchClient.</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 EndDescribeJobDefinitions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> public virtual IAsyncResult BeginDescribeJobDefinitions(DescribeJobDefinitionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobDefinitionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeJobDefinitions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeJobDefinitions.</param> /// /// <returns>Returns a DescribeJobDefinitionsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> public virtual DescribeJobDefinitionsResponse EndDescribeJobDefinitions(IAsyncResult asyncResult) { return EndInvoke<DescribeJobDefinitionsResponse>(asyncResult); } #endregion #region DescribeJobQueues /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues service method.</param> /// /// <returns>The response from the DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual DescribeJobQueuesResponse DescribeJobQueues(DescribeJobQueuesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return Invoke<DescribeJobQueuesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeJobQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues operation on AmazonBatchClient.</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 EndDescribeJobQueues /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual IAsyncResult BeginDescribeJobQueues(DescribeJobQueuesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeJobQueues operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeJobQueues.</param> /// /// <returns>Returns a DescribeJobQueuesResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual DescribeJobQueuesResponse EndDescribeJobQueues(IAsyncResult asyncResult) { return EndInvoke<DescribeJobQueuesResponse>(asyncResult); } #endregion #region DescribeJobs /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs service method.</param> /// /// <returns>The response from the DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return Invoke<DescribeJobsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobs operation on AmazonBatchClient.</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 EndDescribeJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual IAsyncResult BeginDescribeJobs(DescribeJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeJobs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeJobs.</param> /// /// <returns>Returns a DescribeJobsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual DescribeJobsResponse EndDescribeJobs(IAsyncResult asyncResult) { return EndInvoke<DescribeJobsResponse>(asyncResult); } #endregion #region DescribeSchedulingPolicies /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies service method.</param> /// /// <returns>The response from the DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> public virtual DescribeSchedulingPoliciesResponse DescribeSchedulingPolicies(DescribeSchedulingPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSchedulingPoliciesResponseUnmarshaller.Instance; return Invoke<DescribeSchedulingPoliciesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeSchedulingPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies operation on AmazonBatchClient.</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 EndDescribeSchedulingPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> public virtual IAsyncResult BeginDescribeSchedulingPolicies(DescribeSchedulingPoliciesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSchedulingPoliciesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeSchedulingPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSchedulingPolicies.</param> /// /// <returns>Returns a DescribeSchedulingPoliciesResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> public virtual DescribeSchedulingPoliciesResponse EndDescribeSchedulingPolicies(IAsyncResult asyncResult) { return EndInvoke<DescribeSchedulingPoliciesResponse>(asyncResult); } #endregion #region ListJobs /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs service method.</param> /// /// <returns>The response from the ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> public virtual ListJobsResponse ListJobs(ListJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return Invoke<ListJobsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListJobs operation on AmazonBatchClient.</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 EndListJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> public virtual IAsyncResult BeginListJobs(ListJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListJobs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListJobs.</param> /// /// <returns>Returns a ListJobsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> public virtual ListJobsResponse EndListJobs(IAsyncResult asyncResult) { return EndInvoke<ListJobsResponse>(asyncResult); } #endregion #region ListSchedulingPolicies /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies service method.</param> /// /// <returns>The response from the ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> public virtual ListSchedulingPoliciesResponse ListSchedulingPolicies(ListSchedulingPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSchedulingPoliciesResponseUnmarshaller.Instance; return Invoke<ListSchedulingPoliciesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListSchedulingPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies operation on AmazonBatchClient.</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 EndListSchedulingPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> public virtual IAsyncResult BeginListSchedulingPolicies(ListSchedulingPoliciesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSchedulingPoliciesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListSchedulingPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListSchedulingPolicies.</param> /// /// <returns>Returns a ListSchedulingPoliciesResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> public virtual ListSchedulingPoliciesResponse EndListSchedulingPolicies(IAsyncResult asyncResult) { return EndInvoke<ListSchedulingPoliciesResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region RegisterJobDefinition /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition service method.</param> /// /// <returns>The response from the RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> public virtual RegisterJobDefinitionResponse RegisterJobDefinition(RegisterJobDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterJobDefinitionResponseUnmarshaller.Instance; return Invoke<RegisterJobDefinitionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RegisterJobDefinition operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition operation on AmazonBatchClient.</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 EndRegisterJobDefinition /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> public virtual IAsyncResult BeginRegisterJobDefinition(RegisterJobDefinitionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterJobDefinitionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RegisterJobDefinition operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterJobDefinition.</param> /// /// <returns>Returns a RegisterJobDefinitionResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> public virtual RegisterJobDefinitionResponse EndRegisterJobDefinition(IAsyncResult asyncResult) { return EndInvoke<RegisterJobDefinitionResponse>(asyncResult); } #endregion #region SubmitJob /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob service method.</param> /// /// <returns>The response from the SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> public virtual SubmitJobResponse SubmitJob(SubmitJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SubmitJobRequestMarshaller.Instance; options.ResponseUnmarshaller = SubmitJobResponseUnmarshaller.Instance; return Invoke<SubmitJobResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SubmitJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SubmitJob operation on AmazonBatchClient.</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 EndSubmitJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> public virtual IAsyncResult BeginSubmitJob(SubmitJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SubmitJobRequestMarshaller.Instance; options.ResponseUnmarshaller = SubmitJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SubmitJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSubmitJob.</param> /// /// <returns>Returns a SubmitJobResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> public virtual SubmitJobResponse EndSubmitJob(IAsyncResult asyncResult) { return EndInvoke<SubmitJobResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region TerminateJob /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob service method.</param> /// /// <returns>The response from the TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> public virtual TerminateJobResponse TerminateJob(TerminateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateJobResponseUnmarshaller.Instance; return Invoke<TerminateJobResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TerminateJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TerminateJob operation on AmazonBatchClient.</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 EndTerminateJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> public virtual IAsyncResult BeginTerminateJob(TerminateJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TerminateJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTerminateJob.</param> /// /// <returns>Returns a TerminateJobResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> public virtual TerminateJobResponse EndTerminateJob(IAsyncResult asyncResult) { return EndInvoke<TerminateJobResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion #region UpdateComputeEnvironment /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment service method.</param> /// /// <returns>The response from the UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> public virtual UpdateComputeEnvironmentResponse UpdateComputeEnvironment(UpdateComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<UpdateComputeEnvironmentResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateComputeEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment operation on AmazonBatchClient.</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 EndUpdateComputeEnvironment /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> public virtual IAsyncResult BeginUpdateComputeEnvironment(UpdateComputeEnvironmentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComputeEnvironmentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateComputeEnvironment operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComputeEnvironment.</param> /// /// <returns>Returns a UpdateComputeEnvironmentResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> public virtual UpdateComputeEnvironmentResponse EndUpdateComputeEnvironment(IAsyncResult asyncResult) { return EndInvoke<UpdateComputeEnvironmentResponse>(asyncResult); } #endregion #region UpdateJobQueue /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue service method.</param> /// /// <returns>The response from the UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> public virtual UpdateJobQueueResponse UpdateJobQueue(UpdateJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobQueueResponseUnmarshaller.Instance; return Invoke<UpdateJobQueueResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateJobQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue operation on AmazonBatchClient.</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 EndUpdateJobQueue /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> public virtual IAsyncResult BeginUpdateJobQueue(UpdateJobQueueRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobQueueResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateJobQueue operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateJobQueue.</param> /// /// <returns>Returns a UpdateJobQueueResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> public virtual UpdateJobQueueResponse EndUpdateJobQueue(IAsyncResult asyncResult) { return EndInvoke<UpdateJobQueueResponse>(asyncResult); } #endregion #region UpdateSchedulingPolicy /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy service method.</param> /// /// <returns>The response from the UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> public virtual UpdateSchedulingPolicyResponse UpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<UpdateSchedulingPolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateSchedulingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy operation on AmazonBatchClient.</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 EndUpdateSchedulingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> public virtual IAsyncResult BeginUpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSchedulingPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateSchedulingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateSchedulingPolicy.</param> /// /// <returns>Returns a UpdateSchedulingPolicyResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> public virtual UpdateSchedulingPolicyResponse EndUpdateSchedulingPolicy(IAsyncResult asyncResult) { return EndInvoke<UpdateSchedulingPolicyResponse>(asyncResult); } #endregion } }
1,987
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Batch.Model; namespace Amazon.Batch { /// <summary> /// Interface for accessing Batch /// /// Batch /// <para> /// Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. /// Batch computing is a common means for developers, scientists, and engineers to access /// large amounts of compute resources. Batch uses the advantages of the batch computing /// to remove the undifferentiated heavy lifting of configuring and managing required /// infrastructure. At the same time, it also adopts a familiar batch computing software /// approach. You can use Batch to efficiently provision resources d, and work toward /// eliminating capacity constraints, reducing your overall compute costs, and delivering /// results more quickly. /// </para> /// /// <para> /// As a fully managed service, Batch can run batch computing workloads of any scale. /// Batch automatically provisions compute resources and optimizes workload distribution /// based on the quantity and scale of your specific workloads. With Batch, there's no /// need to install or manage batch computing software. This means that you can focus /// on analyzing results and solving your specific problems instead. /// </para> /// </summary> public partial interface IAmazonBatch : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBatchPaginatorFactory Paginators { get; } #endif #region CancelJob /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> CancelJobResponse CancelJob(CancelJobRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelJob operation on AmazonBatchClient.</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 EndCancelJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> IAsyncResult BeginCancelJob(CancelJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelJob.</param> /// /// <returns>Returns a CancelJobResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> CancelJobResponse EndCancelJob(IAsyncResult asyncResult); #endregion #region CreateComputeEnvironment /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment service method.</param> /// /// <returns>The response from the CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> CreateComputeEnvironmentResponse CreateComputeEnvironment(CreateComputeEnvironmentRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateComputeEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment operation on AmazonBatchClient.</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 EndCreateComputeEnvironment /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> IAsyncResult BeginCreateComputeEnvironment(CreateComputeEnvironmentRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateComputeEnvironment operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateComputeEnvironment.</param> /// /// <returns>Returns a CreateComputeEnvironmentResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> CreateComputeEnvironmentResponse EndCreateComputeEnvironment(IAsyncResult asyncResult); #endregion #region CreateJobQueue /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue service method.</param> /// /// <returns>The response from the CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> CreateJobQueueResponse CreateJobQueue(CreateJobQueueRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateJobQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue operation on AmazonBatchClient.</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 EndCreateJobQueue /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> IAsyncResult BeginCreateJobQueue(CreateJobQueueRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateJobQueue operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateJobQueue.</param> /// /// <returns>Returns a CreateJobQueueResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> CreateJobQueueResponse EndCreateJobQueue(IAsyncResult asyncResult); #endregion #region CreateSchedulingPolicy /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy service method.</param> /// /// <returns>The response from the CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> CreateSchedulingPolicyResponse CreateSchedulingPolicy(CreateSchedulingPolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateSchedulingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy operation on AmazonBatchClient.</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 EndCreateSchedulingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> IAsyncResult BeginCreateSchedulingPolicy(CreateSchedulingPolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateSchedulingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateSchedulingPolicy.</param> /// /// <returns>Returns a CreateSchedulingPolicyResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> CreateSchedulingPolicyResponse EndCreateSchedulingPolicy(IAsyncResult asyncResult); #endregion #region DeleteComputeEnvironment /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment service method.</param> /// /// <returns>The response from the DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> DeleteComputeEnvironmentResponse DeleteComputeEnvironment(DeleteComputeEnvironmentRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteComputeEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment operation on AmazonBatchClient.</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 EndDeleteComputeEnvironment /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> IAsyncResult BeginDeleteComputeEnvironment(DeleteComputeEnvironmentRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteComputeEnvironment operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteComputeEnvironment.</param> /// /// <returns>Returns a DeleteComputeEnvironmentResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> DeleteComputeEnvironmentResponse EndDeleteComputeEnvironment(IAsyncResult asyncResult); #endregion #region DeleteJobQueue /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue service method.</param> /// /// <returns>The response from the DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> DeleteJobQueueResponse DeleteJobQueue(DeleteJobQueueRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteJobQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue operation on AmazonBatchClient.</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 EndDeleteJobQueue /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> IAsyncResult BeginDeleteJobQueue(DeleteJobQueueRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteJobQueue operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteJobQueue.</param> /// /// <returns>Returns a DeleteJobQueueResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> DeleteJobQueueResponse EndDeleteJobQueue(IAsyncResult asyncResult); #endregion #region DeleteSchedulingPolicy /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy service method.</param> /// /// <returns>The response from the DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> DeleteSchedulingPolicyResponse DeleteSchedulingPolicy(DeleteSchedulingPolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteSchedulingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy operation on AmazonBatchClient.</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 EndDeleteSchedulingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> IAsyncResult BeginDeleteSchedulingPolicy(DeleteSchedulingPolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteSchedulingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteSchedulingPolicy.</param> /// /// <returns>Returns a DeleteSchedulingPolicyResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> DeleteSchedulingPolicyResponse EndDeleteSchedulingPolicy(IAsyncResult asyncResult); #endregion #region DeregisterJobDefinition /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition service method.</param> /// /// <returns>The response from the DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> DeregisterJobDefinitionResponse DeregisterJobDefinition(DeregisterJobDefinitionRequest request); /// <summary> /// Initiates the asynchronous execution of the DeregisterJobDefinition operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition operation on AmazonBatchClient.</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 EndDeregisterJobDefinition /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> IAsyncResult BeginDeregisterJobDefinition(DeregisterJobDefinitionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeregisterJobDefinition operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeregisterJobDefinition.</param> /// /// <returns>Returns a DeregisterJobDefinitionResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> DeregisterJobDefinitionResponse EndDeregisterJobDefinition(IAsyncResult asyncResult); #endregion #region DescribeComputeEnvironments /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments service method.</param> /// /// <returns>The response from the DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> DescribeComputeEnvironmentsResponse DescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeComputeEnvironments operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments operation on AmazonBatchClient.</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 EndDescribeComputeEnvironments /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> IAsyncResult BeginDescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeComputeEnvironments operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComputeEnvironments.</param> /// /// <returns>Returns a DescribeComputeEnvironmentsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> DescribeComputeEnvironmentsResponse EndDescribeComputeEnvironments(IAsyncResult asyncResult); #endregion #region DescribeJobDefinitions /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions service method.</param> /// /// <returns>The response from the DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> DescribeJobDefinitionsResponse DescribeJobDefinitions(DescribeJobDefinitionsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeJobDefinitions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions operation on AmazonBatchClient.</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 EndDescribeJobDefinitions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> IAsyncResult BeginDescribeJobDefinitions(DescribeJobDefinitionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeJobDefinitions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeJobDefinitions.</param> /// /// <returns>Returns a DescribeJobDefinitionsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> DescribeJobDefinitionsResponse EndDescribeJobDefinitions(IAsyncResult asyncResult); #endregion #region DescribeJobQueues /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues service method.</param> /// /// <returns>The response from the DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> DescribeJobQueuesResponse DescribeJobQueues(DescribeJobQueuesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeJobQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues operation on AmazonBatchClient.</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 EndDescribeJobQueues /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> IAsyncResult BeginDescribeJobQueues(DescribeJobQueuesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeJobQueues operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeJobQueues.</param> /// /// <returns>Returns a DescribeJobQueuesResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> DescribeJobQueuesResponse EndDescribeJobQueues(IAsyncResult asyncResult); #endregion #region DescribeJobs /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs service method.</param> /// /// <returns>The response from the DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> DescribeJobsResponse DescribeJobs(DescribeJobsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobs operation on AmazonBatchClient.</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 EndDescribeJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> IAsyncResult BeginDescribeJobs(DescribeJobsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeJobs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeJobs.</param> /// /// <returns>Returns a DescribeJobsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> DescribeJobsResponse EndDescribeJobs(IAsyncResult asyncResult); #endregion #region DescribeSchedulingPolicies /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies service method.</param> /// /// <returns>The response from the DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> DescribeSchedulingPoliciesResponse DescribeSchedulingPolicies(DescribeSchedulingPoliciesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeSchedulingPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies operation on AmazonBatchClient.</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 EndDescribeSchedulingPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> IAsyncResult BeginDescribeSchedulingPolicies(DescribeSchedulingPoliciesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeSchedulingPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSchedulingPolicies.</param> /// /// <returns>Returns a DescribeSchedulingPoliciesResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> DescribeSchedulingPoliciesResponse EndDescribeSchedulingPolicies(IAsyncResult asyncResult); #endregion #region ListJobs /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs service method.</param> /// /// <returns>The response from the ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> ListJobsResponse ListJobs(ListJobsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListJobs operation on AmazonBatchClient.</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 EndListJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> IAsyncResult BeginListJobs(ListJobsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListJobs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListJobs.</param> /// /// <returns>Returns a ListJobsResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> ListJobsResponse EndListJobs(IAsyncResult asyncResult); #endregion #region ListSchedulingPolicies /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies service method.</param> /// /// <returns>The response from the ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> ListSchedulingPoliciesResponse ListSchedulingPolicies(ListSchedulingPoliciesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListSchedulingPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies operation on AmazonBatchClient.</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 EndListSchedulingPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> IAsyncResult BeginListSchedulingPolicies(ListSchedulingPoliciesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListSchedulingPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListSchedulingPolicies.</param> /// /// <returns>Returns a ListSchedulingPoliciesResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> ListSchedulingPoliciesResponse EndListSchedulingPolicies(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region RegisterJobDefinition /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition service method.</param> /// /// <returns>The response from the RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> RegisterJobDefinitionResponse RegisterJobDefinition(RegisterJobDefinitionRequest request); /// <summary> /// Initiates the asynchronous execution of the RegisterJobDefinition operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition operation on AmazonBatchClient.</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 EndRegisterJobDefinition /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> IAsyncResult BeginRegisterJobDefinition(RegisterJobDefinitionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RegisterJobDefinition operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterJobDefinition.</param> /// /// <returns>Returns a RegisterJobDefinitionResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> RegisterJobDefinitionResponse EndRegisterJobDefinition(IAsyncResult asyncResult); #endregion #region SubmitJob /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob service method.</param> /// /// <returns>The response from the SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> SubmitJobResponse SubmitJob(SubmitJobRequest request); /// <summary> /// Initiates the asynchronous execution of the SubmitJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SubmitJob operation on AmazonBatchClient.</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 EndSubmitJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> IAsyncResult BeginSubmitJob(SubmitJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SubmitJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSubmitJob.</param> /// /// <returns>Returns a SubmitJobResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> SubmitJobResponse EndSubmitJob(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region TerminateJob /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob service method.</param> /// /// <returns>The response from the TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> TerminateJobResponse TerminateJob(TerminateJobRequest request); /// <summary> /// Initiates the asynchronous execution of the TerminateJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TerminateJob operation on AmazonBatchClient.</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 EndTerminateJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> IAsyncResult BeginTerminateJob(TerminateJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TerminateJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTerminateJob.</param> /// /// <returns>Returns a TerminateJobResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> TerminateJobResponse EndTerminateJob(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateComputeEnvironment /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment service method.</param> /// /// <returns>The response from the UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> UpdateComputeEnvironmentResponse UpdateComputeEnvironment(UpdateComputeEnvironmentRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateComputeEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment operation on AmazonBatchClient.</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 EndUpdateComputeEnvironment /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> IAsyncResult BeginUpdateComputeEnvironment(UpdateComputeEnvironmentRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateComputeEnvironment operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComputeEnvironment.</param> /// /// <returns>Returns a UpdateComputeEnvironmentResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> UpdateComputeEnvironmentResponse EndUpdateComputeEnvironment(IAsyncResult asyncResult); #endregion #region UpdateJobQueue /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue service method.</param> /// /// <returns>The response from the UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> UpdateJobQueueResponse UpdateJobQueue(UpdateJobQueueRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateJobQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue operation on AmazonBatchClient.</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 EndUpdateJobQueue /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> IAsyncResult BeginUpdateJobQueue(UpdateJobQueueRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateJobQueue operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateJobQueue.</param> /// /// <returns>Returns a UpdateJobQueueResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> UpdateJobQueueResponse EndUpdateJobQueue(IAsyncResult asyncResult); #endregion #region UpdateSchedulingPolicy /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy service method.</param> /// /// <returns>The response from the UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> UpdateSchedulingPolicyResponse UpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateSchedulingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy operation on AmazonBatchClient.</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 EndUpdateSchedulingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> IAsyncResult BeginUpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateSchedulingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateSchedulingPolicy.</param> /// /// <returns>Returns a UpdateSchedulingPolicyResult from Batch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> UpdateSchedulingPolicyResponse EndUpdateSchedulingPolicy(IAsyncResult asyncResult); #endregion } }
1,431
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.Batch.Model; using Amazon.Batch.Model.Internal.MarshallTransformations; using Amazon.Batch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Batch { /// <summary> /// Implementation for accessing Batch /// /// Batch /// <para> /// Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. /// Batch computing is a common means for developers, scientists, and engineers to access /// large amounts of compute resources. Batch uses the advantages of the batch computing /// to remove the undifferentiated heavy lifting of configuring and managing required /// infrastructure. At the same time, it also adopts a familiar batch computing software /// approach. You can use Batch to efficiently provision resources d, and work toward /// eliminating capacity constraints, reducing your overall compute costs, and delivering /// results more quickly. /// </para> /// /// <para> /// As a fully managed service, Batch can run batch computing workloads of any scale. /// Batch automatically provisions compute resources and optimizes workload distribution /// based on the quantity and scale of your specific workloads. With Batch, there's no /// need to install or manage batch computing software. This means that you can focus /// on analyzing results and solving your specific problems instead. /// </para> /// </summary> public partial class AmazonBatchClient : AmazonServiceClient, IAmazonBatch { private static IServiceMetadata serviceMetadata = new AmazonBatchMetadata(); private IBatchPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBatchPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BatchPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient Configuration Object</param> public AmazonBatchClient(AmazonBatchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBatchClient(AWSCredentials credentials) : this(credentials, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBatchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials and an /// AmazonBatchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBatchClient Configuration Object</param> public AmazonBatchClient(AWSCredentials credentials, AmazonBatchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBatchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBatchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBatchClient Configuration Object</param> public AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBatchClient 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 AmazonBatchClient Configuration Object</param> public AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBatchConfig 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 AmazonBatchEndpointResolver()); } /// <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 CancelJob /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke<CancelJobResponse>(request, options); } /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob 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 CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return InvokeAsync<CancelJobResponse>(request, options, cancellationToken); } #endregion #region CreateComputeEnvironment /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment service method.</param> /// /// <returns>The response from the CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> public virtual CreateComputeEnvironmentResponse CreateComputeEnvironment(CreateComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<CreateComputeEnvironmentResponse>(request, options); } /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment 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 CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> public virtual Task<CreateComputeEnvironmentResponse> CreateComputeEnvironmentAsync(CreateComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComputeEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<CreateComputeEnvironmentResponse>(request, options, cancellationToken); } #endregion #region CreateJobQueue /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue service method.</param> /// /// <returns>The response from the CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> public virtual CreateJobQueueResponse CreateJobQueue(CreateJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobQueueResponseUnmarshaller.Instance; return Invoke<CreateJobQueueResponse>(request, options); } /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue 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 CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> public virtual Task<CreateJobQueueResponse> CreateJobQueueAsync(CreateJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobQueueResponseUnmarshaller.Instance; return InvokeAsync<CreateJobQueueResponse>(request, options, cancellationToken); } #endregion #region CreateSchedulingPolicy /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy service method.</param> /// /// <returns>The response from the CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> public virtual CreateSchedulingPolicyResponse CreateSchedulingPolicy(CreateSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<CreateSchedulingPolicyResponse>(request, options); } /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy 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 CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> public virtual Task<CreateSchedulingPolicyResponse> CreateSchedulingPolicyAsync(CreateSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSchedulingPolicyResponseUnmarshaller.Instance; return InvokeAsync<CreateSchedulingPolicyResponse>(request, options, cancellationToken); } #endregion #region DeleteComputeEnvironment /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment service method.</param> /// /// <returns>The response from the DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> public virtual DeleteComputeEnvironmentResponse DeleteComputeEnvironment(DeleteComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<DeleteComputeEnvironmentResponse>(request, options); } /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment 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 DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> public virtual Task<DeleteComputeEnvironmentResponse> DeleteComputeEnvironmentAsync(DeleteComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComputeEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<DeleteComputeEnvironmentResponse>(request, options, cancellationToken); } #endregion #region DeleteJobQueue /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue service method.</param> /// /// <returns>The response from the DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> public virtual DeleteJobQueueResponse DeleteJobQueue(DeleteJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobQueueResponseUnmarshaller.Instance; return Invoke<DeleteJobQueueResponse>(request, options); } /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue 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 DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> public virtual Task<DeleteJobQueueResponse> DeleteJobQueueAsync(DeleteJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobQueueResponseUnmarshaller.Instance; return InvokeAsync<DeleteJobQueueResponse>(request, options, cancellationToken); } #endregion #region DeleteSchedulingPolicy /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy service method.</param> /// /// <returns>The response from the DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> public virtual DeleteSchedulingPolicyResponse DeleteSchedulingPolicy(DeleteSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<DeleteSchedulingPolicyResponse>(request, options); } /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy 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 DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> public virtual Task<DeleteSchedulingPolicyResponse> DeleteSchedulingPolicyAsync(DeleteSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSchedulingPolicyResponseUnmarshaller.Instance; return InvokeAsync<DeleteSchedulingPolicyResponse>(request, options, cancellationToken); } #endregion #region DeregisterJobDefinition /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition service method.</param> /// /// <returns>The response from the DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> public virtual DeregisterJobDefinitionResponse DeregisterJobDefinition(DeregisterJobDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterJobDefinitionResponseUnmarshaller.Instance; return Invoke<DeregisterJobDefinitionResponse>(request, options); } /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition 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 DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> public virtual Task<DeregisterJobDefinitionResponse> DeregisterJobDefinitionAsync(DeregisterJobDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterJobDefinitionResponseUnmarshaller.Instance; return InvokeAsync<DeregisterJobDefinitionResponse>(request, options, cancellationToken); } #endregion #region DescribeComputeEnvironments /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments service method.</param> /// /// <returns>The response from the DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> public virtual DescribeComputeEnvironmentsResponse DescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComputeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComputeEnvironmentsResponseUnmarshaller.Instance; return Invoke<DescribeComputeEnvironmentsResponse>(request, options); } /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments 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 DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> public virtual Task<DescribeComputeEnvironmentsResponse> DescribeComputeEnvironmentsAsync(DescribeComputeEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComputeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComputeEnvironmentsResponseUnmarshaller.Instance; return InvokeAsync<DescribeComputeEnvironmentsResponse>(request, options, cancellationToken); } #endregion #region DescribeJobDefinitions /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions service method.</param> /// /// <returns>The response from the DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> public virtual DescribeJobDefinitionsResponse DescribeJobDefinitions(DescribeJobDefinitionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobDefinitionsResponseUnmarshaller.Instance; return Invoke<DescribeJobDefinitionsResponse>(request, options); } /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions 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 DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> public virtual Task<DescribeJobDefinitionsResponse> DescribeJobDefinitionsAsync(DescribeJobDefinitionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobDefinitionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeJobDefinitionsResponse>(request, options, cancellationToken); } #endregion #region DescribeJobQueues /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues service method.</param> /// /// <returns>The response from the DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual DescribeJobQueuesResponse DescribeJobQueues(DescribeJobQueuesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return Invoke<DescribeJobQueuesResponse>(request, options); } /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues 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 DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual Task<DescribeJobQueuesResponse> DescribeJobQueuesAsync(DescribeJobQueuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return InvokeAsync<DescribeJobQueuesResponse>(request, options, cancellationToken); } #endregion #region DescribeJobs /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs service method.</param> /// /// <returns>The response from the DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return Invoke<DescribeJobsResponse>(request, options); } /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs 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 DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual Task<DescribeJobsResponse> DescribeJobsAsync(DescribeJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return InvokeAsync<DescribeJobsResponse>(request, options, cancellationToken); } #endregion #region DescribeSchedulingPolicies /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies service method.</param> /// /// <returns>The response from the DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> public virtual DescribeSchedulingPoliciesResponse DescribeSchedulingPolicies(DescribeSchedulingPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSchedulingPoliciesResponseUnmarshaller.Instance; return Invoke<DescribeSchedulingPoliciesResponse>(request, options); } /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies 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 DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> public virtual Task<DescribeSchedulingPoliciesResponse> DescribeSchedulingPoliciesAsync(DescribeSchedulingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSchedulingPoliciesResponseUnmarshaller.Instance; return InvokeAsync<DescribeSchedulingPoliciesResponse>(request, options, cancellationToken); } #endregion #region ListJobs /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs service method.</param> /// /// <returns>The response from the ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> public virtual ListJobsResponse ListJobs(ListJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return Invoke<ListJobsResponse>(request, options); } /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs 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 ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> public virtual Task<ListJobsResponse> ListJobsAsync(ListJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return InvokeAsync<ListJobsResponse>(request, options, cancellationToken); } #endregion #region ListSchedulingPolicies /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies service method.</param> /// /// <returns>The response from the ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> public virtual ListSchedulingPoliciesResponse ListSchedulingPolicies(ListSchedulingPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSchedulingPoliciesResponseUnmarshaller.Instance; return Invoke<ListSchedulingPoliciesResponse>(request, options); } /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies 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 ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> public virtual Task<ListSchedulingPoliciesResponse> ListSchedulingPoliciesAsync(ListSchedulingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSchedulingPoliciesResponseUnmarshaller.Instance; return InvokeAsync<ListSchedulingPoliciesResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region RegisterJobDefinition /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition service method.</param> /// /// <returns>The response from the RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> public virtual RegisterJobDefinitionResponse RegisterJobDefinition(RegisterJobDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterJobDefinitionResponseUnmarshaller.Instance; return Invoke<RegisterJobDefinitionResponse>(request, options); } /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition 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 RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> public virtual Task<RegisterJobDefinitionResponse> RegisterJobDefinitionAsync(RegisterJobDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterJobDefinitionResponseUnmarshaller.Instance; return InvokeAsync<RegisterJobDefinitionResponse>(request, options, cancellationToken); } #endregion #region SubmitJob /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob service method.</param> /// /// <returns>The response from the SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> public virtual SubmitJobResponse SubmitJob(SubmitJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SubmitJobRequestMarshaller.Instance; options.ResponseUnmarshaller = SubmitJobResponseUnmarshaller.Instance; return Invoke<SubmitJobResponse>(request, options); } /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob 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 SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> public virtual Task<SubmitJobResponse> SubmitJobAsync(SubmitJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SubmitJobRequestMarshaller.Instance; options.ResponseUnmarshaller = SubmitJobResponseUnmarshaller.Instance; return InvokeAsync<SubmitJobResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region TerminateJob /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob service method.</param> /// /// <returns>The response from the TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> public virtual TerminateJobResponse TerminateJob(TerminateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateJobResponseUnmarshaller.Instance; return Invoke<TerminateJobResponse>(request, options); } /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob 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 TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> public virtual Task<TerminateJobResponse> TerminateJobAsync(TerminateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateJobResponseUnmarshaller.Instance; return InvokeAsync<TerminateJobResponse>(request, options, cancellationToken); } #endregion #region UntagResource /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion #region UpdateComputeEnvironment /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment service method.</param> /// /// <returns>The response from the UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> public virtual UpdateComputeEnvironmentResponse UpdateComputeEnvironment(UpdateComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<UpdateComputeEnvironmentResponse>(request, options); } /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment 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 UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> public virtual Task<UpdateComputeEnvironmentResponse> UpdateComputeEnvironmentAsync(UpdateComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComputeEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<UpdateComputeEnvironmentResponse>(request, options, cancellationToken); } #endregion #region UpdateJobQueue /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue service method.</param> /// /// <returns>The response from the UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> public virtual UpdateJobQueueResponse UpdateJobQueue(UpdateJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobQueueResponseUnmarshaller.Instance; return Invoke<UpdateJobQueueResponse>(request, options); } /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue 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 UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> public virtual Task<UpdateJobQueueResponse> UpdateJobQueueAsync(UpdateJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobQueueResponseUnmarshaller.Instance; return InvokeAsync<UpdateJobQueueResponse>(request, options, cancellationToken); } #endregion #region UpdateSchedulingPolicy /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy service method.</param> /// /// <returns>The response from the UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> public virtual UpdateSchedulingPolicyResponse UpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<UpdateSchedulingPolicyResponse>(request, options); } /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy 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 UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> public virtual Task<UpdateSchedulingPolicyResponse> UpdateSchedulingPolicyAsync(UpdateSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSchedulingPolicyResponseUnmarshaller.Instance; return InvokeAsync<UpdateSchedulingPolicyResponse>(request, options, cancellationToken); } #endregion } }
2,079
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Batch.Model; namespace Amazon.Batch { /// <summary> /// Interface for accessing Batch /// /// Batch /// <para> /// Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. /// Batch computing is a common means for developers, scientists, and engineers to access /// large amounts of compute resources. Batch uses the advantages of the batch computing /// to remove the undifferentiated heavy lifting of configuring and managing required /// infrastructure. At the same time, it also adopts a familiar batch computing software /// approach. You can use Batch to efficiently provision resources d, and work toward /// eliminating capacity constraints, reducing your overall compute costs, and delivering /// results more quickly. /// </para> /// /// <para> /// As a fully managed service, Batch can run batch computing workloads of any scale. /// Batch automatically provisions compute resources and optimizes workload distribution /// based on the quantity and scale of your specific workloads. With Batch, there's no /// need to install or manage batch computing software. This means that you can focus /// on analyzing results and solving your specific problems instead. /// </para> /// </summary> public partial interface IAmazonBatch : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IBatchPaginatorFactory Paginators { get; } #region CancelJob /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> CancelJobResponse CancelJob(CancelJobRequest request); /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob 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 CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateComputeEnvironment /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment service method.</param> /// /// <returns>The response from the CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> CreateComputeEnvironmentResponse CreateComputeEnvironment(CreateComputeEnvironmentRequest request); /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment 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 CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> Task<CreateComputeEnvironmentResponse> CreateComputeEnvironmentAsync(CreateComputeEnvironmentRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateJobQueue /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue service method.</param> /// /// <returns>The response from the CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> CreateJobQueueResponse CreateJobQueue(CreateJobQueueRequest request); /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue 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 CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> Task<CreateJobQueueResponse> CreateJobQueueAsync(CreateJobQueueRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateSchedulingPolicy /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy service method.</param> /// /// <returns>The response from the CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> CreateSchedulingPolicyResponse CreateSchedulingPolicy(CreateSchedulingPolicyRequest request); /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy 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 CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> Task<CreateSchedulingPolicyResponse> CreateSchedulingPolicyAsync(CreateSchedulingPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteComputeEnvironment /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment service method.</param> /// /// <returns>The response from the DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> DeleteComputeEnvironmentResponse DeleteComputeEnvironment(DeleteComputeEnvironmentRequest request); /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment 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 DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> Task<DeleteComputeEnvironmentResponse> DeleteComputeEnvironmentAsync(DeleteComputeEnvironmentRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteJobQueue /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue service method.</param> /// /// <returns>The response from the DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> DeleteJobQueueResponse DeleteJobQueue(DeleteJobQueueRequest request); /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue 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 DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> Task<DeleteJobQueueResponse> DeleteJobQueueAsync(DeleteJobQueueRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteSchedulingPolicy /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy service method.</param> /// /// <returns>The response from the DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> DeleteSchedulingPolicyResponse DeleteSchedulingPolicy(DeleteSchedulingPolicyRequest request); /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy 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 DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> Task<DeleteSchedulingPolicyResponse> DeleteSchedulingPolicyAsync(DeleteSchedulingPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeregisterJobDefinition /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition service method.</param> /// /// <returns>The response from the DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> DeregisterJobDefinitionResponse DeregisterJobDefinition(DeregisterJobDefinitionRequest request); /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition 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 DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> Task<DeregisterJobDefinitionResponse> DeregisterJobDefinitionAsync(DeregisterJobDefinitionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeComputeEnvironments /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments service method.</param> /// /// <returns>The response from the DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> DescribeComputeEnvironmentsResponse DescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request); /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments 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 DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> Task<DescribeComputeEnvironmentsResponse> DescribeComputeEnvironmentsAsync(DescribeComputeEnvironmentsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeJobDefinitions /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions service method.</param> /// /// <returns>The response from the DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> DescribeJobDefinitionsResponse DescribeJobDefinitions(DescribeJobDefinitionsRequest request); /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions 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 DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> Task<DescribeJobDefinitionsResponse> DescribeJobDefinitionsAsync(DescribeJobDefinitionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeJobQueues /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues service method.</param> /// /// <returns>The response from the DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> DescribeJobQueuesResponse DescribeJobQueues(DescribeJobQueuesRequest request); /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues 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 DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> Task<DescribeJobQueuesResponse> DescribeJobQueuesAsync(DescribeJobQueuesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeJobs /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs service method.</param> /// /// <returns>The response from the DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> DescribeJobsResponse DescribeJobs(DescribeJobsRequest request); /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs 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 DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> Task<DescribeJobsResponse> DescribeJobsAsync(DescribeJobsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeSchedulingPolicies /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies service method.</param> /// /// <returns>The response from the DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> DescribeSchedulingPoliciesResponse DescribeSchedulingPolicies(DescribeSchedulingPoliciesRequest request); /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies 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 DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> Task<DescribeSchedulingPoliciesResponse> DescribeSchedulingPoliciesAsync(DescribeSchedulingPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListJobs /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs service method.</param> /// /// <returns>The response from the ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> ListJobsResponse ListJobs(ListJobsRequest request); /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs 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 ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> Task<ListJobsResponse> ListJobsAsync(ListJobsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListSchedulingPolicies /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies service method.</param> /// /// <returns>The response from the ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> ListSchedulingPoliciesResponse ListSchedulingPolicies(ListSchedulingPoliciesRequest request); /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies 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 ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> Task<ListSchedulingPoliciesResponse> ListSchedulingPoliciesAsync(ListSchedulingPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterJobDefinition /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition service method.</param> /// /// <returns>The response from the RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> RegisterJobDefinitionResponse RegisterJobDefinition(RegisterJobDefinitionRequest request); /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition 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 RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> Task<RegisterJobDefinitionResponse> RegisterJobDefinitionAsync(RegisterJobDefinitionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SubmitJob /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob service method.</param> /// /// <returns>The response from the SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> SubmitJobResponse SubmitJob(SubmitJobRequest request); /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob 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 SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> Task<SubmitJobResponse> SubmitJobAsync(SubmitJobRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TerminateJob /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob service method.</param> /// /// <returns>The response from the TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> TerminateJobResponse TerminateJob(TerminateJobRequest request); /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob 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 TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> Task<TerminateJobResponse> TerminateJobAsync(TerminateJobRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateComputeEnvironment /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment service method.</param> /// /// <returns>The response from the UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> UpdateComputeEnvironmentResponse UpdateComputeEnvironment(UpdateComputeEnvironmentRequest request); /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment 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 UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> Task<UpdateComputeEnvironmentResponse> UpdateComputeEnvironmentAsync(UpdateComputeEnvironmentRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateJobQueue /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue service method.</param> /// /// <returns>The response from the UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> UpdateJobQueueResponse UpdateJobQueue(UpdateJobQueueRequest request); /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue 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 UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> Task<UpdateJobQueueResponse> UpdateJobQueueAsync(UpdateJobQueueRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateSchedulingPolicy /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy service method.</param> /// /// <returns>The response from the UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> UpdateSchedulingPolicyResponse UpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request); /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy 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 UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> Task<UpdateSchedulingPolicyResponse> UpdateSchedulingPolicyAsync(UpdateSchedulingPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,546
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.Batch.Model; using Amazon.Batch.Model.Internal.MarshallTransformations; using Amazon.Batch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Batch { /// <summary> /// Implementation for accessing Batch /// /// Batch /// <para> /// Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. /// Batch computing is a common means for developers, scientists, and engineers to access /// large amounts of compute resources. Batch uses the advantages of the batch computing /// to remove the undifferentiated heavy lifting of configuring and managing required /// infrastructure. At the same time, it also adopts a familiar batch computing software /// approach. You can use Batch to efficiently provision resources d, and work toward /// eliminating capacity constraints, reducing your overall compute costs, and delivering /// results more quickly. /// </para> /// /// <para> /// As a fully managed service, Batch can run batch computing workloads of any scale. /// Batch automatically provisions compute resources and optimizes workload distribution /// based on the quantity and scale of your specific workloads. With Batch, there's no /// need to install or manage batch computing software. This means that you can focus /// on analyzing results and solving your specific problems instead. /// </para> /// </summary> public partial class AmazonBatchClient : AmazonServiceClient, IAmazonBatch { private static IServiceMetadata serviceMetadata = new AmazonBatchMetadata(); #region Constructors /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient Configuration Object</param> public AmazonBatchClient(AmazonBatchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBatchClient(AWSCredentials credentials) : this(credentials, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBatchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Credentials and an /// AmazonBatchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBatchClient Configuration Object</param> public AmazonBatchClient(AWSCredentials credentials, AmazonBatchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBatchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBatchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBatchClient Configuration Object</param> public AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBatchConfig()) { } /// <summary> /// Constructs AmazonBatchClient 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 AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBatchClient 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 AmazonBatchClient Configuration Object</param> public AmazonBatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IBatchPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBatchPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BatchPaginatorFactory(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 AmazonBatchEndpointResolver()); } /// <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 CancelJob internal virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke<CancelJobResponse>(request, options); } /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob 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 CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return InvokeAsync<CancelJobResponse>(request, options, cancellationToken); } #endregion #region CreateComputeEnvironment internal virtual CreateComputeEnvironmentResponse CreateComputeEnvironment(CreateComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<CreateComputeEnvironmentResponse>(request, options); } /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment 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 CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> public virtual Task<CreateComputeEnvironmentResponse> CreateComputeEnvironmentAsync(CreateComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComputeEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<CreateComputeEnvironmentResponse>(request, options, cancellationToken); } #endregion #region CreateJobQueue internal virtual CreateJobQueueResponse CreateJobQueue(CreateJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobQueueResponseUnmarshaller.Instance; return Invoke<CreateJobQueueResponse>(request, options); } /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue 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 CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> public virtual Task<CreateJobQueueResponse> CreateJobQueueAsync(CreateJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobQueueResponseUnmarshaller.Instance; return InvokeAsync<CreateJobQueueResponse>(request, options, cancellationToken); } #endregion #region CreateSchedulingPolicy internal virtual CreateSchedulingPolicyResponse CreateSchedulingPolicy(CreateSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<CreateSchedulingPolicyResponse>(request, options); } /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy 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 CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> public virtual Task<CreateSchedulingPolicyResponse> CreateSchedulingPolicyAsync(CreateSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSchedulingPolicyResponseUnmarshaller.Instance; return InvokeAsync<CreateSchedulingPolicyResponse>(request, options, cancellationToken); } #endregion #region DeleteComputeEnvironment internal virtual DeleteComputeEnvironmentResponse DeleteComputeEnvironment(DeleteComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<DeleteComputeEnvironmentResponse>(request, options); } /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment 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 DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> public virtual Task<DeleteComputeEnvironmentResponse> DeleteComputeEnvironmentAsync(DeleteComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComputeEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<DeleteComputeEnvironmentResponse>(request, options, cancellationToken); } #endregion #region DeleteJobQueue internal virtual DeleteJobQueueResponse DeleteJobQueue(DeleteJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobQueueResponseUnmarshaller.Instance; return Invoke<DeleteJobQueueResponse>(request, options); } /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue 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 DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> public virtual Task<DeleteJobQueueResponse> DeleteJobQueueAsync(DeleteJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobQueueResponseUnmarshaller.Instance; return InvokeAsync<DeleteJobQueueResponse>(request, options, cancellationToken); } #endregion #region DeleteSchedulingPolicy internal virtual DeleteSchedulingPolicyResponse DeleteSchedulingPolicy(DeleteSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<DeleteSchedulingPolicyResponse>(request, options); } /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy 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 DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> public virtual Task<DeleteSchedulingPolicyResponse> DeleteSchedulingPolicyAsync(DeleteSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSchedulingPolicyResponseUnmarshaller.Instance; return InvokeAsync<DeleteSchedulingPolicyResponse>(request, options, cancellationToken); } #endregion #region DeregisterJobDefinition internal virtual DeregisterJobDefinitionResponse DeregisterJobDefinition(DeregisterJobDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterJobDefinitionResponseUnmarshaller.Instance; return Invoke<DeregisterJobDefinitionResponse>(request, options); } /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition 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 DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> public virtual Task<DeregisterJobDefinitionResponse> DeregisterJobDefinitionAsync(DeregisterJobDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterJobDefinitionResponseUnmarshaller.Instance; return InvokeAsync<DeregisterJobDefinitionResponse>(request, options, cancellationToken); } #endregion #region DescribeComputeEnvironments internal virtual DescribeComputeEnvironmentsResponse DescribeComputeEnvironments(DescribeComputeEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComputeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComputeEnvironmentsResponseUnmarshaller.Instance; return Invoke<DescribeComputeEnvironmentsResponse>(request, options); } /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments 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 DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> public virtual Task<DescribeComputeEnvironmentsResponse> DescribeComputeEnvironmentsAsync(DescribeComputeEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComputeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComputeEnvironmentsResponseUnmarshaller.Instance; return InvokeAsync<DescribeComputeEnvironmentsResponse>(request, options, cancellationToken); } #endregion #region DescribeJobDefinitions internal virtual DescribeJobDefinitionsResponse DescribeJobDefinitions(DescribeJobDefinitionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobDefinitionsResponseUnmarshaller.Instance; return Invoke<DescribeJobDefinitionsResponse>(request, options); } /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions 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 DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> public virtual Task<DescribeJobDefinitionsResponse> DescribeJobDefinitionsAsync(DescribeJobDefinitionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobDefinitionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeJobDefinitionsResponse>(request, options, cancellationToken); } #endregion #region DescribeJobQueues internal virtual DescribeJobQueuesResponse DescribeJobQueues(DescribeJobQueuesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return Invoke<DescribeJobQueuesResponse>(request, options); } /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues 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 DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual Task<DescribeJobQueuesResponse> DescribeJobQueuesAsync(DescribeJobQueuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return InvokeAsync<DescribeJobQueuesResponse>(request, options, cancellationToken); } #endregion #region DescribeJobs internal virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return Invoke<DescribeJobsResponse>(request, options); } /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs 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 DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual Task<DescribeJobsResponse> DescribeJobsAsync(DescribeJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return InvokeAsync<DescribeJobsResponse>(request, options, cancellationToken); } #endregion #region DescribeSchedulingPolicies internal virtual DescribeSchedulingPoliciesResponse DescribeSchedulingPolicies(DescribeSchedulingPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSchedulingPoliciesResponseUnmarshaller.Instance; return Invoke<DescribeSchedulingPoliciesResponse>(request, options); } /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies 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 DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> public virtual Task<DescribeSchedulingPoliciesResponse> DescribeSchedulingPoliciesAsync(DescribeSchedulingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSchedulingPoliciesResponseUnmarshaller.Instance; return InvokeAsync<DescribeSchedulingPoliciesResponse>(request, options, cancellationToken); } #endregion #region ListJobs internal virtual ListJobsResponse ListJobs(ListJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return Invoke<ListJobsResponse>(request, options); } /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs 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 ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> public virtual Task<ListJobsResponse> ListJobsAsync(ListJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return InvokeAsync<ListJobsResponse>(request, options, cancellationToken); } #endregion #region ListSchedulingPolicies internal virtual ListSchedulingPoliciesResponse ListSchedulingPolicies(ListSchedulingPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSchedulingPoliciesResponseUnmarshaller.Instance; return Invoke<ListSchedulingPoliciesResponse>(request, options); } /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies 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 ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> public virtual Task<ListSchedulingPoliciesResponse> ListSchedulingPoliciesAsync(ListSchedulingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSchedulingPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSchedulingPoliciesResponseUnmarshaller.Instance; return InvokeAsync<ListSchedulingPoliciesResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region RegisterJobDefinition internal virtual RegisterJobDefinitionResponse RegisterJobDefinition(RegisterJobDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterJobDefinitionResponseUnmarshaller.Instance; return Invoke<RegisterJobDefinitionResponse>(request, options); } /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition 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 RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> public virtual Task<RegisterJobDefinitionResponse> RegisterJobDefinitionAsync(RegisterJobDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterJobDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterJobDefinitionResponseUnmarshaller.Instance; return InvokeAsync<RegisterJobDefinitionResponse>(request, options, cancellationToken); } #endregion #region SubmitJob internal virtual SubmitJobResponse SubmitJob(SubmitJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SubmitJobRequestMarshaller.Instance; options.ResponseUnmarshaller = SubmitJobResponseUnmarshaller.Instance; return Invoke<SubmitJobResponse>(request, options); } /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob 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 SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> public virtual Task<SubmitJobResponse> SubmitJobAsync(SubmitJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SubmitJobRequestMarshaller.Instance; options.ResponseUnmarshaller = SubmitJobResponseUnmarshaller.Instance; return InvokeAsync<SubmitJobResponse>(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region TerminateJob internal virtual TerminateJobResponse TerminateJob(TerminateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateJobResponseUnmarshaller.Instance; return Invoke<TerminateJobResponse>(request, options); } /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob 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 TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> public virtual Task<TerminateJobResponse> TerminateJobAsync(TerminateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateJobResponseUnmarshaller.Instance; return InvokeAsync<TerminateJobResponse>(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion #region UpdateComputeEnvironment internal virtual UpdateComputeEnvironmentResponse UpdateComputeEnvironment(UpdateComputeEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComputeEnvironmentResponseUnmarshaller.Instance; return Invoke<UpdateComputeEnvironmentResponse>(request, options); } /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment 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 UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> public virtual Task<UpdateComputeEnvironmentResponse> UpdateComputeEnvironmentAsync(UpdateComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComputeEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComputeEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<UpdateComputeEnvironmentResponse>(request, options, cancellationToken); } #endregion #region UpdateJobQueue internal virtual UpdateJobQueueResponse UpdateJobQueue(UpdateJobQueueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobQueueResponseUnmarshaller.Instance; return Invoke<UpdateJobQueueResponse>(request, options); } /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue 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 UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> public virtual Task<UpdateJobQueueResponse> UpdateJobQueueAsync(UpdateJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobQueueRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobQueueResponseUnmarshaller.Instance; return InvokeAsync<UpdateJobQueueResponse>(request, options, cancellationToken); } #endregion #region UpdateSchedulingPolicy internal virtual UpdateSchedulingPolicyResponse UpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSchedulingPolicyResponseUnmarshaller.Instance; return Invoke<UpdateSchedulingPolicyResponse>(request, options); } /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy 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 UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> public virtual Task<UpdateSchedulingPolicyResponse> UpdateSchedulingPolicyAsync(UpdateSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSchedulingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSchedulingPolicyResponseUnmarshaller.Instance; return InvokeAsync<UpdateSchedulingPolicyResponse>(request, options, cancellationToken); } #endregion } }
1,510
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Batch.Model; namespace Amazon.Batch { /// <summary> /// Interface for accessing Batch /// /// Batch /// <para> /// Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. /// Batch computing is a common means for developers, scientists, and engineers to access /// large amounts of compute resources. Batch uses the advantages of the batch computing /// to remove the undifferentiated heavy lifting of configuring and managing required /// infrastructure. At the same time, it also adopts a familiar batch computing software /// approach. You can use Batch to efficiently provision resources d, and work toward /// eliminating capacity constraints, reducing your overall compute costs, and delivering /// results more quickly. /// </para> /// /// <para> /// As a fully managed service, Batch can run batch computing workloads of any scale. /// Batch automatically provisions compute resources and optimizes workload distribution /// based on the quantity and scale of your specific workloads. With Batch, there's no /// need to install or manage batch computing software. This means that you can focus /// on analyzing results and solving your specific problems instead. /// </para> /// </summary> public partial interface IAmazonBatch : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBatchPaginatorFactory Paginators { get; } #endif #region CancelJob /// <summary> /// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or /// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> /// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>. /// /// /// <para> /// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't /// canceled. However, the API operation still succeeds, even if no job is canceled. These /// jobs must be terminated with the <a>TerminateJob</a> operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob 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 CancelJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob">REST API Reference for CancelJob Operation</seealso> Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateComputeEnvironment /// <summary> /// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> /// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 /// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 /// resources. /// /// /// <para> /// In a managed compute environment, Batch manages the capacity and instance types of /// the compute resources within the environment. This is based on the compute resource /// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch /// template</a> that you specify when you create the compute environment. Either, you /// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use /// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally /// set a maximum price so that Spot Instances only launch when the Spot Instance price /// is less than a specified percentage of the On-Demand price. /// </para> /// <note> /// <para> /// Multi-node parallel jobs aren't supported on Spot Instances. /// </para> /// </note> /// <para> /// In an unmanaged compute environment, you can manage your own EC2 compute resources /// and have flexibility with how you configure your compute resources. For example, you /// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon /// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container /// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. /// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> /// operation to find the Amazon ECS cluster that's associated with it. Then, launch your /// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching /// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer /// Guide</i>. /// </para> /// <note> /// <para> /// To create a compute environment that uses EKS resources, the caller must have permissions /// to call <code>eks:DescribeCluster</code>. /// </para> /// </note> <note> /// <para> /// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. /// For example, it also doesn't update the AMIs in your compute environment when a newer /// version of the Amazon ECS optimized AMI is available. You're responsible for the management /// of the guest operating system. This includes any updates and security patches. You're /// also responsible for any additional application software or utilities that you install /// on the compute resources. There are two ways to use a new AMI for your Batch jobs. /// The original method is to complete these steps: /// </para> /// <ol> <li> /// <para> /// Create a new compute environment with the new AMI. /// </para> /// </li> <li> /// <para> /// Add the compute environment to an existing job queue. /// </para> /// </li> <li> /// <para> /// Remove the earlier compute environment from your job queue. /// </para> /// </li> <li> /// <para> /// Delete the earlier compute environment. /// </para> /// </li> </ol> /// <para> /// In April 2022, Batch added enhanced support for updating compute environments. For /// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating /// compute environments</a>. To use the enhanced updating of compute environments to /// update AMIs, follow these rules: /// </para> /// <ul> <li> /// <para> /// Either don't set the service role (<code>serviceRole</code>) parameter or set it to /// the <b>AWSBatchServiceRole</b> service-linked role. /// </para> /// </li> <li> /// <para> /// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code> /// or <code>SPOT_CAPACITY_OPTIMIZED</code>. /// </para> /// </li> <li> /// <para> /// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter /// to <code>true</code>. /// </para> /// </li> <li> /// <para> /// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in /// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html"> /// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>). /// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by /// Batch at the time the infrastructure update is initiated. Alternatively, you can specify /// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters, /// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing /// any of these properties starts an infrastructure update. If the AMI ID is specified /// in the launch template, it can't be replaced by specifying an AMI ID in either the /// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced /// by specifying a different launch template, or if the launch template version is set /// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default /// version for the launch template (if <code>$Default</code>) or by adding a new version /// to the launch template (if <code>$Latest</code>). /// </para> /// </li> </ul> /// <para> /// If these rules are followed, any update that starts an infrastructure update causes /// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template /// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, /// the latest or default version of the launch template is evaluated up at the time of /// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateComputeEnvironment 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 CreateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment">REST API Reference for CreateComputeEnvironment Operation</seealso> Task<CreateComputeEnvironmentResponse> CreateComputeEnvironmentAsync(CreateComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateJobQueue /// <summary> /// Creates an Batch job queue. When you create a job queue, you associate one or more /// compute environments to the queue and assign an order of preference for the compute /// environments. /// /// /// <para> /// You also set a priority to the job queue that determines the order that the Batch /// scheduler places jobs onto its associated compute environments. For example, if a /// compute environment is associated with more than one job queue, the job queue with /// a higher priority is given preference for scheduling jobs to that compute environment. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJobQueue 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 CreateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue">REST API Reference for CreateJobQueue Operation</seealso> Task<CreateJobQueueResponse> CreateJobQueueAsync(CreateJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateSchedulingPolicy /// <summary> /// Creates an Batch scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSchedulingPolicy 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 CreateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateSchedulingPolicy">REST API Reference for CreateSchedulingPolicy Operation</seealso> Task<CreateSchedulingPolicyResponse> CreateSchedulingPolicyAsync(CreateSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteComputeEnvironment /// <summary> /// Deletes an Batch compute environment. /// /// /// <para> /// Before you can delete a compute environment, you must set its state to <code>DISABLED</code> /// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any /// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that /// use Fargate resources must terminate all active jobs on that compute environment before /// deleting the compute environment. If this isn't done, the compute environment enters /// an invalid state. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteComputeEnvironment 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 DeleteComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment">REST API Reference for DeleteComputeEnvironment Operation</seealso> Task<DeleteComputeEnvironmentResponse> DeleteComputeEnvironmentAsync(DeleteComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteJobQueue /// <summary> /// Deletes the specified job queue. You must first disable submissions for a queue with /// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated /// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each /// second. /// /// /// <para> /// It's not necessary to disassociate compute environments from a queue before submitting /// a <code>DeleteJobQueue</code> request. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteJobQueue 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 DeleteJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue">REST API Reference for DeleteJobQueue Operation</seealso> Task<DeleteJobQueueResponse> DeleteJobQueueAsync(DeleteJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteSchedulingPolicy /// <summary> /// Deletes the specified scheduling policy. /// /// /// <para> /// You can't delete a scheduling policy that's used in any job queues. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSchedulingPolicy 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 DeleteSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteSchedulingPolicy">REST API Reference for DeleteSchedulingPolicy Operation</seealso> Task<DeleteSchedulingPolicyResponse> DeleteSchedulingPolicyAsync(DeleteSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeregisterJobDefinition /// <summary> /// Deregisters an Batch job definition. Job definitions are permanently deleted after /// 180 days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterJobDefinition 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 DeregisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition">REST API Reference for DeregisterJobDefinition Operation</seealso> Task<DeregisterJobDefinitionResponse> DeregisterJobDefinitionAsync(DeregisterJobDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeComputeEnvironments /// <summary> /// Describes one or more of your compute environments. /// /// /// <para> /// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> /// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon /// ECS container instances into. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeComputeEnvironments 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 DescribeComputeEnvironments service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments">REST API Reference for DescribeComputeEnvironments Operation</seealso> Task<DescribeComputeEnvironmentsResponse> DescribeComputeEnvironmentsAsync(DescribeComputeEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeJobDefinitions /// <summary> /// Describes a list of job definitions. You can specify a <code>status</code> (such as /// <code>ACTIVE</code>) to only return job definitions that match that status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobDefinitions 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 DescribeJobDefinitions service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions">REST API Reference for DescribeJobDefinitions Operation</seealso> Task<DescribeJobDefinitionsResponse> DescribeJobDefinitionsAsync(DescribeJobDefinitionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeJobQueues /// <summary> /// Describes one or more of your job queues. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues 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 DescribeJobQueues service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> Task<DescribeJobQueuesResponse> DescribeJobQueuesAsync(DescribeJobQueuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeJobs /// <summary> /// Describes a list of Batch jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobs 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 DescribeJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> Task<DescribeJobsResponse> DescribeJobsAsync(DescribeJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeSchedulingPolicies /// <summary> /// Describes one or more of your scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSchedulingPolicies 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 DescribeSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeSchedulingPolicies">REST API Reference for DescribeSchedulingPolicies Operation</seealso> Task<DescribeSchedulingPoliciesResponse> DescribeSchedulingPoliciesAsync(DescribeSchedulingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListJobs /// <summary> /// Returns a list of Batch jobs. /// /// /// <para> /// You must specify only one of the following items: /// </para> /// <ul> <li> /// <para> /// A job queue ID to return a list of jobs in that job queue /// </para> /// </li> <li> /// <para> /// A multi-node parallel job ID to return a list of nodes for that job /// </para> /// </li> <li> /// <para> /// An array job ID to return a list of the children for that job /// </para> /// </li> </ul> /// <para> /// You can filter the results by job status with the <code>jobStatus</code> parameter. /// If you don't specify a status, only <code>RUNNING</code> jobs are returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListJobs 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 ListJobs service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs">REST API Reference for ListJobs Operation</seealso> Task<ListJobsResponse> ListJobsAsync(ListJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListSchedulingPolicies /// <summary> /// Returns a list of Batch scheduling policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSchedulingPolicies 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 ListSchedulingPolicies service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListSchedulingPolicies">REST API Reference for ListSchedulingPolicies Operation</seealso> Task<ListSchedulingPoliciesResponse> ListSchedulingPoliciesAsync(ListSchedulingPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags for an Batch resource. Batch resources that support tags are compute /// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for /// child jobs of array and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterJobDefinition /// <summary> /// Registers an Batch job definition. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterJobDefinition 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 RegisterJobDefinition service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition">REST API Reference for RegisterJobDefinition Operation</seealso> Task<RegisterJobDefinitionResponse> RegisterJobDefinitionAsync(RegisterJobDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SubmitJob /// <summary> /// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> /// override parameters defined in the job definition. vCPU and memory requirements that /// are specified in the <code>resourceRequirements</code> objects in the job definition /// are the exception. They can't be overridden this way using the <code>memory</code> /// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition /// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code> /// parameter. /// /// <note> /// <para> /// Job queues with a scheduling policy are limited to 500 active fair share identifiers /// at a time. /// </para> /// </note> <important> /// <para> /// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. /// This is because, after 14 days, Fargate resources might become unavailable and job /// might be terminated. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SubmitJob 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 SubmitJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob">REST API Reference for SubmitJob Operation</seealso> Task<SubmitJobResponse> SubmitJobAsync(SubmitJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags that are associated with that resource /// are deleted as well. Batch resources that support tags are compute environments, jobs, /// job definitions, job queues, and scheduling policies. ARNs for child jobs of array /// and multi-node parallel (MNP) jobs aren't supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TerminateJob /// <summary> /// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> /// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs /// that have not progressed to the <code>STARTING</code> state are cancelled. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateJob 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 TerminateJob service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob">REST API Reference for TerminateJob Operation</seealso> Task<TerminateJobResponse> TerminateJobAsync(TerminateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Deletes specified tags from an Batch resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateComputeEnvironment /// <summary> /// Updates an Batch compute environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComputeEnvironment 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 UpdateComputeEnvironment service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment">REST API Reference for UpdateComputeEnvironment Operation</seealso> Task<UpdateComputeEnvironmentResponse> UpdateComputeEnvironmentAsync(UpdateComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateJobQueue /// <summary> /// Updates a job queue. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobQueue 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 UpdateJobQueue service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue">REST API Reference for UpdateJobQueue Operation</seealso> Task<UpdateJobQueueResponse> UpdateJobQueueAsync(UpdateJobQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateSchedulingPolicy /// <summary> /// Updates a scheduling policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSchedulingPolicy 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 UpdateSchedulingPolicy service method, as returned by Batch.</returns> /// <exception cref="Amazon.Batch.Model.ClientException"> /// These errors are usually caused by a client action. One example cause is using an /// action or resource on behalf of a user that doesn't have permissions to use the action /// or resource. Another cause is specifying an identifier that's not valid. /// </exception> /// <exception cref="Amazon.Batch.Model.ServerException"> /// These errors are usually caused by a server issue. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateSchedulingPolicy">REST API Reference for UpdateSchedulingPolicy Operation</seealso> Task<UpdateSchedulingPolicyResponse> UpdateSchedulingPolicyAsync(UpdateSchedulingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
901
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.Batch")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Batch. AWS Batch enables developers, scientists, and engineers to easily and efficiently run hundreds of thousands of batch computing jobs on AWS. ")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Batch. AWS Batch enables developers, scientists, and engineers to easily and efficiently run hundreds of thousands of batch computing jobs on AWS. ")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Batch. AWS Batch enables developers, scientists, and engineers to easily and efficiently run hundreds of thousands of batch computing jobs on AWS. ")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Batch. AWS Batch enables developers, scientists, and engineers to easily and efficiently run hundreds of thousands of batch computing jobs on AWS. ")] #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.104.45")] [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 billingconductor-2021-07-30.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.BillingConductor.Internal; namespace Amazon.BillingConductor { /// <summary> /// Configuration for accessing Amazon BillingConductor service /// </summary> [AWSSignerType("v4")] public partial class AmazonBillingConductorConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.105.53"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonBillingConductorConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonBillingConductorDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "billingconductor"; this.EndpointProvider = new AmazonBillingConductorEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "billingconductor"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2021-07-30"; } } /// <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 billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.BillingConductor { /// <summary> /// Configuration for accessing Amazon BillingConductor service /// </summary> public static class AmazonBillingConductorDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// BillingConductor /// </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 billingconductor-2021-07-30.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.BillingConductor.Endpoints { /// <summary> /// Contains parameters used for resolving BillingConductor endpoints /// Parameters can be sourced from client config and service operations /// Used by internal BillingConductorEndpointProvider and BillingConductorEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class BillingConductorEndpointParameters : EndpointParameters { /// <summary> /// BillingConductorEndpointParameters constructor /// </summary> public BillingConductorEndpointParameters() { 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 billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.BillingConductor { ///<summary> /// Common exception for the BillingConductor service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonBillingConductorException : AmazonServiceException { /// <summary> /// Construct instance of AmazonBillingConductorException /// </summary> /// <param name="message"></param> public AmazonBillingConductorException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonBillingConductorException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonBillingConductorException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonBillingConductorException /// </summary> /// <param name="innerException"></param> public AmazonBillingConductorException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonBillingConductorException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonBillingConductorException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonBillingConductorException /// </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 AmazonBillingConductorException(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 AmazonBillingConductorException 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 AmazonBillingConductorException(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 billingconductor-2021-07-30.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.BillingConductor { /// <summary> /// Constants used for properties of type AssociateResourceErrorReason. /// </summary> public class AssociateResourceErrorReason : ConstantClass { /// <summary> /// Constant ILLEGAL_CUSTOMLINEITEM for AssociateResourceErrorReason /// </summary> public static readonly AssociateResourceErrorReason ILLEGAL_CUSTOMLINEITEM = new AssociateResourceErrorReason("ILLEGAL_CUSTOMLINEITEM"); /// <summary> /// Constant INTERNAL_SERVER_EXCEPTION for AssociateResourceErrorReason /// </summary> public static readonly AssociateResourceErrorReason INTERNAL_SERVER_EXCEPTION = new AssociateResourceErrorReason("INTERNAL_SERVER_EXCEPTION"); /// <summary> /// Constant INVALID_ARN for AssociateResourceErrorReason /// </summary> public static readonly AssociateResourceErrorReason INVALID_ARN = new AssociateResourceErrorReason("INVALID_ARN"); /// <summary> /// Constant INVALID_BILLING_PERIOD_RANGE for AssociateResourceErrorReason /// </summary> public static readonly AssociateResourceErrorReason INVALID_BILLING_PERIOD_RANGE = new AssociateResourceErrorReason("INVALID_BILLING_PERIOD_RANGE"); /// <summary> /// Constant SERVICE_LIMIT_EXCEEDED for AssociateResourceErrorReason /// </summary> public static readonly AssociateResourceErrorReason SERVICE_LIMIT_EXCEEDED = new AssociateResourceErrorReason("SERVICE_LIMIT_EXCEEDED"); /// <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 AssociateResourceErrorReason(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 AssociateResourceErrorReason FindValue(string value) { return FindValue<AssociateResourceErrorReason>(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 AssociateResourceErrorReason(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type BillingGroupStatus. /// </summary> public class BillingGroupStatus : ConstantClass { /// <summary> /// Constant ACTIVE for BillingGroupStatus /// </summary> public static readonly BillingGroupStatus ACTIVE = new BillingGroupStatus("ACTIVE"); /// <summary> /// Constant PRIMARY_ACCOUNT_MISSING for BillingGroupStatus /// </summary> public static readonly BillingGroupStatus PRIMARY_ACCOUNT_MISSING = new BillingGroupStatus("PRIMARY_ACCOUNT_MISSING"); /// <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 BillingGroupStatus(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 BillingGroupStatus FindValue(string value) { return FindValue<BillingGroupStatus>(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 BillingGroupStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ConflictExceptionReason. /// </summary> public class ConflictExceptionReason : ConstantClass { /// <summary> /// Constant PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT = new ConflictExceptionReason("PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT"); /// <summary> /// Constant PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT = new ConflictExceptionReason("PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT"); /// <summary> /// Constant PRICING_RULE_IN_PRICING_PLAN_CONFLICT for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason PRICING_RULE_IN_PRICING_PLAN_CONFLICT = new ConflictExceptionReason("PRICING_RULE_IN_PRICING_PLAN_CONFLICT"); /// <summary> /// Constant RESOURCE_NAME_CONFLICT for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason RESOURCE_NAME_CONFLICT = new ConflictExceptionReason("RESOURCE_NAME_CONFLICT"); /// <summary> /// Constant WRITE_CONFLICT_RETRY for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason WRITE_CONFLICT_RETRY = new ConflictExceptionReason("WRITE_CONFLICT_RETRY"); /// <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 ConflictExceptionReason(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 ConflictExceptionReason FindValue(string value) { return FindValue<ConflictExceptionReason>(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 ConflictExceptionReason(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CurrencyCode. /// </summary> public class CurrencyCode : ConstantClass { /// <summary> /// Constant CNY for CurrencyCode /// </summary> public static readonly CurrencyCode CNY = new CurrencyCode("CNY"); /// <summary> /// Constant USD for CurrencyCode /// </summary> public static readonly CurrencyCode USD = new CurrencyCode("USD"); /// <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 CurrencyCode(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 CurrencyCode FindValue(string value) { return FindValue<CurrencyCode>(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 CurrencyCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CustomLineItemRelationship. /// </summary> public class CustomLineItemRelationship : ConstantClass { /// <summary> /// Constant CHILD for CustomLineItemRelationship /// </summary> public static readonly CustomLineItemRelationship CHILD = new CustomLineItemRelationship("CHILD"); /// <summary> /// Constant PARENT for CustomLineItemRelationship /// </summary> public static readonly CustomLineItemRelationship PARENT = new CustomLineItemRelationship("PARENT"); /// <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 CustomLineItemRelationship(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 CustomLineItemRelationship FindValue(string value) { return FindValue<CustomLineItemRelationship>(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 CustomLineItemRelationship(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CustomLineItemType. /// </summary> public class CustomLineItemType : ConstantClass { /// <summary> /// Constant CREDIT for CustomLineItemType /// </summary> public static readonly CustomLineItemType CREDIT = new CustomLineItemType("CREDIT"); /// <summary> /// Constant FEE for CustomLineItemType /// </summary> public static readonly CustomLineItemType FEE = new CustomLineItemType("FEE"); /// <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 CustomLineItemType(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 CustomLineItemType FindValue(string value) { return FindValue<CustomLineItemType>(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 CustomLineItemType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PricingRuleScope. /// </summary> public class PricingRuleScope : ConstantClass { /// <summary> /// Constant BILLING_ENTITY for PricingRuleScope /// </summary> public static readonly PricingRuleScope BILLING_ENTITY = new PricingRuleScope("BILLING_ENTITY"); /// <summary> /// Constant GLOBAL for PricingRuleScope /// </summary> public static readonly PricingRuleScope GLOBAL = new PricingRuleScope("GLOBAL"); /// <summary> /// Constant SERVICE for PricingRuleScope /// </summary> public static readonly PricingRuleScope SERVICE = new PricingRuleScope("SERVICE"); /// <summary> /// Constant SKU for PricingRuleScope /// </summary> public static readonly PricingRuleScope SKU = new PricingRuleScope("SKU"); /// <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 PricingRuleScope(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 PricingRuleScope FindValue(string value) { return FindValue<PricingRuleScope>(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 PricingRuleScope(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PricingRuleType. /// </summary> public class PricingRuleType : ConstantClass { /// <summary> /// Constant DISCOUNT for PricingRuleType /// </summary> public static readonly PricingRuleType DISCOUNT = new PricingRuleType("DISCOUNT"); /// <summary> /// Constant MARKUP for PricingRuleType /// </summary> public static readonly PricingRuleType MARKUP = new PricingRuleType("MARKUP"); /// <summary> /// Constant TIERING for PricingRuleType /// </summary> public static readonly PricingRuleType TIERING = new PricingRuleType("TIERING"); /// <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 PricingRuleType(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 PricingRuleType FindValue(string value) { return FindValue<PricingRuleType>(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 PricingRuleType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ValidationExceptionReason. /// </summary> public class ValidationExceptionReason : ConstantClass { /// <summary> /// Constant ACCOUNTS_ALREADY_ASSOCIATED for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ACCOUNTS_ALREADY_ASSOCIATED = new ValidationExceptionReason("ACCOUNTS_ALREADY_ASSOCIATED"); /// <summary> /// Constant ACCOUNTS_NOT_ASSOCIATED for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ACCOUNTS_NOT_ASSOCIATED = new ValidationExceptionReason("ACCOUNTS_NOT_ASSOCIATED"); /// <summary> /// Constant CANNOT_PARSE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason CANNOT_PARSE = new ValidationExceptionReason("CANNOT_PARSE"); /// <summary> /// Constant CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS = new ValidationExceptionReason("CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS"); /// <summary> /// Constant DUPLICATE_ACCOUNT for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason DUPLICATE_ACCOUNT = new ValidationExceptionReason("DUPLICATE_ACCOUNT"); /// <summary> /// Constant DUPLICATE_PRICINGRULE_ARNS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason DUPLICATE_PRICINGRULE_ARNS = new ValidationExceptionReason("DUPLICATE_PRICINGRULE_ARNS"); /// <summary> /// Constant FIELD_VALIDATION_FAILED for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason FIELD_VALIDATION_FAILED = new ValidationExceptionReason("FIELD_VALIDATION_FAILED"); /// <summary> /// Constant ILLEGAL_ACCOUNTS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_ACCOUNTS = new ValidationExceptionReason("ILLEGAL_ACCOUNTS"); /// <summary> /// Constant ILLEGAL_BILLING_ENTITY for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_BILLING_ENTITY = new ValidationExceptionReason("ILLEGAL_BILLING_ENTITY"); /// <summary> /// Constant ILLEGAL_BILLING_PERIOD for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_BILLING_PERIOD = new ValidationExceptionReason("ILLEGAL_BILLING_PERIOD"); /// <summary> /// Constant ILLEGAL_BILLING_PERIOD_RANGE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_BILLING_PERIOD_RANGE = new ValidationExceptionReason("ILLEGAL_BILLING_PERIOD_RANGE"); /// <summary> /// Constant ILLEGAL_CHARGE_DETAILS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_CHARGE_DETAILS = new ValidationExceptionReason("ILLEGAL_CHARGE_DETAILS"); /// <summary> /// Constant ILLEGAL_CHILD_ASSOCIATE_RESOURCE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_CHILD_ASSOCIATE_RESOURCE = new ValidationExceptionReason("ILLEGAL_CHILD_ASSOCIATE_RESOURCE"); /// <summary> /// Constant ILLEGAL_CUSTOMLINEITEM for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_CUSTOMLINEITEM = new ValidationExceptionReason("ILLEGAL_CUSTOMLINEITEM"); /// <summary> /// Constant ILLEGAL_CUSTOMLINEITEM_MODIFICATION for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_CUSTOMLINEITEM_MODIFICATION = new ValidationExceptionReason("ILLEGAL_CUSTOMLINEITEM_MODIFICATION"); /// <summary> /// Constant ILLEGAL_CUSTOMLINEITEM_UPDATE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_CUSTOMLINEITEM_UPDATE = new ValidationExceptionReason("ILLEGAL_CUSTOMLINEITEM_UPDATE"); /// <summary> /// Constant ILLEGAL_ENDED_BILLINGGROUP for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_ENDED_BILLINGGROUP = new ValidationExceptionReason("ILLEGAL_ENDED_BILLINGGROUP"); /// <summary> /// Constant ILLEGAL_EXPRESSION for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_EXPRESSION = new ValidationExceptionReason("ILLEGAL_EXPRESSION"); /// <summary> /// Constant ILLEGAL_MODIFIER_PERCENTAGE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_MODIFIER_PERCENTAGE = new ValidationExceptionReason("ILLEGAL_MODIFIER_PERCENTAGE"); /// <summary> /// Constant ILLEGAL_OPERATION for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_OPERATION = new ValidationExceptionReason("ILLEGAL_OPERATION"); /// <summary> /// Constant ILLEGAL_PRIMARY_ACCOUNT for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_PRIMARY_ACCOUNT = new ValidationExceptionReason("ILLEGAL_PRIMARY_ACCOUNT"); /// <summary> /// Constant ILLEGAL_RESOURCE_ARNS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_RESOURCE_ARNS = new ValidationExceptionReason("ILLEGAL_RESOURCE_ARNS"); /// <summary> /// Constant ILLEGAL_SCOPE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_SCOPE = new ValidationExceptionReason("ILLEGAL_SCOPE"); /// <summary> /// Constant ILLEGAL_SERVICE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_SERVICE = new ValidationExceptionReason("ILLEGAL_SERVICE"); /// <summary> /// Constant ILLEGAL_TIERING_INPUT for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_TIERING_INPUT = new ValidationExceptionReason("ILLEGAL_TIERING_INPUT"); /// <summary> /// Constant ILLEGAL_TYPE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_TYPE = new ValidationExceptionReason("ILLEGAL_TYPE"); /// <summary> /// Constant ILLEGAL_UPDATE_CHARGE_DETAILS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_UPDATE_CHARGE_DETAILS = new ValidationExceptionReason("ILLEGAL_UPDATE_CHARGE_DETAILS"); /// <summary> /// Constant ILLEGAL_USAGE_TYPE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason ILLEGAL_USAGE_TYPE = new ValidationExceptionReason("ILLEGAL_USAGE_TYPE"); /// <summary> /// Constant INVALID_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_ARN = new ValidationExceptionReason("INVALID_ARN"); /// <summary> /// Constant INVALID_BILLING_GROUP for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_BILLING_GROUP = new ValidationExceptionReason("INVALID_BILLING_GROUP"); /// <summary> /// Constant INVALID_BILLING_GROUP_STATUS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_BILLING_GROUP_STATUS = new ValidationExceptionReason("INVALID_BILLING_GROUP_STATUS"); /// <summary> /// Constant INVALID_BILLING_PERIOD_FOR_OPERATION for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_BILLING_PERIOD_FOR_OPERATION = new ValidationExceptionReason("INVALID_BILLING_PERIOD_FOR_OPERATION"); /// <summary> /// Constant INVALID_BILLINGVIEW_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_BILLINGVIEW_ARN = new ValidationExceptionReason("INVALID_BILLINGVIEW_ARN"); /// <summary> /// Constant INVALID_FILTER for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_FILTER = new ValidationExceptionReason("INVALID_FILTER"); /// <summary> /// Constant INVALID_SKU_COMBO for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_SKU_COMBO = new ValidationExceptionReason("INVALID_SKU_COMBO"); /// <summary> /// Constant INVALID_TIME_RANGE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason INVALID_TIME_RANGE = new ValidationExceptionReason("INVALID_TIME_RANGE"); /// <summary> /// Constant MISMATCHED_BILLINGGROUP_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISMATCHED_BILLINGGROUP_ARN = new ValidationExceptionReason("MISMATCHED_BILLINGGROUP_ARN"); /// <summary> /// Constant MISMATCHED_BILLINGVIEW_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISMATCHED_BILLINGVIEW_ARN = new ValidationExceptionReason("MISMATCHED_BILLINGVIEW_ARN"); /// <summary> /// Constant MISMATCHED_CUSTOMLINEITEM_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISMATCHED_CUSTOMLINEITEM_ARN = new ValidationExceptionReason("MISMATCHED_CUSTOMLINEITEM_ARN"); /// <summary> /// Constant MISMATCHED_PRICINGPLAN_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISMATCHED_PRICINGPLAN_ARN = new ValidationExceptionReason("MISMATCHED_PRICINGPLAN_ARN"); /// <summary> /// Constant MISMATCHED_PRICINGRULE_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISMATCHED_PRICINGRULE_ARN = new ValidationExceptionReason("MISMATCHED_PRICINGRULE_ARN"); /// <summary> /// Constant MISSING_BILLINGGROUP for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISSING_BILLINGGROUP = new ValidationExceptionReason("MISSING_BILLINGGROUP"); /// <summary> /// Constant MISSING_CUSTOMLINEITEM for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISSING_CUSTOMLINEITEM = new ValidationExceptionReason("MISSING_CUSTOMLINEITEM"); /// <summary> /// Constant MISSING_LINKED_ACCOUNT_IDS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISSING_LINKED_ACCOUNT_IDS = new ValidationExceptionReason("MISSING_LINKED_ACCOUNT_IDS"); /// <summary> /// Constant MISSING_PRICING_PLAN_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISSING_PRICING_PLAN_ARN = new ValidationExceptionReason("MISSING_PRICING_PLAN_ARN"); /// <summary> /// Constant MISSING_PRICINGPLAN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MISSING_PRICINGPLAN = new ValidationExceptionReason("MISSING_PRICINGPLAN"); /// <summary> /// Constant MULTIPLE_LINKED_ACCOUNT_IDS for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MULTIPLE_LINKED_ACCOUNT_IDS = new ValidationExceptionReason("MULTIPLE_LINKED_ACCOUNT_IDS"); /// <summary> /// Constant MULTIPLE_PRICING_PLAN_ARN for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MULTIPLE_PRICING_PLAN_ARN = new ValidationExceptionReason("MULTIPLE_PRICING_PLAN_ARN"); /// <summary> /// Constant OTHER for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason OTHER = new ValidationExceptionReason("OTHER"); /// <summary> /// Constant PRICINGRULES_ALREADY_ASSOCIATED for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason PRICINGRULES_ALREADY_ASSOCIATED = new ValidationExceptionReason("PRICINGRULES_ALREADY_ASSOCIATED"); /// <summary> /// Constant PRICINGRULES_NOT_ASSOCIATED for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason PRICINGRULES_NOT_ASSOCIATED = new ValidationExceptionReason("PRICINGRULES_NOT_ASSOCIATED"); /// <summary> /// Constant PRICINGRULES_NOT_EXIST for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason PRICINGRULES_NOT_EXIST = new ValidationExceptionReason("PRICINGRULES_NOT_EXIST"); /// <summary> /// Constant PRIMARY_CANNOT_DISASSOCIATE for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason PRIMARY_CANNOT_DISASSOCIATE = new ValidationExceptionReason("PRIMARY_CANNOT_DISASSOCIATE"); /// <summary> /// Constant PRIMARY_NOT_ASSOCIATED for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason PRIMARY_NOT_ASSOCIATED = new ValidationExceptionReason("PRIMARY_NOT_ASSOCIATED"); /// <summary> /// Constant TOO_MANY_ACCOUNTS_IN_REQUEST for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason TOO_MANY_ACCOUNTS_IN_REQUEST = new ValidationExceptionReason("TOO_MANY_ACCOUNTS_IN_REQUEST"); /// <summary> /// Constant TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST = new ValidationExceptionReason("TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST"); /// <summary> /// Constant UNKNOWN_OPERATION for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason UNKNOWN_OPERATION = new ValidationExceptionReason("UNKNOWN_OPERATION"); /// <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 ValidationExceptionReason(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 ValidationExceptionReason FindValue(string value) { return FindValue<ValidationExceptionReason>(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 ValidationExceptionReason(string value) { return FindValue(value); } } }
732
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Internal { /// <summary> /// Amazon BillingConductor endpoint provider. /// Resolves endpoint for given set of BillingConductorEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonBillingConductorEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for BillingConductorEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if (IsSet(refs["Endpoint"])) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws")) { 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://billingconductor-fips.{Region}.api.aws", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://billingconductor-fips.{Region}.amazonaws.com", 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://billingconductor.{Region}.api.aws", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint("https://billingconductor.us-east-1.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""billingconductor"",""signingRegion"":""us-east-1""}]}", 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://billingconductor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://billingconductor-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://billingconductor.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } if (Equals(refs["Region"], "aws-global")) { return new Endpoint("https://billingconductor.us-east-1.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""billingconductor"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://billingconductor.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
135
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.BillingConductor.Endpoints; #pragma warning disable 1591 namespace Amazon.BillingConductor.Internal { /// <summary> /// Amazon BillingConductor endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for BillingConductor service requests. /// Collects values for BillingConductorEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses BillingConductorEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonBillingConductorEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonBillingConductorConfig)requestContext.ClientConfig; var result = new BillingConductorEndpointParameters(); 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 billingconductor-2021-07-30.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Internal { /// <summary> /// Service metadata for Amazon BillingConductor service /// </summary> public partial class AmazonBillingConductorMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "billingconductor"; } } /// <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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// You do not have sufficient access to perform this action. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonBillingConductorException { /// <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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A representation of a linked account. /// </summary> public partial class AccountAssociationsListElement { private string _accountEmail; private string _accountId; private string _accountName; private string _billingGroupArn; /// <summary> /// Gets and sets the property AccountEmail. /// <para> /// The Amazon Web Services account email. /// </para> /// </summary> [AWSProperty(Sensitive=true)] public string AccountEmail { get { return this._accountEmail; } set { this._accountEmail = value; } } // Check to see if AccountEmail property is set internal bool IsSetAccountEmail() { return this._accountEmail != null; } /// <summary> /// Gets and sets the property AccountId. /// <para> /// The associating array of account IDs. /// </para> /// </summary> public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property AccountName. /// <para> /// The Amazon Web Services account name. /// </para> /// </summary> [AWSProperty(Sensitive=true)] public string AccountName { get { return this._accountName; } set { this._accountName = value; } } // Check to see if AccountName property is set internal bool IsSetAccountName() { return this._accountName != null; } /// <summary> /// Gets and sets the property BillingGroupArn. /// <para> /// The Billing Group Arn that the linked account is associated to. /// </para> /// </summary> public string BillingGroupArn { get { return this._billingGroupArn; } set { this._billingGroupArn = value; } } // Check to see if BillingGroupArn property is set internal bool IsSetBillingGroupArn() { return this._billingGroupArn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// The set of accounts that will be under the billing group. The set of accounts resemble /// the linked accounts in a consolidated family. /// </summary> public partial class AccountGrouping { private List<string> _linkedAccountIds = new List<string>(); /// <summary> /// Gets and sets the property LinkedAccountIds. /// <para> /// The account IDs that make up the billing group. Account IDs must be a part of the /// consolidated billing family, and not associated with another billing group. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=30)] public List<string> LinkedAccountIds { get { return this._linkedAccountIds; } set { this._linkedAccountIds = value; } } // Check to see if LinkedAccountIds property is set internal bool IsSetLinkedAccountIds() { return this._linkedAccountIds != null && this._linkedAccountIds.Count > 0; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using Amazon.Runtime; namespace Amazon.BillingConductor { /// <summary> /// Base class for BillingConductor operation requests. /// </summary> public partial class AmazonBillingConductorRequest : 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the AssociateAccounts operation. /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> public partial class AssociateAccountsRequest : AmazonBillingConductorRequest { private List<string> _accountIds = new List<string>(); private string _arn; /// <summary> /// Gets and sets the property AccountIds. /// <para> /// The associating array of account IDs. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=30)] public List<string> AccountIds { get { return this._accountIds; } set { this._accountIds = value; } } // Check to see if AccountIds property is set internal bool IsSetAccountIds() { return this._accountIds != null && this._accountIds.Count > 0; } /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the billing group that associates the array of /// account IDs. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the AssociateAccounts operation. /// </summary> public partial class AssociateAccountsResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the billing group that associates the array of /// account IDs. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the AssociatePricingRules operation. /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> public partial class AssociatePricingRulesRequest : AmazonBillingConductorRequest { private string _arn; private List<string> _pricingRuleArns = new List<string>(); /// <summary> /// Gets and sets the property Arn. /// <para> /// The <code>PricingPlanArn</code> that the <code>PricingRuleArns</code> are associated /// with. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property PricingRuleArns. /// <para> /// The <code>PricingRuleArns</code> that are associated with the Pricing Plan. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=30)] public List<string> PricingRuleArns { get { return this._pricingRuleArns; } set { this._pricingRuleArns = value; } } // Check to see if PricingRuleArns property is set internal bool IsSetPricingRuleArns() { return this._pricingRuleArns != null && this._pricingRuleArns.Count > 0; } } }
82
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the AssociatePricingRules operation. /// </summary> public partial class AssociatePricingRulesResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The <code>PricingPlanArn</code> that the <code>PricingRuleArns</code> are associated /// with. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A representation of a resource association error. /// </summary> public partial class AssociateResourceError { private string _message; private AssociateResourceErrorReason _reason; /// <summary> /// Gets and sets the property Message. /// <para> /// The reason why the resource association failed. /// </para> /// </summary> public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// <summary> /// Gets and sets the property Reason. /// <para> /// A static error code that's used to classify the type of failure. /// </para> /// </summary> public AssociateResourceErrorReason Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A resource association result for a percentage custom line item. /// </summary> public partial class AssociateResourceResponseElement { private string _arn; private AssociateResourceError _error; /// <summary> /// Gets and sets the property Arn. /// <para> /// The resource ARN that was associated to the custom line item. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Error. /// <para> /// An <code>AssociateResourceError</code> that will populate if the resource association /// fails. /// </para> /// </summary> public AssociateResourceError Error { get { return this._error; } set { this._error = value; } } // Check to see if Error property is set internal bool IsSetError() { return this._error != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the BatchAssociateResourcesToCustomLineItem operation. /// Associates a batch of resources to a percentage custom line item. /// </summary> public partial class BatchAssociateResourcesToCustomLineItemRequest : AmazonBillingConductorRequest { private CustomLineItemBillingPeriodRange _billingPeriodRange; private List<string> _resourceArns = new List<string>(); private string _targetArn; /// <summary> /// Gets and sets the property BillingPeriodRange. /// </summary> public CustomLineItemBillingPeriodRange BillingPeriodRange { get { return this._billingPeriodRange; } set { this._billingPeriodRange = value; } } // Check to see if BillingPeriodRange property is set internal bool IsSetBillingPeriodRange() { return this._billingPeriodRange != null; } /// <summary> /// Gets and sets the property ResourceArns. /// <para> /// A list containing the ARNs of the resources to be associated. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=30)] public List<string> ResourceArns { get { return this._resourceArns; } set { this._resourceArns = value; } } // Check to see if ResourceArns property is set internal bool IsSetResourceArns() { return this._resourceArns != null && this._resourceArns.Count > 0; } /// <summary> /// Gets and sets the property TargetArn. /// <para> /// A percentage custom line item ARN to associate the resources to. /// </para> /// </summary> [AWSProperty(Required=true)] public string TargetArn { get { return this._targetArn; } set { this._targetArn = value; } } // Check to see if TargetArn property is set internal bool IsSetTargetArn() { return this._targetArn != null; } } }
95
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the BatchAssociateResourcesToCustomLineItem operation. /// </summary> public partial class BatchAssociateResourcesToCustomLineItemResponse : AmazonWebServiceResponse { private List<AssociateResourceResponseElement> _failedAssociatedResources = new List<AssociateResourceResponseElement>(); private List<AssociateResourceResponseElement> _successfullyAssociatedResources = new List<AssociateResourceResponseElement>(); /// <summary> /// Gets and sets the property FailedAssociatedResources. /// <para> /// A list of <code>AssociateResourceResponseElement</code> for each resource that failed /// association to a percentage custom line item. /// </para> /// </summary> public List<AssociateResourceResponseElement> FailedAssociatedResources { get { return this._failedAssociatedResources; } set { this._failedAssociatedResources = value; } } // Check to see if FailedAssociatedResources property is set internal bool IsSetFailedAssociatedResources() { return this._failedAssociatedResources != null && this._failedAssociatedResources.Count > 0; } /// <summary> /// Gets and sets the property SuccessfullyAssociatedResources. /// <para> /// A list of <code>AssociateResourceResponseElement</code> for each resource that's /// been associated to a percentage custom line item successfully. /// </para> /// </summary> public List<AssociateResourceResponseElement> SuccessfullyAssociatedResources { get { return this._successfullyAssociatedResources; } set { this._successfullyAssociatedResources = value; } } // Check to see if SuccessfullyAssociatedResources property is set internal bool IsSetSuccessfullyAssociatedResources() { return this._successfullyAssociatedResources != null && this._successfullyAssociatedResources.Count > 0; } } }
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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the BatchDisassociateResourcesFromCustomLineItem operation. /// Disassociates a batch of resources from a percentage custom line item. /// </summary> public partial class BatchDisassociateResourcesFromCustomLineItemRequest : AmazonBillingConductorRequest { private CustomLineItemBillingPeriodRange _billingPeriodRange; private List<string> _resourceArns = new List<string>(); private string _targetArn; /// <summary> /// Gets and sets the property BillingPeriodRange. /// </summary> public CustomLineItemBillingPeriodRange BillingPeriodRange { get { return this._billingPeriodRange; } set { this._billingPeriodRange = value; } } // Check to see if BillingPeriodRange property is set internal bool IsSetBillingPeriodRange() { return this._billingPeriodRange != null; } /// <summary> /// Gets and sets the property ResourceArns. /// <para> /// A list containing the ARNs of resources to be disassociated. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=30)] public List<string> ResourceArns { get { return this._resourceArns; } set { this._resourceArns = value; } } // Check to see if ResourceArns property is set internal bool IsSetResourceArns() { return this._resourceArns != null && this._resourceArns.Count > 0; } /// <summary> /// Gets and sets the property TargetArn. /// <para> /// A percentage custom line item ARN to disassociate the resources from. /// </para> /// </summary> [AWSProperty(Required=true)] public string TargetArn { get { return this._targetArn; } set { this._targetArn = value; } } // Check to see if TargetArn property is set internal bool IsSetTargetArn() { return this._targetArn != null; } } }
95
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the BatchDisassociateResourcesFromCustomLineItem operation. /// </summary> public partial class BatchDisassociateResourcesFromCustomLineItemResponse : AmazonWebServiceResponse { private List<DisassociateResourceResponseElement> _failedDisassociatedResources = new List<DisassociateResourceResponseElement>(); private List<DisassociateResourceResponseElement> _successfullyDisassociatedResources = new List<DisassociateResourceResponseElement>(); /// <summary> /// Gets and sets the property FailedDisassociatedResources. /// <para> /// A list of <code>DisassociateResourceResponseElement</code> for each resource that /// failed disassociation from a percentage custom line item. /// </para> /// </summary> public List<DisassociateResourceResponseElement> FailedDisassociatedResources { get { return this._failedDisassociatedResources; } set { this._failedDisassociatedResources = value; } } // Check to see if FailedDisassociatedResources property is set internal bool IsSetFailedDisassociatedResources() { return this._failedDisassociatedResources != null && this._failedDisassociatedResources.Count > 0; } /// <summary> /// Gets and sets the property SuccessfullyDisassociatedResources. /// <para> /// A list of <code>DisassociateResourceResponseElement</code> for each resource that's /// been disassociated from a percentage custom line item successfully. /// </para> /// </summary> public List<DisassociateResourceResponseElement> SuccessfullyDisassociatedResources { get { return this._successfullyDisassociatedResources; } set { this._successfullyDisassociatedResources = value; } } // Check to see if SuccessfullyDisassociatedResources property is set internal bool IsSetSuccessfullyDisassociatedResources() { return this._successfullyDisassociatedResources != null && this._successfullyDisassociatedResources.Count > 0; } } }
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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A summary report of actual Amazon Web Services charges and calculated Amazon Web Services /// charges, based on the associated pricing plan of a billing group. /// </summary> public partial class BillingGroupCostReportElement { private string _arn; private string _awsCost; private string _currency; private string _margin; private string _marginPercentage; private string _proformaCost; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of a billing group. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property AWSCost. /// <para> /// The actual Amazon Web Services charges for the billing group. /// </para> /// </summary> public string AWSCost { get { return this._awsCost; } set { this._awsCost = value; } } // Check to see if AWSCost property is set internal bool IsSetAWSCost() { return this._awsCost != null; } /// <summary> /// Gets and sets the property Currency. /// <para> /// The displayed currency. /// </para> /// </summary> public string Currency { get { return this._currency; } set { this._currency = value; } } // Check to see if Currency property is set internal bool IsSetCurrency() { return this._currency != null; } /// <summary> /// Gets and sets the property Margin. /// <para> /// The billing group margin. /// </para> /// </summary> public string Margin { get { return this._margin; } set { this._margin = value; } } // Check to see if Margin property is set internal bool IsSetMargin() { return this._margin != null; } /// <summary> /// Gets and sets the property MarginPercentage. /// <para> /// The percentage of billing group margin. /// </para> /// </summary> public string MarginPercentage { get { return this._marginPercentage; } set { this._marginPercentage = value; } } // Check to see if MarginPercentage property is set internal bool IsSetMarginPercentage() { return this._marginPercentage != null; } /// <summary> /// Gets and sets the property ProformaCost. /// <para> /// The hypothetical Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </para> /// </summary> public string ProformaCost { get { return this._proformaCost; } set { this._proformaCost = value; } } // Check to see if ProformaCost property is set internal bool IsSetProformaCost() { return this._proformaCost != null; } } }
154
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A representation of a billing group. /// </summary> public partial class BillingGroupListElement { private string _arn; private ComputationPreference _computationPreference; private long? _creationTime; private string _description; private long? _lastModifiedTime; private string _name; private string _primaryAccountId; private long? _size; private BillingGroupStatus _status; private string _statusReason; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Number (ARN) that can be used to uniquely identify the billing /// group. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property ComputationPreference. /// </summary> public ComputationPreference ComputationPreference { get { return this._computationPreference; } set { this._computationPreference = value; } } // Check to see if ComputationPreference property is set internal bool IsSetComputationPreference() { return this._computationPreference != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time when the billing group was created. /// </para> /// </summary> public long CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the billing group. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time when the billing group was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the billing group. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property PrimaryAccountId. /// <para> /// The account ID that serves as the main account in a billing group. /// </para> /// </summary> public string PrimaryAccountId { get { return this._primaryAccountId; } set { this._primaryAccountId = value; } } // Check to see if PrimaryAccountId property is set internal bool IsSetPrimaryAccountId() { return this._primaryAccountId != null; } /// <summary> /// Gets and sets the property Size. /// <para> /// The number of accounts in the particular billing group. /// </para> /// </summary> [AWSProperty(Min=0)] public long Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The billing group status. Only one of the valid values can be used. /// </para> /// </summary> public BillingGroupStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property StatusReason. /// <para> /// The reason why the billing group is in its current status. /// </para> /// </summary> public string StatusReason { get { return this._statusReason; } set { this._statusReason = value; } } // Check to see if StatusReason property is set internal bool IsSetStatusReason() { return this._statusReason != null; } } }
229
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// The preferences and settings that will be used to compute the Amazon Web Services /// charges for a billing group. /// </summary> public partial class ComputationPreference { private string _pricingPlanArn; /// <summary> /// Gets and sets the property PricingPlanArn. /// <para> /// The Amazon Resource Name (ARN) of the pricing plan that's used to compute the Amazon /// Web Services charges for a billing group. /// </para> /// </summary> [AWSProperty(Required=true)] public string PricingPlanArn { get { return this._pricingPlanArn; } set { this._pricingPlanArn = value; } } // Check to see if PricingPlanArn property is set internal bool IsSetPricingPlanArn() { return this._pricingPlanArn != null; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// You can cause an inconsistent state by updating or deleting a resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConflictException : AmazonBillingConductorException { private ConflictExceptionReason _reason; private string _resourceId; private string _resourceType; /// <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) { this.Reason = (ConflictExceptionReason)info.GetValue("Reason", typeof(ConflictExceptionReason)); this.ResourceId = (string)info.GetValue("ResourceId", typeof(string)); this.ResourceType = (string)info.GetValue("ResourceType", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Reason", this.Reason); info.AddValue("ResourceId", this.ResourceId); info.AddValue("ResourceType", this.ResourceType); } #endif /// <summary> /// Gets and sets the property Reason. /// <para> /// Reason for the inconsistent state. /// </para> /// </summary> public ConflictExceptionReason Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Identifier of the resource in use. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property ResourceType. /// <para> /// Type of the resource in use. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } } }
189
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the CreateBillingGroup operation. /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> public partial class CreateBillingGroupRequest : AmazonBillingConductorRequest { private AccountGrouping _accountGrouping; private string _clientToken; private ComputationPreference _computationPreference; private string _description; private string _name; private string _primaryAccountId; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property AccountGrouping. /// <para> /// The set of accounts that will be under the billing group. The set of accounts resemble /// the linked accounts in a consolidated family. /// </para> /// </summary> [AWSProperty(Required=true)] public AccountGrouping AccountGrouping { get { return this._accountGrouping; } set { this._accountGrouping = value; } } // Check to see if AccountGrouping property is set internal bool IsSetAccountGrouping() { return this._accountGrouping != null; } /// <summary> /// Gets and sets the property ClientToken. /// <para> /// The token that is needed to support idempotency. Idempotency isn't currently supported, /// but will be implemented in a future update. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property ComputationPreference. /// <para> /// The preferences and settings that will be used to compute the Amazon Web Services /// charges for a billing group. /// </para> /// </summary> [AWSProperty(Required=true)] public ComputationPreference ComputationPreference { get { return this._computationPreference; } set { this._computationPreference = value; } } // Check to see if ComputationPreference property is set internal bool IsSetComputationPreference() { return this._computationPreference != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the billing group. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The billing group name. The names must be unique. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property PrimaryAccountId. /// <para> /// The account ID that serves as the main account in a billing group. /// </para> /// </summary> public string PrimaryAccountId { get { return this._primaryAccountId; } set { this._primaryAccountId = value; } } // Check to see if PrimaryAccountId property is set internal bool IsSetPrimaryAccountId() { return this._primaryAccountId != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A map that contains tag keys and tag values that are attached to a billing group. /// This feature isn't available during the beta. /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
183
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the CreateBillingGroup operation. /// </summary> public partial class CreateBillingGroupResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the created billing group. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the CreateCustomLineItem operation. /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> public partial class CreateCustomLineItemRequest : AmazonBillingConductorRequest { private string _billingGroupArn; private CustomLineItemBillingPeriodRange _billingPeriodRange; private CustomLineItemChargeDetails _chargeDetails; private string _clientToken; private string _description; private string _name; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property BillingGroupArn. /// <para> /// The Amazon Resource Name (ARN) that references the billing group where the custom /// line item applies to. /// </para> /// </summary> [AWSProperty(Required=true)] public string BillingGroupArn { get { return this._billingGroupArn; } set { this._billingGroupArn = value; } } // Check to see if BillingGroupArn property is set internal bool IsSetBillingGroupArn() { return this._billingGroupArn != null; } /// <summary> /// Gets and sets the property BillingPeriodRange. /// <para> /// A time range for which the custom line item is effective. /// </para> /// </summary> public CustomLineItemBillingPeriodRange BillingPeriodRange { get { return this._billingPeriodRange; } set { this._billingPeriodRange = value; } } // Check to see if BillingPeriodRange property is set internal bool IsSetBillingPeriodRange() { return this._billingPeriodRange != null; } /// <summary> /// Gets and sets the property ChargeDetails. /// <para> /// A <code>CustomLineItemChargeDetails</code> that describes the charge details for /// a custom line item. /// </para> /// </summary> [AWSProperty(Required=true)] public CustomLineItemChargeDetails ChargeDetails { get { return this._chargeDetails; } set { this._chargeDetails = value; } } // Check to see if ChargeDetails property is set internal bool IsSetChargeDetails() { return this._chargeDetails != null; } /// <summary> /// Gets and sets the property ClientToken. /// <para> /// The token that is needed to support idempotency. Idempotency isn't currently supported, /// but will be implemented in a future update. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the custom line item. This is shown on the Bills page in association /// with the charge value. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=255)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the custom line item. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A map that contains tag keys and tag values that are attached to a custom line item. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
185
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the CreateCustomLineItem operation. /// </summary> public partial class CreateCustomLineItemResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the created custom line item. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// The possible Amazon Web Services Free Tier configurations. /// </summary> public partial class CreateFreeTierConfig { private bool? _activated; /// <summary> /// Gets and sets the property Activated. /// <para> /// Activate or deactivate Amazon Web Services Free Tier. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Activated { get { return this._activated.GetValueOrDefault(); } set { this._activated = value; } } // Check to see if Activated property is set internal bool IsSetActivated() { return this._activated.HasValue; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the CreatePricingPlan operation. /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> public partial class CreatePricingPlanRequest : AmazonBillingConductorRequest { private string _clientToken; private string _description; private string _name; private List<string> _pricingRuleArns = new List<string>(); private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ClientToken. /// <para> /// The token that is needed to support idempotency. Idempotency isn't currently supported, /// but will be implemented in a future update. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the pricing plan. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the pricing plan. The names must be unique to each pricing plan. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property PricingRuleArns. /// <para> /// A list of Amazon Resource Names (ARNs) that define the pricing plan parameters. /// </para> /// </summary> [AWSProperty(Min=0, Max=30)] public List<string> PricingRuleArns { get { return this._pricingRuleArns; } set { this._pricingRuleArns = value; } } // Check to see if PricingRuleArns property is set internal bool IsSetPricingRuleArns() { return this._pricingRuleArns != null && this._pricingRuleArns.Count > 0; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A map that contains tag keys and tag values that are attached to a pricing plan. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the CreatePricingPlan operation. /// </summary> public partial class CreatePricingPlanResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the created pricing plan. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the CreatePricingRule operation. /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> public partial class CreatePricingRuleRequest : AmazonBillingConductorRequest { private string _billingEntity; private string _clientToken; private string _description; private double? _modifierPercentage; private string _name; private string _operation; private PricingRuleScope _scope; private string _service; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private CreateTieringInput _tiering; private PricingRuleType _type; private string _usageType; /// <summary> /// Gets and sets the property BillingEntity. /// <para> /// The seller of services provided by Amazon Web Services, their affiliates, or third-party /// providers selling services via Amazon Web Services Marketplace. /// </para> /// </summary> public string BillingEntity { get { return this._billingEntity; } set { this._billingEntity = value; } } // Check to see if BillingEntity property is set internal bool IsSetBillingEntity() { return this._billingEntity != null; } /// <summary> /// Gets and sets the property ClientToken. /// <para> /// The token that's needed to support idempotency. Idempotency isn't currently supported, /// but will be implemented in a future update. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The pricing rule description. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property ModifierPercentage. /// <para> /// A percentage modifier that's applied on the public pricing rates. /// </para> /// </summary> [AWSProperty(Min=0)] public double ModifierPercentage { get { return this._modifierPercentage.GetValueOrDefault(); } set { this._modifierPercentage = value; } } // Check to see if ModifierPercentage property is set internal bool IsSetModifierPercentage() { return this._modifierPercentage.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The pricing rule name. The names must be unique to each pricing rule. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Operation. /// <para> /// Operation is the specific Amazon Web Services action covered by this line item. This /// describes the specific usage of the line item. /// </para> /// /// <para> /// If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates /// which operation the <code>PricingRule</code> is modifying. For example, a value of /// <code>RunInstances:0202</code> indicates the operation of running an Amazon EC2 instance. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string Operation { get { return this._operation; } set { this._operation = value; } } // Check to see if Operation property is set internal bool IsSetOperation() { return this._operation != null; } /// <summary> /// Gets and sets the property Scope. /// <para> /// The scope of pricing rule that indicates if it's globally applicable, or it's service-specific. /// /// </para> /// </summary> [AWSProperty(Required=true)] public PricingRuleScope Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// If the <code>Scope</code> attribute is set to <code>SERVICE</code> or <code>SKU</code>, /// the attribute indicates which service the <code>PricingRule</code> is applicable for. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A map that contains tag keys and tag values that are attached to a pricing rule. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property Tiering. /// <para> /// The set of tiering configurations for the pricing rule. /// </para> /// </summary> public CreateTieringInput Tiering { get { return this._tiering; } set { this._tiering = value; } } // Check to see if Tiering property is set internal bool IsSetTiering() { return this._tiering != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of pricing rule. /// </para> /// </summary> [AWSProperty(Required=true)] public PricingRuleType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property UsageType. /// <para> /// Usage type is the unit that each service uses to measure the usage of a specific /// type of resource. /// </para> /// /// <para> /// If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates /// which usage type the <code>PricingRule</code> is modifying. For example, <code>USW2-BoxUsage:m2.2xlarge</code> /// describes an<code> M2 High Memory Double Extra Large</code> instance in the US West /// (Oregon) Region. <pre><code>&lt;/p&gt; </code></pre> /// </summary> [AWSProperty(Min=1, Max=256)] public string UsageType { get { return this._usageType; } set { this._usageType = value; } } // Check to see if UsageType property is set internal bool IsSetUsageType() { return this._usageType != null; } } }
297
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the CreatePricingRule operation. /// </summary> public partial class CreatePricingRuleResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the created pricing rule. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// The set of tiering configurations for the pricing rule. /// </summary> public partial class CreateTieringInput { private CreateFreeTierConfig _freeTier; /// <summary> /// Gets and sets the property FreeTier. /// <para> /// The possible Amazon Web Services Free Tier configurations. /// </para> /// </summary> [AWSProperty(Required=true)] public CreateFreeTierConfig FreeTier { get { return this._freeTier; } set { this._freeTier = value; } } // Check to see if FreeTier property is set internal bool IsSetFreeTier() { return this._freeTier != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// The billing period range in which the custom line item request will be applied. /// </summary> public partial class CustomLineItemBillingPeriodRange { private string _exclusiveEndBillingPeriod; private string _inclusiveStartBillingPeriod; /// <summary> /// Gets and sets the property ExclusiveEndBillingPeriod. /// <para> /// The inclusive end billing period that defines a billing period range where a custom /// line is applied. /// </para> /// </summary> public string ExclusiveEndBillingPeriod { get { return this._exclusiveEndBillingPeriod; } set { this._exclusiveEndBillingPeriod = value; } } // Check to see if ExclusiveEndBillingPeriod property is set internal bool IsSetExclusiveEndBillingPeriod() { return this._exclusiveEndBillingPeriod != null; } /// <summary> /// Gets and sets the property InclusiveStartBillingPeriod. /// <para> /// The inclusive start billing period that defines a billing period range where a custom /// line is applied. /// </para> /// </summary> [AWSProperty(Required=true)] public string InclusiveStartBillingPeriod { get { return this._inclusiveStartBillingPeriod; } set { this._inclusiveStartBillingPeriod = value; } } // Check to see if InclusiveStartBillingPeriod property is set internal bool IsSetInclusiveStartBillingPeriod() { return this._inclusiveStartBillingPeriod != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// The charge details of a custom line item. It should contain only one of <code>Flat</code> /// or <code>Percentage</code>. /// </summary> public partial class CustomLineItemChargeDetails { private CustomLineItemFlatChargeDetails _flat; private CustomLineItemPercentageChargeDetails _percentage; private CustomLineItemType _type; /// <summary> /// Gets and sets the property Flat. /// <para> /// A <code>CustomLineItemFlatChargeDetails</code> that describes the charge details /// of a flat custom line item. /// </para> /// </summary> public CustomLineItemFlatChargeDetails Flat { get { return this._flat; } set { this._flat = value; } } // Check to see if Flat property is set internal bool IsSetFlat() { return this._flat != null; } /// <summary> /// Gets and sets the property Percentage. /// <para> /// A <code>CustomLineItemPercentageChargeDetails</code> that describes the charge details /// of a percentage custom line item. /// </para> /// </summary> public CustomLineItemPercentageChargeDetails Percentage { get { return this._percentage; } set { this._percentage = value; } } // Check to see if Percentage property is set internal bool IsSetPercentage() { return this._percentage != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of the custom line item that indicates whether the charge is a fee or credit. /// /// </para> /// </summary> [AWSProperty(Required=true)] public CustomLineItemType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A representation of the charge details that are associated with a flat custom line /// item. /// </summary> public partial class CustomLineItemFlatChargeDetails { private double? _chargeValue; /// <summary> /// Gets and sets the property ChargeValue. /// <para> /// The custom line item's fixed charge value in USD. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1000000)] public double ChargeValue { get { return this._chargeValue.GetValueOrDefault(); } set { this._chargeValue = value; } } // Check to see if ChargeValue property is set internal bool IsSetChargeValue() { return this._chargeValue.HasValue; } } }
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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A representation of a custom line item. /// </summary> public partial class CustomLineItemListElement { private string _arn; private long? _associationSize; private string _billingGroupArn; private ListCustomLineItemChargeDetails _chargeDetails; private long? _creationTime; private CurrencyCode _currencyCode; private string _description; private long? _lastModifiedTime; private string _name; private string _productCode; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Names (ARNs) for custom line items. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property AssociationSize. /// <para> /// The number of resources that are associated to the custom line item. /// </para> /// </summary> [AWSProperty(Min=0)] public long AssociationSize { get { return this._associationSize.GetValueOrDefault(); } set { this._associationSize = value; } } // Check to see if AssociationSize property is set internal bool IsSetAssociationSize() { return this._associationSize.HasValue; } /// <summary> /// Gets and sets the property BillingGroupArn. /// <para> /// The Amazon Resource Name (ARN) that references the billing group where the custom /// line item applies to. /// </para> /// </summary> public string BillingGroupArn { get { return this._billingGroupArn; } set { this._billingGroupArn = value; } } // Check to see if BillingGroupArn property is set internal bool IsSetBillingGroupArn() { return this._billingGroupArn != null; } /// <summary> /// Gets and sets the property ChargeDetails. /// <para> /// A <code>ListCustomLineItemChargeDetails</code> that describes the charge details /// of a custom line item. /// </para> /// </summary> public ListCustomLineItemChargeDetails ChargeDetails { get { return this._chargeDetails; } set { this._chargeDetails = value; } } // Check to see if ChargeDetails property is set internal bool IsSetChargeDetails() { return this._chargeDetails != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time created. /// </para> /// </summary> public long CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property CurrencyCode. /// <para> /// The custom line item's charge value currency. Only one of the valid values can be /// used. /// </para> /// </summary> public CurrencyCode CurrencyCode { get { return this._currencyCode; } set { this._currencyCode = value; } } // Check to see if CurrencyCode property is set internal bool IsSetCurrencyCode() { return this._currencyCode != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The custom line item's description. This is shown on the Bills page in association /// with the charge value. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=255)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time when the custom line item was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The custom line item's name. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ProductCode. /// <para> /// The product code that's associated with the custom line item. /// </para> /// </summary> [AWSProperty(Min=1, Max=29)] public string ProductCode { get { return this._productCode; } set { this._productCode = value; } } // Check to see if ProductCode property is set internal bool IsSetProductCode() { return this._productCode != null; } } }
236
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A representation of the charge details that are associated with a percentage custom /// line item. /// </summary> public partial class CustomLineItemPercentageChargeDetails { private List<string> _associatedValues = new List<string>(); private double? _percentageValue; /// <summary> /// Gets and sets the property AssociatedValues. /// <para> /// A list of resource ARNs to associate to the percentage custom line item. /// </para> /// </summary> [AWSProperty(Min=0, Max=5)] public List<string> AssociatedValues { get { return this._associatedValues; } set { this._associatedValues = value; } } // Check to see if AssociatedValues property is set internal bool IsSetAssociatedValues() { return this._associatedValues != null && this._associatedValues.Count > 0; } /// <summary> /// Gets and sets the property PercentageValue. /// <para> /// The custom line item's percentage value. This will be multiplied against the combined /// value of its associated resources to determine its charge value. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=10000)] public double PercentageValue { get { return this._percentageValue.GetValueOrDefault(); } set { this._percentageValue = value; } } // Check to see if PercentageValue property is set internal bool IsSetPercentageValue() { return this._percentageValue.HasValue; } } }
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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// A representation of a custom line item version. /// </summary> public partial class CustomLineItemVersionListElement { private string _arn; private long? _associationSize; private string _billingGroupArn; private ListCustomLineItemChargeDetails _chargeDetails; private long? _creationTime; private CurrencyCode _currencyCode; private string _description; private string _endBillingPeriod; private long? _lastModifiedTime; private string _name; private string _productCode; private string _startBillingPeriod; private long? _startTime; /// <summary> /// Gets and sets the property Arn. /// <para> /// A list of custom line item Amazon Resource Names (ARNs) to retrieve information. /// /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property AssociationSize. /// <para> /// The number of resources that are associated with the custom line item. /// </para> /// </summary> [AWSProperty(Min=0)] public long AssociationSize { get { return this._associationSize.GetValueOrDefault(); } set { this._associationSize = value; } } // Check to see if AssociationSize property is set internal bool IsSetAssociationSize() { return this._associationSize.HasValue; } /// <summary> /// Gets and sets the property BillingGroupArn. /// <para> /// The Amazon Resource Name (ARN) of the billing group that the custom line item applies /// to. /// </para> /// </summary> public string BillingGroupArn { get { return this._billingGroupArn; } set { this._billingGroupArn = value; } } // Check to see if BillingGroupArn property is set internal bool IsSetBillingGroupArn() { return this._billingGroupArn != null; } /// <summary> /// Gets and sets the property ChargeDetails. /// </summary> public ListCustomLineItemChargeDetails ChargeDetails { get { return this._chargeDetails; } set { this._chargeDetails = value; } } // Check to see if ChargeDetails property is set internal bool IsSetChargeDetails() { return this._chargeDetails != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time when the custom line item version was created. /// </para> /// </summary> public long CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property CurrencyCode. /// <para> /// The charge value currency of the custom line item. /// </para> /// </summary> public CurrencyCode CurrencyCode { get { return this._currencyCode; } set { this._currencyCode = value; } } // Check to see if CurrencyCode property is set internal bool IsSetCurrencyCode() { return this._currencyCode != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the custom line item. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=255)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property EndBillingPeriod. /// <para> /// The end billing period of the custom line item version. /// </para> /// </summary> public string EndBillingPeriod { get { return this._endBillingPeriod; } set { this._endBillingPeriod = value; } } // Check to see if EndBillingPeriod property is set internal bool IsSetEndBillingPeriod() { return this._endBillingPeriod != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time that the custom line item version was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the custom line item. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ProductCode. /// <para> /// The product code that’s associated with the custom line item. /// </para> /// </summary> [AWSProperty(Min=1, Max=29)] public string ProductCode { get { return this._productCode; } set { this._productCode = value; } } // Check to see if ProductCode property is set internal bool IsSetProductCode() { return this._productCode != null; } /// <summary> /// Gets and sets the property StartBillingPeriod. /// <para> /// The start billing period of the custom line item version. /// </para> /// </summary> public string StartBillingPeriod { get { return this._startBillingPeriod; } set { this._startBillingPeriod = value; } } // Check to see if StartBillingPeriod property is set internal bool IsSetStartBillingPeriod() { return this._startBillingPeriod != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The inclusive start time. /// </para> /// </summary> public long StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } } }
288
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the DeleteBillingGroup operation. /// Deletes a billing group. /// </summary> public partial class DeleteBillingGroupRequest : AmazonBillingConductorRequest { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the billing group that you're deleting. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the DeleteBillingGroup operation. /// </summary> public partial class DeleteBillingGroupResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the deleted billing group. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the DeleteCustomLineItem operation. /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> public partial class DeleteCustomLineItemRequest : AmazonBillingConductorRequest { private string _arn; private CustomLineItemBillingPeriodRange _billingPeriodRange; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the custom line item to be deleted. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property BillingPeriodRange. /// </summary> public CustomLineItemBillingPeriodRange BillingPeriodRange { get { return this._billingPeriodRange; } set { this._billingPeriodRange = value; } } // Check to see if BillingPeriodRange property is set internal bool IsSetBillingPeriodRange() { return this._billingPeriodRange != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the DeleteCustomLineItem operation. /// </summary> public partial class DeleteCustomLineItemResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// Then ARN of the deleted custom line item. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != 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 billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// Container for the parameters to the DeletePricingPlan operation. /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> public partial class DeletePricingPlanRequest : AmazonBillingConductorRequest { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the pricing plan that you're deleting. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model { /// <summary> /// This is the response object from the DeletePricingPlan operation. /// </summary> public partial class DeletePricingPlanResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the deleted pricing plan. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
57