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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// StartSchemaMerge Request Marshaller /// </summary> public class StartSchemaMergeRequestMarshaller : IMarshaller<IRequest, StartSchemaMergeRequest> , 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((StartSchemaMergeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StartSchemaMergeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetAssociationId()) throw new AmazonAppSyncException("Request object does not have required field AssociationId set"); request.AddPathResource("{associationId}", StringUtils.FromString(publicRequest.AssociationId)); if (!publicRequest.IsSetMergedApiIdentifier()) throw new AmazonAppSyncException("Request object does not have required field MergedApiIdentifier set"); request.AddPathResource("{mergedApiIdentifier}", StringUtils.FromString(publicRequest.MergedApiIdentifier)); request.ResourcePath = "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge"; return request; } private static StartSchemaMergeRequestMarshaller _instance = new StartSchemaMergeRequestMarshaller(); internal static StartSchemaMergeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartSchemaMergeRequestMarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StartSchemaMerge operation /// </summary> public class StartSchemaMergeResponseUnmarshaller : 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) { StartSchemaMergeResponse response = new StartSchemaMergeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("sourceApiAssociationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SourceApiAssociationStatus = 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("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static StartSchemaMergeResponseUnmarshaller _instance = new StartSchemaMergeResponseUnmarshaller(); internal static StartSchemaMergeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartSchemaMergeResponseUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// SyncConfig Marshaller /// </summary> public class SyncConfigMarshaller : IRequestMarshaller<SyncConfig, 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(SyncConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetConflictDetection()) { context.Writer.WritePropertyName("conflictDetection"); context.Writer.Write(requestObject.ConflictDetection); } if(requestObject.IsSetConflictHandler()) { context.Writer.WritePropertyName("conflictHandler"); context.Writer.Write(requestObject.ConflictHandler); } if(requestObject.IsSetLambdaConflictHandlerConfig()) { context.Writer.WritePropertyName("lambdaConflictHandlerConfig"); context.Writer.WriteObjectStart(); var marshaller = LambdaConflictHandlerConfigMarshaller.Instance; marshaller.Marshall(requestObject.LambdaConflictHandlerConfig, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SyncConfigMarshaller Instance = new SyncConfigMarshaller(); } }
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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SyncConfig Object /// </summary> public class SyncConfigUnmarshaller : IUnmarshaller<SyncConfig, XmlUnmarshallerContext>, IUnmarshaller<SyncConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SyncConfig IUnmarshaller<SyncConfig, 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 SyncConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SyncConfig unmarshalledObject = new SyncConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("conflictDetection", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConflictDetection = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("conflictHandler", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConflictHandler = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lambdaConflictHandlerConfig", targetDepth)) { var unmarshaller = LambdaConflictHandlerConfigUnmarshaller.Instance; unmarshalledObject.LambdaConflictHandlerConfig = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SyncConfigUnmarshaller _instance = new SyncConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SyncConfigUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.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.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetResourceArn()) throw new AmazonAppSyncException("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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.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("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(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; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Type Object /// </summary> public class TypeUnmarshaller : IUnmarshaller<Type, XmlUnmarshallerContext>, IUnmarshaller<Type, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Type IUnmarshaller<Type, 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 Type Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Type unmarshalledObject = new Type(); 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("definition", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Definition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("format", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Format = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TypeUnmarshaller _instance = new TypeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnauthorizedException Object /// </summary> public class UnauthorizedExceptionUnmarshaller : IErrorResponseUnmarshaller<UnauthorizedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public UnauthorizedException 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 UnauthorizedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); UnauthorizedException unmarshalledObject = new UnauthorizedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static UnauthorizedExceptionUnmarshaller _instance = new UnauthorizedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UnauthorizedExceptionUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.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.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetResourceArn()) throw new AmazonAppSyncException("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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.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("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(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; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateApiCache Request Marshaller /// </summary> public class UpdateApiCacheRequestMarshaller : IMarshaller<IRequest, UpdateApiCacheRequest> , 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((UpdateApiCacheRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateApiCacheRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}/ApiCaches/update"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetApiCachingBehavior()) { context.Writer.WritePropertyName("apiCachingBehavior"); context.Writer.Write(publicRequest.ApiCachingBehavior); } if(publicRequest.IsSetTtl()) { context.Writer.WritePropertyName("ttl"); context.Writer.Write(publicRequest.Ttl); } if(publicRequest.IsSetType()) { context.Writer.WritePropertyName("type"); context.Writer.Write(publicRequest.Type); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateApiCacheRequestMarshaller _instance = new UpdateApiCacheRequestMarshaller(); internal static UpdateApiCacheRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateApiCacheRequestMarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateApiCache operation /// </summary> public class UpdateApiCacheResponseUnmarshaller : 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) { UpdateApiCacheResponse response = new UpdateApiCacheResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiCache", targetDepth)) { var unmarshaller = ApiCacheUnmarshaller.Instance; response.ApiCache = 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("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateApiCacheResponseUnmarshaller _instance = new UpdateApiCacheResponseUnmarshaller(); internal static UpdateApiCacheResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateApiCacheResponseUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateApiKey Request Marshaller /// </summary> public class UpdateApiKeyRequestMarshaller : IMarshaller<IRequest, UpdateApiKeyRequest> , 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((UpdateApiKeyRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateApiKeyRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetId()) throw new AmazonAppSyncException("Request object does not have required field Id set"); request.AddPathResource("{id}", StringUtils.FromString(publicRequest.Id)); request.ResourcePath = "/v1/apis/{apiId}/apikeys/{id}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetExpires()) { context.Writer.WritePropertyName("expires"); context.Writer.Write(publicRequest.Expires); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateApiKeyRequestMarshaller _instance = new UpdateApiKeyRequestMarshaller(); internal static UpdateApiKeyRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateApiKeyRequestMarshaller Instance { get { return _instance; } } } }
113
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateApiKey operation /// </summary> public class UpdateApiKeyResponseUnmarshaller : 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) { UpdateApiKeyResponse response = new UpdateApiKeyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiKey", targetDepth)) { var unmarshaller = ApiKeyUnmarshaller.Instance; response.ApiKey = 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("ApiKeyValidityOutOfBoundsException")) { return ApiKeyValidityOutOfBoundsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateApiKeyResponseUnmarshaller _instance = new UpdateApiKeyResponseUnmarshaller(); internal static UpdateApiKeyResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateApiKeyResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateDataSource Request Marshaller /// </summary> public class UpdateDataSourceRequestMarshaller : IMarshaller<IRequest, UpdateDataSourceRequest> , 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((UpdateDataSourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateDataSourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetName()) throw new AmazonAppSyncException("Request object does not have required field Name set"); request.AddPathResource("{name}", StringUtils.FromString(publicRequest.Name)); request.ResourcePath = "/v1/apis/{apiId}/datasources/{name}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetDynamodbConfig()) { context.Writer.WritePropertyName("dynamodbConfig"); context.Writer.WriteObjectStart(); var marshaller = DynamodbDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.DynamodbConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetElasticsearchConfig()) { context.Writer.WritePropertyName("elasticsearchConfig"); context.Writer.WriteObjectStart(); var marshaller = ElasticsearchDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.ElasticsearchConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetEventBridgeConfig()) { context.Writer.WritePropertyName("eventBridgeConfig"); context.Writer.WriteObjectStart(); var marshaller = EventBridgeDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.EventBridgeConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetHttpConfig()) { context.Writer.WritePropertyName("httpConfig"); context.Writer.WriteObjectStart(); var marshaller = HttpDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.HttpConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLambdaConfig()) { context.Writer.WritePropertyName("lambdaConfig"); context.Writer.WriteObjectStart(); var marshaller = LambdaDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.LambdaConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetOpenSearchServiceConfig()) { context.Writer.WritePropertyName("openSearchServiceConfig"); context.Writer.WriteObjectStart(); var marshaller = OpenSearchServiceDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.OpenSearchServiceConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetRelationalDatabaseConfig()) { context.Writer.WritePropertyName("relationalDatabaseConfig"); context.Writer.WriteObjectStart(); var marshaller = RelationalDatabaseDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.RelationalDatabaseConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetServiceRoleArn()) { context.Writer.WritePropertyName("serviceRoleArn"); context.Writer.Write(publicRequest.ServiceRoleArn); } if(publicRequest.IsSetType()) { context.Writer.WritePropertyName("type"); context.Writer.Write(publicRequest.Type); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateDataSourceRequestMarshaller _instance = new UpdateDataSourceRequestMarshaller(); internal static UpdateDataSourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDataSourceRequestMarshaller Instance { get { return _instance; } } } }
196
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateDataSource operation /// </summary> public class UpdateDataSourceResponseUnmarshaller : 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) { UpdateDataSourceResponse response = new UpdateDataSourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("dataSource", targetDepth)) { var unmarshaller = DataSourceUnmarshaller.Instance; response.DataSource = 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("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateDataSourceResponseUnmarshaller _instance = new UpdateDataSourceResponseUnmarshaller(); internal static UpdateDataSourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDataSourceResponseUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateDomainName Request Marshaller /// </summary> public class UpdateDomainNameRequestMarshaller : IMarshaller<IRequest, UpdateDomainNameRequest> , 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((UpdateDomainNameRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateDomainNameRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetDomainName()) throw new AmazonAppSyncException("Request object does not have required field DomainName set"); request.AddPathResource("{domainName}", StringUtils.FromString(publicRequest.DomainName)); request.ResourcePath = "/v1/domainnames/{domainName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateDomainNameRequestMarshaller _instance = new UpdateDomainNameRequestMarshaller(); internal static UpdateDomainNameRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDomainNameRequestMarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateDomainName operation /// </summary> public class UpdateDomainNameResponseUnmarshaller : 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) { UpdateDomainNameResponse response = new UpdateDomainNameResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("domainNameConfig", targetDepth)) { var unmarshaller = DomainNameConfigUnmarshaller.Instance; response.DomainNameConfig = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateDomainNameResponseUnmarshaller _instance = new UpdateDomainNameResponseUnmarshaller(); internal static UpdateDomainNameResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDomainNameResponseUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateFunction Request Marshaller /// </summary> public class UpdateFunctionRequestMarshaller : IMarshaller<IRequest, UpdateFunctionRequest> , 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((UpdateFunctionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateFunctionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetFunctionId()) throw new AmazonAppSyncException("Request object does not have required field FunctionId set"); request.AddPathResource("{functionId}", StringUtils.FromString(publicRequest.FunctionId)); request.ResourcePath = "/v1/apis/{apiId}/functions/{functionId}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCode()) { context.Writer.WritePropertyName("code"); context.Writer.Write(publicRequest.Code); } if(publicRequest.IsSetDataSourceName()) { context.Writer.WritePropertyName("dataSourceName"); context.Writer.Write(publicRequest.DataSourceName); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetFunctionVersion()) { context.Writer.WritePropertyName("functionVersion"); context.Writer.Write(publicRequest.FunctionVersion); } if(publicRequest.IsSetMaxBatchSize()) { context.Writer.WritePropertyName("maxBatchSize"); context.Writer.Write(publicRequest.MaxBatchSize); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetRequestMappingTemplate()) { context.Writer.WritePropertyName("requestMappingTemplate"); context.Writer.Write(publicRequest.RequestMappingTemplate); } if(publicRequest.IsSetResponseMappingTemplate()) { context.Writer.WritePropertyName("responseMappingTemplate"); context.Writer.Write(publicRequest.ResponseMappingTemplate); } if(publicRequest.IsSetRuntime()) { context.Writer.WritePropertyName("runtime"); context.Writer.WriteObjectStart(); var marshaller = AppSyncRuntimeMarshaller.Instance; marshaller.Marshall(publicRequest.Runtime, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSyncConfig()) { context.Writer.WritePropertyName("syncConfig"); context.Writer.WriteObjectStart(); var marshaller = SyncConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SyncConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateFunctionRequestMarshaller _instance = new UpdateFunctionRequestMarshaller(); internal static UpdateFunctionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateFunctionRequestMarshaller Instance { get { return _instance; } } } }
171
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateFunction operation /// </summary> public class UpdateFunctionResponseUnmarshaller : 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) { UpdateFunctionResponse response = new UpdateFunctionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("functionConfiguration", targetDepth)) { var unmarshaller = FunctionConfigurationUnmarshaller.Instance; response.FunctionConfiguration = 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("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateFunctionResponseUnmarshaller _instance = new UpdateFunctionResponseUnmarshaller(); internal static UpdateFunctionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateFunctionResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateGraphqlApi Request Marshaller /// </summary> public class UpdateGraphqlApiRequestMarshaller : IMarshaller<IRequest, UpdateGraphqlApiRequest> , 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((UpdateGraphqlApiRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateGraphqlApiRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAdditionalAuthenticationProviders()) { context.Writer.WritePropertyName("additionalAuthenticationProviders"); context.Writer.WriteArrayStart(); foreach(var publicRequestAdditionalAuthenticationProvidersListValue in publicRequest.AdditionalAuthenticationProviders) { context.Writer.WriteObjectStart(); var marshaller = AdditionalAuthenticationProviderMarshaller.Instance; marshaller.Marshall(publicRequestAdditionalAuthenticationProvidersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetAuthenticationType()) { context.Writer.WritePropertyName("authenticationType"); context.Writer.Write(publicRequest.AuthenticationType); } if(publicRequest.IsSetLambdaAuthorizerConfig()) { context.Writer.WritePropertyName("lambdaAuthorizerConfig"); context.Writer.WriteObjectStart(); var marshaller = LambdaAuthorizerConfigMarshaller.Instance; marshaller.Marshall(publicRequest.LambdaAuthorizerConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLogConfig()) { context.Writer.WritePropertyName("logConfig"); context.Writer.WriteObjectStart(); var marshaller = LogConfigMarshaller.Instance; marshaller.Marshall(publicRequest.LogConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMergedApiExecutionRoleArn()) { context.Writer.WritePropertyName("mergedApiExecutionRoleArn"); context.Writer.Write(publicRequest.MergedApiExecutionRoleArn); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetOpenIDConnectConfig()) { context.Writer.WritePropertyName("openIDConnectConfig"); context.Writer.WriteObjectStart(); var marshaller = OpenIDConnectConfigMarshaller.Instance; marshaller.Marshall(publicRequest.OpenIDConnectConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetOwnerContact()) { context.Writer.WritePropertyName("ownerContact"); context.Writer.Write(publicRequest.OwnerContact); } if(publicRequest.IsSetUserPoolConfig()) { context.Writer.WritePropertyName("userPoolConfig"); context.Writer.WriteObjectStart(); var marshaller = UserPoolConfigMarshaller.Instance; marshaller.Marshall(publicRequest.UserPoolConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetXrayEnabled()) { context.Writer.WritePropertyName("xrayEnabled"); context.Writer.Write(publicRequest.XrayEnabled); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateGraphqlApiRequestMarshaller _instance = new UpdateGraphqlApiRequestMarshaller(); internal static UpdateGraphqlApiRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGraphqlApiRequestMarshaller Instance { get { return _instance; } } } }
188
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateGraphqlApi operation /// </summary> public class UpdateGraphqlApiResponseUnmarshaller : 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) { UpdateGraphqlApiResponse response = new UpdateGraphqlApiResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("graphqlApi", targetDepth)) { var unmarshaller = GraphqlApiUnmarshaller.Instance; response.GraphqlApi = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateGraphqlApiResponseUnmarshaller _instance = new UpdateGraphqlApiResponseUnmarshaller(); internal static UpdateGraphqlApiResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGraphqlApiResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateResolver Request Marshaller /// </summary> public class UpdateResolverRequestMarshaller : IMarshaller<IRequest, UpdateResolverRequest> , 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((UpdateResolverRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateResolverRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetFieldName()) throw new AmazonAppSyncException("Request object does not have required field FieldName set"); request.AddPathResource("{fieldName}", StringUtils.FromString(publicRequest.FieldName)); if (!publicRequest.IsSetTypeName()) throw new AmazonAppSyncException("Request object does not have required field TypeName set"); request.AddPathResource("{typeName}", StringUtils.FromString(publicRequest.TypeName)); request.ResourcePath = "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCachingConfig()) { context.Writer.WritePropertyName("cachingConfig"); context.Writer.WriteObjectStart(); var marshaller = CachingConfigMarshaller.Instance; marshaller.Marshall(publicRequest.CachingConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetCode()) { context.Writer.WritePropertyName("code"); context.Writer.Write(publicRequest.Code); } if(publicRequest.IsSetDataSourceName()) { context.Writer.WritePropertyName("dataSourceName"); context.Writer.Write(publicRequest.DataSourceName); } if(publicRequest.IsSetKind()) { context.Writer.WritePropertyName("kind"); context.Writer.Write(publicRequest.Kind); } if(publicRequest.IsSetMaxBatchSize()) { context.Writer.WritePropertyName("maxBatchSize"); context.Writer.Write(publicRequest.MaxBatchSize); } if(publicRequest.IsSetPipelineConfig()) { context.Writer.WritePropertyName("pipelineConfig"); context.Writer.WriteObjectStart(); var marshaller = PipelineConfigMarshaller.Instance; marshaller.Marshall(publicRequest.PipelineConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetRequestMappingTemplate()) { context.Writer.WritePropertyName("requestMappingTemplate"); context.Writer.Write(publicRequest.RequestMappingTemplate); } if(publicRequest.IsSetResponseMappingTemplate()) { context.Writer.WritePropertyName("responseMappingTemplate"); context.Writer.Write(publicRequest.ResponseMappingTemplate); } if(publicRequest.IsSetRuntime()) { context.Writer.WritePropertyName("runtime"); context.Writer.WriteObjectStart(); var marshaller = AppSyncRuntimeMarshaller.Instance; marshaller.Marshall(publicRequest.Runtime, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSyncConfig()) { context.Writer.WritePropertyName("syncConfig"); context.Writer.WriteObjectStart(); var marshaller = SyncConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SyncConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateResolverRequestMarshaller _instance = new UpdateResolverRequestMarshaller(); internal static UpdateResolverRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateResolverRequestMarshaller Instance { get { return _instance; } } } }
184
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateResolver operation /// </summary> public class UpdateResolverResponseUnmarshaller : 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) { UpdateResolverResponse response = new UpdateResolverResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("resolver", targetDepth)) { var unmarshaller = ResolverUnmarshaller.Instance; response.Resolver = 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("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateResolverResponseUnmarshaller _instance = new UpdateResolverResponseUnmarshaller(); internal static UpdateResolverResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateResolverResponseUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateSourceApiAssociation Request Marshaller /// </summary> public class UpdateSourceApiAssociationRequestMarshaller : IMarshaller<IRequest, UpdateSourceApiAssociationRequest> , 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((UpdateSourceApiAssociationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateSourceApiAssociationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetAssociationId()) throw new AmazonAppSyncException("Request object does not have required field AssociationId set"); request.AddPathResource("{associationId}", StringUtils.FromString(publicRequest.AssociationId)); if (!publicRequest.IsSetMergedApiIdentifier()) throw new AmazonAppSyncException("Request object does not have required field MergedApiIdentifier set"); request.AddPathResource("{mergedApiIdentifier}", StringUtils.FromString(publicRequest.MergedApiIdentifier)); request.ResourcePath = "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetSourceApiAssociationConfig()) { context.Writer.WritePropertyName("sourceApiAssociationConfig"); context.Writer.WriteObjectStart(); var marshaller = SourceApiAssociationConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SourceApiAssociationConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateSourceApiAssociationRequestMarshaller _instance = new UpdateSourceApiAssociationRequestMarshaller(); internal static UpdateSourceApiAssociationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSourceApiAssociationRequestMarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateSourceApiAssociation operation /// </summary> public class UpdateSourceApiAssociationResponseUnmarshaller : 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) { UpdateSourceApiAssociationResponse response = new UpdateSourceApiAssociationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("sourceApiAssociation", targetDepth)) { var unmarshaller = SourceApiAssociationUnmarshaller.Instance; response.SourceApiAssociation = 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("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateSourceApiAssociationResponseUnmarshaller _instance = new UpdateSourceApiAssociationResponseUnmarshaller(); internal static UpdateSourceApiAssociationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSourceApiAssociationResponseUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UpdateType Request Marshaller /// </summary> public class UpdateTypeRequestMarshaller : IMarshaller<IRequest, UpdateTypeRequest> , 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((UpdateTypeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateTypeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetTypeName()) throw new AmazonAppSyncException("Request object does not have required field TypeName set"); request.AddPathResource("{typeName}", StringUtils.FromString(publicRequest.TypeName)); request.ResourcePath = "/v1/apis/{apiId}/types/{typeName}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDefinition()) { context.Writer.WritePropertyName("definition"); context.Writer.Write(publicRequest.Definition); } if(publicRequest.IsSetFormat()) { context.Writer.WritePropertyName("format"); context.Writer.Write(publicRequest.Format); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateTypeRequestMarshaller _instance = new UpdateTypeRequestMarshaller(); internal static UpdateTypeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateTypeRequestMarshaller Instance { get { return _instance; } } } }
113
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateType operation /// </summary> public class UpdateTypeResponseUnmarshaller : 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) { UpdateTypeResponse response = new UpdateTypeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("type", targetDepth)) { var unmarshaller = TypeUnmarshaller.Instance; response.Type = 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("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateTypeResponseUnmarshaller _instance = new UpdateTypeResponseUnmarshaller(); internal static UpdateTypeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateTypeResponseUnmarshaller 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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// UserPoolConfig Marshaller /// </summary> public class UserPoolConfigMarshaller : IRequestMarshaller<UserPoolConfig, 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(UserPoolConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAppIdClientRegex()) { context.Writer.WritePropertyName("appIdClientRegex"); context.Writer.Write(requestObject.AppIdClientRegex); } if(requestObject.IsSetAwsRegion()) { context.Writer.WritePropertyName("awsRegion"); context.Writer.Write(requestObject.AwsRegion); } if(requestObject.IsSetDefaultAction()) { context.Writer.WritePropertyName("defaultAction"); context.Writer.Write(requestObject.DefaultAction); } if(requestObject.IsSetUserPoolId()) { context.Writer.WritePropertyName("userPoolId"); context.Writer.Write(requestObject.UserPoolId); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UserPoolConfigMarshaller Instance = new UserPoolConfigMarshaller(); } }
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 appsync-2017-07-25.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.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UserPoolConfig Object /// </summary> public class UserPoolConfigUnmarshaller : IUnmarshaller<UserPoolConfig, XmlUnmarshallerContext>, IUnmarshaller<UserPoolConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UserPoolConfig IUnmarshaller<UserPoolConfig, 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 UserPoolConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UserPoolConfig unmarshalledObject = new UserPoolConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("appIdClientRegex", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppIdClientRegex = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awsRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("defaultAction", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultAction = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("userPoolId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserPoolId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UserPoolConfigUnmarshaller _instance = new UserPoolConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UserPoolConfigUnmarshaller 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 appsync-2017-07-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.AppSync.Model; using Amazon.AppSync.Model.Internal.MarshallTransformations; using Amazon.AppSync.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AppSync { /// <summary> /// Implementation for accessing AppSync /// /// AppSync provides API actions for creating and interacting with data sources using /// GraphQL from your application. /// </summary> public partial class AmazonAppSyncClient : AmazonServiceClient, IAmazonAppSync { private static IServiceMetadata serviceMetadata = new AmazonAppSyncMetadata(); #region Constructors /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(AmazonAppSyncConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAppSyncClient(AWSCredentials credentials) : this(credentials, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAppSyncClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials and an /// AmazonAppSyncClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(AWSCredentials credentials, AmazonAppSyncConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppSyncConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppSyncClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppSyncConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppSyncClient 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 AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppSyncConfig 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 AmazonAppSyncEndpointResolver()); } /// <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 AssociateApi /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi service method.</param> /// /// <returns>The response from the AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> public virtual AssociateApiResponse AssociateApi(AssociateApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApiResponseUnmarshaller.Instance; return Invoke<AssociateApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AssociateApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateApi operation on AmazonAppSyncClient.</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 EndAssociateApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> public virtual IAsyncResult BeginAssociateApi(AssociateApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AssociateApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateApi.</param> /// /// <returns>Returns a AssociateApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> public virtual AssociateApiResponse EndAssociateApi(IAsyncResult asyncResult) { return EndInvoke<AssociateApiResponse>(asyncResult); } #endregion #region AssociateMergedGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> public virtual AssociateMergedGraphqlApiResponse AssociateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateMergedGraphqlApiResponseUnmarshaller.Instance; return Invoke<AssociateMergedGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AssociateMergedGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi operation on AmazonAppSyncClient.</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 EndAssociateMergedGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> public virtual IAsyncResult BeginAssociateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateMergedGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AssociateMergedGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateMergedGraphqlApi.</param> /// /// <returns>Returns a AssociateMergedGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> public virtual AssociateMergedGraphqlApiResponse EndAssociateMergedGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<AssociateMergedGraphqlApiResponse>(asyncResult); } #endregion #region AssociateSourceGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> public virtual AssociateSourceGraphqlApiResponse AssociateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateSourceGraphqlApiResponseUnmarshaller.Instance; return Invoke<AssociateSourceGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AssociateSourceGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi operation on AmazonAppSyncClient.</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 EndAssociateSourceGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> public virtual IAsyncResult BeginAssociateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateSourceGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AssociateSourceGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateSourceGraphqlApi.</param> /// /// <returns>Returns a AssociateSourceGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> public virtual AssociateSourceGraphqlApiResponse EndAssociateSourceGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<AssociateSourceGraphqlApiResponse>(asyncResult); } #endregion #region CreateApiCache /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache service method.</param> /// /// <returns>The response from the CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> public virtual CreateApiCacheResponse CreateApiCache(CreateApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiCacheResponseUnmarshaller.Instance; return Invoke<CreateApiCacheResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateApiCache operation on AmazonAppSyncClient.</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 EndCreateApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> public virtual IAsyncResult BeginCreateApiCache(CreateApiCacheRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiCacheResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApiCache.</param> /// /// <returns>Returns a CreateApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> public virtual CreateApiCacheResponse EndCreateApiCache(IAsyncResult asyncResult) { return EndInvoke<CreateApiCacheResponse>(asyncResult); } #endregion #region CreateApiKey /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey service method.</param> /// /// <returns>The response from the CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance; return Invoke<CreateApiKeyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateApiKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateApiKey operation on AmazonAppSyncClient.</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 EndCreateApiKey /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> public virtual IAsyncResult BeginCreateApiKey(CreateApiKeyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateApiKey operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApiKey.</param> /// /// <returns>Returns a CreateApiKeyResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> public virtual CreateApiKeyResponse EndCreateApiKey(IAsyncResult asyncResult) { return EndInvoke<CreateApiKeyResponse>(asyncResult); } #endregion #region CreateDataSource /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource service method.</param> /// /// <returns>The response from the CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> public virtual CreateDataSourceResponse CreateDataSource(CreateDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance; return Invoke<CreateDataSourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDataSource operation on AmazonAppSyncClient.</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 EndCreateDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> public virtual IAsyncResult BeginCreateDataSource(CreateDataSourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDataSource.</param> /// /// <returns>Returns a CreateDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> public virtual CreateDataSourceResponse EndCreateDataSource(IAsyncResult asyncResult) { return EndInvoke<CreateDataSourceResponse>(asyncResult); } #endregion #region CreateDomainName /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName service method.</param> /// /// <returns>The response from the CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> public virtual CreateDomainNameResponse CreateDomainName(CreateDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance; return Invoke<CreateDomainNameResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDomainName operation on AmazonAppSyncClient.</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 EndCreateDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> public virtual IAsyncResult BeginCreateDomainName(CreateDomainNameRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDomainName.</param> /// /// <returns>Returns a CreateDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> public virtual CreateDomainNameResponse EndCreateDomainName(IAsyncResult asyncResult) { return EndInvoke<CreateDomainNameResponse>(asyncResult); } #endregion #region CreateFunction /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction service method.</param> /// /// <returns>The response from the CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> public virtual CreateFunctionResponse CreateFunction(CreateFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return Invoke<CreateFunctionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateFunction operation on AmazonAppSyncClient.</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 EndCreateFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> public virtual IAsyncResult BeginCreateFunction(CreateFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFunction.</param> /// /// <returns>Returns a CreateFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> public virtual CreateFunctionResponse EndCreateFunction(IAsyncResult asyncResult) { return EndInvoke<CreateFunctionResponse>(asyncResult); } #endregion #region CreateGraphqlApi /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi service method.</param> /// /// <returns>The response from the CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> public virtual CreateGraphqlApiResponse CreateGraphqlApi(CreateGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGraphqlApiResponseUnmarshaller.Instance; return Invoke<CreateGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi operation on AmazonAppSyncClient.</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 EndCreateGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> public virtual IAsyncResult BeginCreateGraphqlApi(CreateGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateGraphqlApi.</param> /// /// <returns>Returns a CreateGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> public virtual CreateGraphqlApiResponse EndCreateGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<CreateGraphqlApiResponse>(asyncResult); } #endregion #region CreateResolver /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver service method.</param> /// /// <returns>The response from the CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> public virtual CreateResolverResponse CreateResolver(CreateResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResolverResponseUnmarshaller.Instance; return Invoke<CreateResolverResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateResolver operation on AmazonAppSyncClient.</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 EndCreateResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> public virtual IAsyncResult BeginCreateResolver(CreateResolverRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResolverResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateResolver.</param> /// /// <returns>Returns a CreateResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> public virtual CreateResolverResponse EndCreateResolver(IAsyncResult asyncResult) { return EndInvoke<CreateResolverResponse>(asyncResult); } #endregion #region CreateType /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType service method.</param> /// /// <returns>The response from the CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> public virtual CreateTypeResponse CreateType(CreateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTypeResponseUnmarshaller.Instance; return Invoke<CreateTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateType operation on AmazonAppSyncClient.</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 EndCreateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> public virtual IAsyncResult BeginCreateType(CreateTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateType.</param> /// /// <returns>Returns a CreateTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> public virtual CreateTypeResponse EndCreateType(IAsyncResult asyncResult) { return EndInvoke<CreateTypeResponse>(asyncResult); } #endregion #region DeleteApiCache /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache service method.</param> /// /// <returns>The response from the DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> public virtual DeleteApiCacheResponse DeleteApiCache(DeleteApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiCacheResponseUnmarshaller.Instance; return Invoke<DeleteApiCacheResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache operation on AmazonAppSyncClient.</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 EndDeleteApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> public virtual IAsyncResult BeginDeleteApiCache(DeleteApiCacheRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiCacheResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApiCache.</param> /// /// <returns>Returns a DeleteApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> public virtual DeleteApiCacheResponse EndDeleteApiCache(IAsyncResult asyncResult) { return EndInvoke<DeleteApiCacheResponse>(asyncResult); } #endregion #region DeleteApiKey /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey service method.</param> /// /// <returns>The response from the DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> public virtual DeleteApiKeyResponse DeleteApiKey(DeleteApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiKeyResponseUnmarshaller.Instance; return Invoke<DeleteApiKeyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteApiKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey operation on AmazonAppSyncClient.</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 EndDeleteApiKey /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> public virtual IAsyncResult BeginDeleteApiKey(DeleteApiKeyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiKeyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteApiKey operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApiKey.</param> /// /// <returns>Returns a DeleteApiKeyResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> public virtual DeleteApiKeyResponse EndDeleteApiKey(IAsyncResult asyncResult) { return EndInvoke<DeleteApiKeyResponse>(asyncResult); } #endregion #region DeleteDataSource /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource service method.</param> /// /// <returns>The response from the DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> public virtual DeleteDataSourceResponse DeleteDataSource(DeleteDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataSourceResponseUnmarshaller.Instance; return Invoke<DeleteDataSourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource operation on AmazonAppSyncClient.</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 EndDeleteDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> public virtual IAsyncResult BeginDeleteDataSource(DeleteDataSourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataSourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDataSource.</param> /// /// <returns>Returns a DeleteDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> public virtual DeleteDataSourceResponse EndDeleteDataSource(IAsyncResult asyncResult) { return EndInvoke<DeleteDataSourceResponse>(asyncResult); } #endregion #region DeleteDomainName /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName service method.</param> /// /// <returns>The response from the DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> public virtual DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance; return Invoke<DeleteDomainNameResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName operation on AmazonAppSyncClient.</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 EndDeleteDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> public virtual IAsyncResult BeginDeleteDomainName(DeleteDomainNameRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDomainName.</param> /// /// <returns>Returns a DeleteDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> public virtual DeleteDomainNameResponse EndDeleteDomainName(IAsyncResult asyncResult) { return EndInvoke<DeleteDomainNameResponse>(asyncResult); } #endregion #region DeleteFunction /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction service method.</param> /// /// <returns>The response from the DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> public virtual DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return Invoke<DeleteFunctionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteFunction operation on AmazonAppSyncClient.</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 EndDeleteFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> public virtual IAsyncResult BeginDeleteFunction(DeleteFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFunction.</param> /// /// <returns>Returns a DeleteFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> public virtual DeleteFunctionResponse EndDeleteFunction(IAsyncResult asyncResult) { return EndInvoke<DeleteFunctionResponse>(asyncResult); } #endregion #region DeleteGraphqlApi /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi service method.</param> /// /// <returns>The response from the DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> public virtual DeleteGraphqlApiResponse DeleteGraphqlApi(DeleteGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGraphqlApiResponseUnmarshaller.Instance; return Invoke<DeleteGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi operation on AmazonAppSyncClient.</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 EndDeleteGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> public virtual IAsyncResult BeginDeleteGraphqlApi(DeleteGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteGraphqlApi.</param> /// /// <returns>Returns a DeleteGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> public virtual DeleteGraphqlApiResponse EndDeleteGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<DeleteGraphqlApiResponse>(asyncResult); } #endregion #region DeleteResolver /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver service method.</param> /// /// <returns>The response from the DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> public virtual DeleteResolverResponse DeleteResolver(DeleteResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResolverResponseUnmarshaller.Instance; return Invoke<DeleteResolverResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteResolver operation on AmazonAppSyncClient.</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 EndDeleteResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> public virtual IAsyncResult BeginDeleteResolver(DeleteResolverRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResolverResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteResolver.</param> /// /// <returns>Returns a DeleteResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> public virtual DeleteResolverResponse EndDeleteResolver(IAsyncResult asyncResult) { return EndInvoke<DeleteResolverResponse>(asyncResult); } #endregion #region DeleteType /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType service method.</param> /// /// <returns>The response from the DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> public virtual DeleteTypeResponse DeleteType(DeleteTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTypeResponseUnmarshaller.Instance; return Invoke<DeleteTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteType operation on AmazonAppSyncClient.</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 EndDeleteType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> public virtual IAsyncResult BeginDeleteType(DeleteTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteType.</param> /// /// <returns>Returns a DeleteTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> public virtual DeleteTypeResponse EndDeleteType(IAsyncResult asyncResult) { return EndInvoke<DeleteTypeResponse>(asyncResult); } #endregion #region DisassociateApi /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi service method.</param> /// /// <returns>The response from the DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> public virtual DisassociateApiResponse DisassociateApi(DisassociateApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApiResponseUnmarshaller.Instance; return Invoke<DisassociateApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisassociateApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateApi operation on AmazonAppSyncClient.</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 EndDisassociateApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> public virtual IAsyncResult BeginDisassociateApi(DisassociateApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisassociateApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateApi.</param> /// /// <returns>Returns a DisassociateApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> public virtual DisassociateApiResponse EndDisassociateApi(IAsyncResult asyncResult) { return EndInvoke<DisassociateApiResponse>(asyncResult); } #endregion #region DisassociateMergedGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> public virtual DisassociateMergedGraphqlApiResponse DisassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMergedGraphqlApiResponseUnmarshaller.Instance; return Invoke<DisassociateMergedGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisassociateMergedGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi operation on AmazonAppSyncClient.</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 EndDisassociateMergedGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> public virtual IAsyncResult BeginDisassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMergedGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisassociateMergedGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateMergedGraphqlApi.</param> /// /// <returns>Returns a DisassociateMergedGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> public virtual DisassociateMergedGraphqlApiResponse EndDisassociateMergedGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<DisassociateMergedGraphqlApiResponse>(asyncResult); } #endregion #region DisassociateSourceGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> public virtual DisassociateSourceGraphqlApiResponse DisassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateSourceGraphqlApiResponseUnmarshaller.Instance; return Invoke<DisassociateSourceGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisassociateSourceGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi operation on AmazonAppSyncClient.</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 EndDisassociateSourceGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> public virtual IAsyncResult BeginDisassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateSourceGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisassociateSourceGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateSourceGraphqlApi.</param> /// /// <returns>Returns a DisassociateSourceGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> public virtual DisassociateSourceGraphqlApiResponse EndDisassociateSourceGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<DisassociateSourceGraphqlApiResponse>(asyncResult); } #endregion #region EvaluateCode /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode service method.</param> /// /// <returns>The response from the EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> public virtual EvaluateCodeResponse EvaluateCode(EvaluateCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateCodeResponseUnmarshaller.Instance; return Invoke<EvaluateCodeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the EvaluateCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EvaluateCode operation on AmazonAppSyncClient.</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 EndEvaluateCode /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> public virtual IAsyncResult BeginEvaluateCode(EvaluateCodeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateCodeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the EvaluateCode operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEvaluateCode.</param> /// /// <returns>Returns a EvaluateCodeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> public virtual EvaluateCodeResponse EndEvaluateCode(IAsyncResult asyncResult) { return EndInvoke<EvaluateCodeResponse>(asyncResult); } #endregion #region EvaluateMappingTemplate /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate service method.</param> /// /// <returns>The response from the EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> public virtual EvaluateMappingTemplateResponse EvaluateMappingTemplate(EvaluateMappingTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateMappingTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateMappingTemplateResponseUnmarshaller.Instance; return Invoke<EvaluateMappingTemplateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the EvaluateMappingTemplate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate operation on AmazonAppSyncClient.</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 EndEvaluateMappingTemplate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> public virtual IAsyncResult BeginEvaluateMappingTemplate(EvaluateMappingTemplateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateMappingTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateMappingTemplateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the EvaluateMappingTemplate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEvaluateMappingTemplate.</param> /// /// <returns>Returns a EvaluateMappingTemplateResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> public virtual EvaluateMappingTemplateResponse EndEvaluateMappingTemplate(IAsyncResult asyncResult) { return EndInvoke<EvaluateMappingTemplateResponse>(asyncResult); } #endregion #region FlushApiCache /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache service method.</param> /// /// <returns>The response from the FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> public virtual FlushApiCacheResponse FlushApiCache(FlushApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = FlushApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = FlushApiCacheResponseUnmarshaller.Instance; return Invoke<FlushApiCacheResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the FlushApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the FlushApiCache operation on AmazonAppSyncClient.</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 EndFlushApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> public virtual IAsyncResult BeginFlushApiCache(FlushApiCacheRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = FlushApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = FlushApiCacheResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the FlushApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginFlushApiCache.</param> /// /// <returns>Returns a FlushApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> public virtual FlushApiCacheResponse EndFlushApiCache(IAsyncResult asyncResult) { return EndInvoke<FlushApiCacheResponse>(asyncResult); } #endregion #region GetApiAssociation /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation service method.</param> /// /// <returns>The response from the GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> public virtual GetApiAssociationResponse GetApiAssociation(GetApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiAssociationResponseUnmarshaller.Instance; return Invoke<GetApiAssociationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetApiAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation operation on AmazonAppSyncClient.</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 EndGetApiAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> public virtual IAsyncResult BeginGetApiAssociation(GetApiAssociationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiAssociationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetApiAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetApiAssociation.</param> /// /// <returns>Returns a GetApiAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> public virtual GetApiAssociationResponse EndGetApiAssociation(IAsyncResult asyncResult) { return EndInvoke<GetApiAssociationResponse>(asyncResult); } #endregion #region GetApiCache /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache service method.</param> /// /// <returns>The response from the GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> public virtual GetApiCacheResponse GetApiCache(GetApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiCacheResponseUnmarshaller.Instance; return Invoke<GetApiCacheResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetApiCache operation on AmazonAppSyncClient.</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 EndGetApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> public virtual IAsyncResult BeginGetApiCache(GetApiCacheRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiCacheResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetApiCache.</param> /// /// <returns>Returns a GetApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> public virtual GetApiCacheResponse EndGetApiCache(IAsyncResult asyncResult) { return EndInvoke<GetApiCacheResponse>(asyncResult); } #endregion #region GetDataSource /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource service method.</param> /// /// <returns>The response from the GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> public virtual GetDataSourceResponse GetDataSource(GetDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance; return Invoke<GetDataSourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDataSource operation on AmazonAppSyncClient.</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 EndGetDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> public virtual IAsyncResult BeginGetDataSource(GetDataSourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDataSource.</param> /// /// <returns>Returns a GetDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> public virtual GetDataSourceResponse EndGetDataSource(IAsyncResult asyncResult) { return EndInvoke<GetDataSourceResponse>(asyncResult); } #endregion #region GetDomainName /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName service method.</param> /// /// <returns>The response from the GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> public virtual GetDomainNameResponse GetDomainName(GetDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance; return Invoke<GetDomainNameResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDomainName operation on AmazonAppSyncClient.</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 EndGetDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> public virtual IAsyncResult BeginGetDomainName(GetDomainNameRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDomainName.</param> /// /// <returns>Returns a GetDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> public virtual GetDomainNameResponse EndGetDomainName(IAsyncResult asyncResult) { return EndInvoke<GetDomainNameResponse>(asyncResult); } #endregion #region GetFunction /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction service method.</param> /// /// <returns>The response from the GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> public virtual GetFunctionResponse GetFunction(GetFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return Invoke<GetFunctionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetFunction operation on AmazonAppSyncClient.</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 EndGetFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> public virtual IAsyncResult BeginGetFunction(GetFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFunction.</param> /// /// <returns>Returns a GetFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> public virtual GetFunctionResponse EndGetFunction(IAsyncResult asyncResult) { return EndInvoke<GetFunctionResponse>(asyncResult); } #endregion #region GetGraphqlApi /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi service method.</param> /// /// <returns>The response from the GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> public virtual GetGraphqlApiResponse GetGraphqlApi(GetGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGraphqlApiResponseUnmarshaller.Instance; return Invoke<GetGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi operation on AmazonAppSyncClient.</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 EndGetGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> public virtual IAsyncResult BeginGetGraphqlApi(GetGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetGraphqlApi.</param> /// /// <returns>Returns a GetGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> public virtual GetGraphqlApiResponse EndGetGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<GetGraphqlApiResponse>(asyncResult); } #endregion #region GetIntrospectionSchema /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema service method.</param> /// /// <returns>The response from the GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> public virtual GetIntrospectionSchemaResponse GetIntrospectionSchema(GetIntrospectionSchemaRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIntrospectionSchemaRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIntrospectionSchemaResponseUnmarshaller.Instance; return Invoke<GetIntrospectionSchemaResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetIntrospectionSchema operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema operation on AmazonAppSyncClient.</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 EndGetIntrospectionSchema /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> public virtual IAsyncResult BeginGetIntrospectionSchema(GetIntrospectionSchemaRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetIntrospectionSchemaRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIntrospectionSchemaResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetIntrospectionSchema operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetIntrospectionSchema.</param> /// /// <returns>Returns a GetIntrospectionSchemaResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> public virtual GetIntrospectionSchemaResponse EndGetIntrospectionSchema(IAsyncResult asyncResult) { return EndInvoke<GetIntrospectionSchemaResponse>(asyncResult); } #endregion #region GetResolver /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver service method.</param> /// /// <returns>The response from the GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> public virtual GetResolverResponse GetResolver(GetResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResolverResponseUnmarshaller.Instance; return Invoke<GetResolverResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResolver operation on AmazonAppSyncClient.</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 EndGetResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> public virtual IAsyncResult BeginGetResolver(GetResolverRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResolverResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResolver.</param> /// /// <returns>Returns a GetResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> public virtual GetResolverResponse EndGetResolver(IAsyncResult asyncResult) { return EndInvoke<GetResolverResponse>(asyncResult); } #endregion #region GetSchemaCreationStatus /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus service method.</param> /// /// <returns>The response from the GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> public virtual GetSchemaCreationStatusResponse GetSchemaCreationStatus(GetSchemaCreationStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSchemaCreationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSchemaCreationStatusResponseUnmarshaller.Instance; return Invoke<GetSchemaCreationStatusResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetSchemaCreationStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus operation on AmazonAppSyncClient.</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 EndGetSchemaCreationStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> public virtual IAsyncResult BeginGetSchemaCreationStatus(GetSchemaCreationStatusRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetSchemaCreationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSchemaCreationStatusResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetSchemaCreationStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSchemaCreationStatus.</param> /// /// <returns>Returns a GetSchemaCreationStatusResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> public virtual GetSchemaCreationStatusResponse EndGetSchemaCreationStatus(IAsyncResult asyncResult) { return EndInvoke<GetSchemaCreationStatusResponse>(asyncResult); } #endregion #region GetSourceApiAssociation /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation service method.</param> /// /// <returns>The response from the GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> public virtual GetSourceApiAssociationResponse GetSourceApiAssociation(GetSourceApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSourceApiAssociationResponseUnmarshaller.Instance; return Invoke<GetSourceApiAssociationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetSourceApiAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation operation on AmazonAppSyncClient.</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 EndGetSourceApiAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> public virtual IAsyncResult BeginGetSourceApiAssociation(GetSourceApiAssociationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSourceApiAssociationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetSourceApiAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSourceApiAssociation.</param> /// /// <returns>Returns a GetSourceApiAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> public virtual GetSourceApiAssociationResponse EndGetSourceApiAssociation(IAsyncResult asyncResult) { return EndInvoke<GetSourceApiAssociationResponse>(asyncResult); } #endregion #region GetType /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType service method.</param> /// /// <returns>The response from the GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> public virtual GetTypeResponse GetType(GetTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTypeResponseUnmarshaller.Instance; return Invoke<GetTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetType operation on AmazonAppSyncClient.</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 EndGetType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> public virtual IAsyncResult BeginGetType(GetTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetType.</param> /// /// <returns>Returns a GetTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> public virtual GetTypeResponse EndGetType(IAsyncResult asyncResult) { return EndInvoke<GetTypeResponse>(asyncResult); } #endregion #region ListApiKeys /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys service method.</param> /// /// <returns>The response from the ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> public virtual ListApiKeysResponse ListApiKeys(ListApiKeysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApiKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApiKeysResponseUnmarshaller.Instance; return Invoke<ListApiKeysResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListApiKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListApiKeys operation on AmazonAppSyncClient.</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 EndListApiKeys /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> public virtual IAsyncResult BeginListApiKeys(ListApiKeysRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListApiKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApiKeysResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListApiKeys operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApiKeys.</param> /// /// <returns>Returns a ListApiKeysResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> public virtual ListApiKeysResponse EndListApiKeys(IAsyncResult asyncResult) { return EndInvoke<ListApiKeysResponse>(asyncResult); } #endregion #region ListDataSources /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources service method.</param> /// /// <returns>The response from the ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> public virtual ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance; return Invoke<ListDataSourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListDataSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDataSources operation on AmazonAppSyncClient.</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 EndListDataSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> public virtual IAsyncResult BeginListDataSources(ListDataSourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListDataSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataSources.</param> /// /// <returns>Returns a ListDataSourcesResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> public virtual ListDataSourcesResponse EndListDataSources(IAsyncResult asyncResult) { return EndInvoke<ListDataSourcesResponse>(asyncResult); } #endregion #region ListDomainNames /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return Invoke<ListDomainNamesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDomainNames operation on AmazonAppSyncClient.</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 EndListDomainNames /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual IAsyncResult BeginListDomainNames(ListDomainNamesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDomainNames.</param> /// /// <returns>Returns a ListDomainNamesResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse EndListDomainNames(IAsyncResult asyncResult) { return EndInvoke<ListDomainNamesResponse>(asyncResult); } #endregion #region ListFunctions /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions service method.</param> /// /// <returns>The response from the ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> public virtual ListFunctionsResponse ListFunctions(ListFunctionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return Invoke<ListFunctionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListFunctions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListFunctions operation on AmazonAppSyncClient.</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 EndListFunctions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> public virtual IAsyncResult BeginListFunctions(ListFunctionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListFunctions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFunctions.</param> /// /// <returns>Returns a ListFunctionsResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> public virtual ListFunctionsResponse EndListFunctions(IAsyncResult asyncResult) { return EndInvoke<ListFunctionsResponse>(asyncResult); } #endregion #region ListGraphqlApis /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis service method.</param> /// /// <returns>The response from the ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> public virtual ListGraphqlApisResponse ListGraphqlApis(ListGraphqlApisRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGraphqlApisRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGraphqlApisResponseUnmarshaller.Instance; return Invoke<ListGraphqlApisResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListGraphqlApis operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis operation on AmazonAppSyncClient.</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 EndListGraphqlApis /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> public virtual IAsyncResult BeginListGraphqlApis(ListGraphqlApisRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListGraphqlApisRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGraphqlApisResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListGraphqlApis operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListGraphqlApis.</param> /// /// <returns>Returns a ListGraphqlApisResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> public virtual ListGraphqlApisResponse EndListGraphqlApis(IAsyncResult asyncResult) { return EndInvoke<ListGraphqlApisResponse>(asyncResult); } #endregion #region ListResolvers /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers service method.</param> /// /// <returns>The response from the ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> public virtual ListResolversResponse ListResolvers(ListResolversRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversResponseUnmarshaller.Instance; return Invoke<ListResolversResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListResolvers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResolvers operation on AmazonAppSyncClient.</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 EndListResolvers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> public virtual IAsyncResult BeginListResolvers(ListResolversRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListResolvers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResolvers.</param> /// /// <returns>Returns a ListResolversResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> public virtual ListResolversResponse EndListResolvers(IAsyncResult asyncResult) { return EndInvoke<ListResolversResponse>(asyncResult); } #endregion #region ListResolversByFunction /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction service method.</param> /// /// <returns>The response from the ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> public virtual ListResolversByFunctionResponse ListResolversByFunction(ListResolversByFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversByFunctionResponseUnmarshaller.Instance; return Invoke<ListResolversByFunctionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListResolversByFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction operation on AmazonAppSyncClient.</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 EndListResolversByFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> public virtual IAsyncResult BeginListResolversByFunction(ListResolversByFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversByFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListResolversByFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResolversByFunction.</param> /// /// <returns>Returns a ListResolversByFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> public virtual ListResolversByFunctionResponse EndListResolversByFunction(IAsyncResult asyncResult) { return EndInvoke<ListResolversByFunctionResponse>(asyncResult); } #endregion #region ListSourceApiAssociations /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations service method.</param> /// /// <returns>The response from the ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> public virtual ListSourceApiAssociationsResponse ListSourceApiAssociations(ListSourceApiAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceApiAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceApiAssociationsResponseUnmarshaller.Instance; return Invoke<ListSourceApiAssociationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListSourceApiAssociations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations operation on AmazonAppSyncClient.</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 EndListSourceApiAssociations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> public virtual IAsyncResult BeginListSourceApiAssociations(ListSourceApiAssociationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceApiAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceApiAssociationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListSourceApiAssociations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListSourceApiAssociations.</param> /// /// <returns>Returns a ListSourceApiAssociationsResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> public virtual ListSourceApiAssociationsResponse EndListSourceApiAssociations(IAsyncResult asyncResult) { return EndInvoke<ListSourceApiAssociationsResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags for a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 AmazonAppSyncClient.</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/appsync-2017-07-25/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 AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region ListTypes /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual ListTypesResponse ListTypes(ListTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return Invoke<ListTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypes operation on AmazonAppSyncClient.</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 EndListTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual IAsyncResult BeginListTypes(ListTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypes.</param> /// /// <returns>Returns a ListTypesResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual ListTypesResponse EndListTypes(IAsyncResult asyncResult) { return EndInvoke<ListTypesResponse>(asyncResult); } #endregion #region ListTypesByAssociation /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation service method.</param> /// /// <returns>The response from the ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> public virtual ListTypesByAssociationResponse ListTypesByAssociation(ListTypesByAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesByAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesByAssociationResponseUnmarshaller.Instance; return Invoke<ListTypesByAssociationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTypesByAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation operation on AmazonAppSyncClient.</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 EndListTypesByAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> public virtual IAsyncResult BeginListTypesByAssociation(ListTypesByAssociationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesByAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesByAssociationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTypesByAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypesByAssociation.</param> /// /// <returns>Returns a ListTypesByAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> public virtual ListTypesByAssociationResponse EndListTypesByAssociation(IAsyncResult asyncResult) { return EndInvoke<ListTypesByAssociationResponse>(asyncResult); } #endregion #region StartSchemaCreation /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation service method.</param> /// /// <returns>The response from the StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> public virtual StartSchemaCreationResponse StartSchemaCreation(StartSchemaCreationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaCreationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaCreationResponseUnmarshaller.Instance; return Invoke<StartSchemaCreationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartSchemaCreation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation operation on AmazonAppSyncClient.</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 EndStartSchemaCreation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> public virtual IAsyncResult BeginStartSchemaCreation(StartSchemaCreationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaCreationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaCreationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartSchemaCreation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSchemaCreation.</param> /// /// <returns>Returns a StartSchemaCreationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> public virtual StartSchemaCreationResponse EndStartSchemaCreation(IAsyncResult asyncResult) { return EndInvoke<StartSchemaCreationResponse>(asyncResult); } #endregion #region StartSchemaMerge /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge service method.</param> /// /// <returns>The response from the StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> public virtual StartSchemaMergeResponse StartSchemaMerge(StartSchemaMergeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaMergeRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaMergeResponseUnmarshaller.Instance; return Invoke<StartSchemaMergeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartSchemaMerge operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge operation on AmazonAppSyncClient.</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 EndStartSchemaMerge /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> public virtual IAsyncResult BeginStartSchemaMerge(StartSchemaMergeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaMergeRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaMergeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartSchemaMerge operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSchemaMerge.</param> /// /// <returns>Returns a StartSchemaMergeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> public virtual StartSchemaMergeResponse EndStartSchemaMerge(IAsyncResult asyncResult) { return EndInvoke<StartSchemaMergeResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 AmazonAppSyncClient.</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/appsync-2017-07-25/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 AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 AmazonAppSyncClient.</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/appsync-2017-07-25/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 AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion #region UpdateApiCache /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache service method.</param> /// /// <returns>The response from the UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> public virtual UpdateApiCacheResponse UpdateApiCache(UpdateApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiCacheResponseUnmarshaller.Instance; return Invoke<UpdateApiCacheResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache operation on AmazonAppSyncClient.</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 EndUpdateApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> public virtual IAsyncResult BeginUpdateApiCache(UpdateApiCacheRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiCacheResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApiCache.</param> /// /// <returns>Returns a UpdateApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> public virtual UpdateApiCacheResponse EndUpdateApiCache(IAsyncResult asyncResult) { return EndInvoke<UpdateApiCacheResponse>(asyncResult); } #endregion #region UpdateApiKey /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey service method.</param> /// /// <returns>The response from the UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiKeyResponseUnmarshaller.Instance; return Invoke<UpdateApiKeyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateApiKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey operation on AmazonAppSyncClient.</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 EndUpdateApiKey /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> public virtual IAsyncResult BeginUpdateApiKey(UpdateApiKeyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiKeyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateApiKey operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApiKey.</param> /// /// <returns>Returns a UpdateApiKeyResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> public virtual UpdateApiKeyResponse EndUpdateApiKey(IAsyncResult asyncResult) { return EndInvoke<UpdateApiKeyResponse>(asyncResult); } #endregion #region UpdateDataSource /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource service method.</param> /// /// <returns>The response from the UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> public virtual UpdateDataSourceResponse UpdateDataSource(UpdateDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance; return Invoke<UpdateDataSourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource operation on AmazonAppSyncClient.</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 EndUpdateDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> public virtual IAsyncResult BeginUpdateDataSource(UpdateDataSourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDataSource.</param> /// /// <returns>Returns a UpdateDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> public virtual UpdateDataSourceResponse EndUpdateDataSource(IAsyncResult asyncResult) { return EndInvoke<UpdateDataSourceResponse>(asyncResult); } #endregion #region UpdateDomainName /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName service method.</param> /// /// <returns>The response from the UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> public virtual UpdateDomainNameResponse UpdateDomainName(UpdateDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance; return Invoke<UpdateDomainNameResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName operation on AmazonAppSyncClient.</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 EndUpdateDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> public virtual IAsyncResult BeginUpdateDomainName(UpdateDomainNameRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDomainName.</param> /// /// <returns>Returns a UpdateDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> public virtual UpdateDomainNameResponse EndUpdateDomainName(IAsyncResult asyncResult) { return EndInvoke<UpdateDomainNameResponse>(asyncResult); } #endregion #region UpdateFunction /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction service method.</param> /// /// <returns>The response from the UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> public virtual UpdateFunctionResponse UpdateFunction(UpdateFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance; return Invoke<UpdateFunctionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFunction operation on AmazonAppSyncClient.</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 EndUpdateFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> public virtual IAsyncResult BeginUpdateFunction(UpdateFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFunction.</param> /// /// <returns>Returns a UpdateFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> public virtual UpdateFunctionResponse EndUpdateFunction(IAsyncResult asyncResult) { return EndInvoke<UpdateFunctionResponse>(asyncResult); } #endregion #region UpdateGraphqlApi /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi service method.</param> /// /// <returns>The response from the UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> public virtual UpdateGraphqlApiResponse UpdateGraphqlApi(UpdateGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGraphqlApiResponseUnmarshaller.Instance; return Invoke<UpdateGraphqlApiResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi operation on AmazonAppSyncClient.</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 EndUpdateGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> public virtual IAsyncResult BeginUpdateGraphqlApi(UpdateGraphqlApiRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGraphqlApiResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateGraphqlApi.</param> /// /// <returns>Returns a UpdateGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> public virtual UpdateGraphqlApiResponse EndUpdateGraphqlApi(IAsyncResult asyncResult) { return EndInvoke<UpdateGraphqlApiResponse>(asyncResult); } #endregion #region UpdateResolver /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver service method.</param> /// /// <returns>The response from the UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> public virtual UpdateResolverResponse UpdateResolver(UpdateResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResolverResponseUnmarshaller.Instance; return Invoke<UpdateResolverResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateResolver operation on AmazonAppSyncClient.</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 EndUpdateResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> public virtual IAsyncResult BeginUpdateResolver(UpdateResolverRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResolverResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateResolver.</param> /// /// <returns>Returns a UpdateResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> public virtual UpdateResolverResponse EndUpdateResolver(IAsyncResult asyncResult) { return EndInvoke<UpdateResolverResponse>(asyncResult); } #endregion #region UpdateSourceApiAssociation /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation service method.</param> /// /// <returns>The response from the UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> public virtual UpdateSourceApiAssociationResponse UpdateSourceApiAssociation(UpdateSourceApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceApiAssociationResponseUnmarshaller.Instance; return Invoke<UpdateSourceApiAssociationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateSourceApiAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation operation on AmazonAppSyncClient.</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 EndUpdateSourceApiAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> public virtual IAsyncResult BeginUpdateSourceApiAssociation(UpdateSourceApiAssociationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceApiAssociationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateSourceApiAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateSourceApiAssociation.</param> /// /// <returns>Returns a UpdateSourceApiAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> public virtual UpdateSourceApiAssociationResponse EndUpdateSourceApiAssociation(IAsyncResult asyncResult) { return EndInvoke<UpdateSourceApiAssociationResponse>(asyncResult); } #endregion #region UpdateType /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType service method.</param> /// /// <returns>The response from the UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> public virtual UpdateTypeResponse UpdateType(UpdateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTypeResponseUnmarshaller.Instance; return Invoke<UpdateTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateType operation on AmazonAppSyncClient.</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 EndUpdateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> public virtual IAsyncResult BeginUpdateType(UpdateTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateType.</param> /// /// <returns>Returns a UpdateTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> public virtual UpdateTypeResponse EndUpdateType(IAsyncResult asyncResult) { return EndInvoke<UpdateTypeResponse>(asyncResult); } #endregion } }
4,528
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AppSync.Model; namespace Amazon.AppSync { /// <summary> /// Interface for accessing AppSync /// /// AppSync provides API actions for creating and interacting with data sources using /// GraphQL from your application. /// </summary> public partial interface IAmazonAppSync : IAmazonService, IDisposable { #region AssociateApi /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi service method.</param> /// /// <returns>The response from the AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> AssociateApiResponse AssociateApi(AssociateApiRequest request); /// <summary> /// Initiates the asynchronous execution of the AssociateApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateApi operation on AmazonAppSyncClient.</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 EndAssociateApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> IAsyncResult BeginAssociateApi(AssociateApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AssociateApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateApi.</param> /// /// <returns>Returns a AssociateApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> AssociateApiResponse EndAssociateApi(IAsyncResult asyncResult); #endregion #region AssociateMergedGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> AssociateMergedGraphqlApiResponse AssociateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the AssociateMergedGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi operation on AmazonAppSyncClient.</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 EndAssociateMergedGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> IAsyncResult BeginAssociateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AssociateMergedGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateMergedGraphqlApi.</param> /// /// <returns>Returns a AssociateMergedGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> AssociateMergedGraphqlApiResponse EndAssociateMergedGraphqlApi(IAsyncResult asyncResult); #endregion #region AssociateSourceGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> AssociateSourceGraphqlApiResponse AssociateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the AssociateSourceGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi operation on AmazonAppSyncClient.</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 EndAssociateSourceGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> IAsyncResult BeginAssociateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AssociateSourceGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateSourceGraphqlApi.</param> /// /// <returns>Returns a AssociateSourceGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> AssociateSourceGraphqlApiResponse EndAssociateSourceGraphqlApi(IAsyncResult asyncResult); #endregion #region CreateApiCache /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache service method.</param> /// /// <returns>The response from the CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> CreateApiCacheResponse CreateApiCache(CreateApiCacheRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateApiCache operation on AmazonAppSyncClient.</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 EndCreateApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> IAsyncResult BeginCreateApiCache(CreateApiCacheRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApiCache.</param> /// /// <returns>Returns a CreateApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> CreateApiCacheResponse EndCreateApiCache(IAsyncResult asyncResult); #endregion #region CreateApiKey /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey service method.</param> /// /// <returns>The response from the CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateApiKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateApiKey operation on AmazonAppSyncClient.</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 EndCreateApiKey /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> IAsyncResult BeginCreateApiKey(CreateApiKeyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateApiKey operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApiKey.</param> /// /// <returns>Returns a CreateApiKeyResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> CreateApiKeyResponse EndCreateApiKey(IAsyncResult asyncResult); #endregion #region CreateDataSource /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource service method.</param> /// /// <returns>The response from the CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> CreateDataSourceResponse CreateDataSource(CreateDataSourceRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDataSource operation on AmazonAppSyncClient.</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 EndCreateDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> IAsyncResult BeginCreateDataSource(CreateDataSourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDataSource.</param> /// /// <returns>Returns a CreateDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> CreateDataSourceResponse EndCreateDataSource(IAsyncResult asyncResult); #endregion #region CreateDomainName /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName service method.</param> /// /// <returns>The response from the CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> CreateDomainNameResponse CreateDomainName(CreateDomainNameRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDomainName operation on AmazonAppSyncClient.</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 EndCreateDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> IAsyncResult BeginCreateDomainName(CreateDomainNameRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDomainName.</param> /// /// <returns>Returns a CreateDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> CreateDomainNameResponse EndCreateDomainName(IAsyncResult asyncResult); #endregion #region CreateFunction /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction service method.</param> /// /// <returns>The response from the CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> CreateFunctionResponse CreateFunction(CreateFunctionRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateFunction operation on AmazonAppSyncClient.</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 EndCreateFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> IAsyncResult BeginCreateFunction(CreateFunctionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFunction.</param> /// /// <returns>Returns a CreateFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> CreateFunctionResponse EndCreateFunction(IAsyncResult asyncResult); #endregion #region CreateGraphqlApi /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi service method.</param> /// /// <returns>The response from the CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> CreateGraphqlApiResponse CreateGraphqlApi(CreateGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi operation on AmazonAppSyncClient.</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 EndCreateGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> IAsyncResult BeginCreateGraphqlApi(CreateGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateGraphqlApi.</param> /// /// <returns>Returns a CreateGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> CreateGraphqlApiResponse EndCreateGraphqlApi(IAsyncResult asyncResult); #endregion #region CreateResolver /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver service method.</param> /// /// <returns>The response from the CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> CreateResolverResponse CreateResolver(CreateResolverRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateResolver operation on AmazonAppSyncClient.</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 EndCreateResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> IAsyncResult BeginCreateResolver(CreateResolverRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateResolver.</param> /// /// <returns>Returns a CreateResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> CreateResolverResponse EndCreateResolver(IAsyncResult asyncResult); #endregion #region CreateType /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType service method.</param> /// /// <returns>The response from the CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> CreateTypeResponse CreateType(CreateTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateType operation on AmazonAppSyncClient.</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 EndCreateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> IAsyncResult BeginCreateType(CreateTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateType.</param> /// /// <returns>Returns a CreateTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> CreateTypeResponse EndCreateType(IAsyncResult asyncResult); #endregion #region DeleteApiCache /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache service method.</param> /// /// <returns>The response from the DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> DeleteApiCacheResponse DeleteApiCache(DeleteApiCacheRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache operation on AmazonAppSyncClient.</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 EndDeleteApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> IAsyncResult BeginDeleteApiCache(DeleteApiCacheRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApiCache.</param> /// /// <returns>Returns a DeleteApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> DeleteApiCacheResponse EndDeleteApiCache(IAsyncResult asyncResult); #endregion #region DeleteApiKey /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey service method.</param> /// /// <returns>The response from the DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> DeleteApiKeyResponse DeleteApiKey(DeleteApiKeyRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteApiKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey operation on AmazonAppSyncClient.</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 EndDeleteApiKey /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> IAsyncResult BeginDeleteApiKey(DeleteApiKeyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteApiKey operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApiKey.</param> /// /// <returns>Returns a DeleteApiKeyResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> DeleteApiKeyResponse EndDeleteApiKey(IAsyncResult asyncResult); #endregion #region DeleteDataSource /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource service method.</param> /// /// <returns>The response from the DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> DeleteDataSourceResponse DeleteDataSource(DeleteDataSourceRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource operation on AmazonAppSyncClient.</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 EndDeleteDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> IAsyncResult BeginDeleteDataSource(DeleteDataSourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDataSource.</param> /// /// <returns>Returns a DeleteDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> DeleteDataSourceResponse EndDeleteDataSource(IAsyncResult asyncResult); #endregion #region DeleteDomainName /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName service method.</param> /// /// <returns>The response from the DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName operation on AmazonAppSyncClient.</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 EndDeleteDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> IAsyncResult BeginDeleteDomainName(DeleteDomainNameRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDomainName.</param> /// /// <returns>Returns a DeleteDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> DeleteDomainNameResponse EndDeleteDomainName(IAsyncResult asyncResult); #endregion #region DeleteFunction /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction service method.</param> /// /// <returns>The response from the DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteFunction operation on AmazonAppSyncClient.</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 EndDeleteFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> IAsyncResult BeginDeleteFunction(DeleteFunctionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFunction.</param> /// /// <returns>Returns a DeleteFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> DeleteFunctionResponse EndDeleteFunction(IAsyncResult asyncResult); #endregion #region DeleteGraphqlApi /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi service method.</param> /// /// <returns>The response from the DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> DeleteGraphqlApiResponse DeleteGraphqlApi(DeleteGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi operation on AmazonAppSyncClient.</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 EndDeleteGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> IAsyncResult BeginDeleteGraphqlApi(DeleteGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteGraphqlApi.</param> /// /// <returns>Returns a DeleteGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> DeleteGraphqlApiResponse EndDeleteGraphqlApi(IAsyncResult asyncResult); #endregion #region DeleteResolver /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver service method.</param> /// /// <returns>The response from the DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> DeleteResolverResponse DeleteResolver(DeleteResolverRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteResolver operation on AmazonAppSyncClient.</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 EndDeleteResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> IAsyncResult BeginDeleteResolver(DeleteResolverRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteResolver.</param> /// /// <returns>Returns a DeleteResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> DeleteResolverResponse EndDeleteResolver(IAsyncResult asyncResult); #endregion #region DeleteType /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType service method.</param> /// /// <returns>The response from the DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> DeleteTypeResponse DeleteType(DeleteTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteType operation on AmazonAppSyncClient.</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 EndDeleteType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> IAsyncResult BeginDeleteType(DeleteTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteType.</param> /// /// <returns>Returns a DeleteTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> DeleteTypeResponse EndDeleteType(IAsyncResult asyncResult); #endregion #region DisassociateApi /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi service method.</param> /// /// <returns>The response from the DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> DisassociateApiResponse DisassociateApi(DisassociateApiRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociateApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateApi operation on AmazonAppSyncClient.</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 EndDisassociateApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> IAsyncResult BeginDisassociateApi(DisassociateApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociateApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateApi.</param> /// /// <returns>Returns a DisassociateApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> DisassociateApiResponse EndDisassociateApi(IAsyncResult asyncResult); #endregion #region DisassociateMergedGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> DisassociateMergedGraphqlApiResponse DisassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociateMergedGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi operation on AmazonAppSyncClient.</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 EndDisassociateMergedGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> IAsyncResult BeginDisassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociateMergedGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateMergedGraphqlApi.</param> /// /// <returns>Returns a DisassociateMergedGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> DisassociateMergedGraphqlApiResponse EndDisassociateMergedGraphqlApi(IAsyncResult asyncResult); #endregion #region DisassociateSourceGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> DisassociateSourceGraphqlApiResponse DisassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociateSourceGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi operation on AmazonAppSyncClient.</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 EndDisassociateSourceGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> IAsyncResult BeginDisassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociateSourceGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateSourceGraphqlApi.</param> /// /// <returns>Returns a DisassociateSourceGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> DisassociateSourceGraphqlApiResponse EndDisassociateSourceGraphqlApi(IAsyncResult asyncResult); #endregion #region EvaluateCode /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode service method.</param> /// /// <returns>The response from the EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> EvaluateCodeResponse EvaluateCode(EvaluateCodeRequest request); /// <summary> /// Initiates the asynchronous execution of the EvaluateCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EvaluateCode operation on AmazonAppSyncClient.</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 EndEvaluateCode /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> IAsyncResult BeginEvaluateCode(EvaluateCodeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EvaluateCode operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEvaluateCode.</param> /// /// <returns>Returns a EvaluateCodeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> EvaluateCodeResponse EndEvaluateCode(IAsyncResult asyncResult); #endregion #region EvaluateMappingTemplate /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate service method.</param> /// /// <returns>The response from the EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> EvaluateMappingTemplateResponse EvaluateMappingTemplate(EvaluateMappingTemplateRequest request); /// <summary> /// Initiates the asynchronous execution of the EvaluateMappingTemplate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate operation on AmazonAppSyncClient.</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 EndEvaluateMappingTemplate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> IAsyncResult BeginEvaluateMappingTemplate(EvaluateMappingTemplateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EvaluateMappingTemplate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEvaluateMappingTemplate.</param> /// /// <returns>Returns a EvaluateMappingTemplateResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> EvaluateMappingTemplateResponse EndEvaluateMappingTemplate(IAsyncResult asyncResult); #endregion #region FlushApiCache /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache service method.</param> /// /// <returns>The response from the FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> FlushApiCacheResponse FlushApiCache(FlushApiCacheRequest request); /// <summary> /// Initiates the asynchronous execution of the FlushApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the FlushApiCache operation on AmazonAppSyncClient.</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 EndFlushApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> IAsyncResult BeginFlushApiCache(FlushApiCacheRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the FlushApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginFlushApiCache.</param> /// /// <returns>Returns a FlushApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> FlushApiCacheResponse EndFlushApiCache(IAsyncResult asyncResult); #endregion #region GetApiAssociation /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation service method.</param> /// /// <returns>The response from the GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> GetApiAssociationResponse GetApiAssociation(GetApiAssociationRequest request); /// <summary> /// Initiates the asynchronous execution of the GetApiAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation operation on AmazonAppSyncClient.</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 EndGetApiAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> IAsyncResult BeginGetApiAssociation(GetApiAssociationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetApiAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetApiAssociation.</param> /// /// <returns>Returns a GetApiAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> GetApiAssociationResponse EndGetApiAssociation(IAsyncResult asyncResult); #endregion #region GetApiCache /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache service method.</param> /// /// <returns>The response from the GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> GetApiCacheResponse GetApiCache(GetApiCacheRequest request); /// <summary> /// Initiates the asynchronous execution of the GetApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetApiCache operation on AmazonAppSyncClient.</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 EndGetApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> IAsyncResult BeginGetApiCache(GetApiCacheRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetApiCache.</param> /// /// <returns>Returns a GetApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> GetApiCacheResponse EndGetApiCache(IAsyncResult asyncResult); #endregion #region GetDataSource /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource service method.</param> /// /// <returns>The response from the GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> GetDataSourceResponse GetDataSource(GetDataSourceRequest request); /// <summary> /// Initiates the asynchronous execution of the GetDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDataSource operation on AmazonAppSyncClient.</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 EndGetDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> IAsyncResult BeginGetDataSource(GetDataSourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDataSource.</param> /// /// <returns>Returns a GetDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> GetDataSourceResponse EndGetDataSource(IAsyncResult asyncResult); #endregion #region GetDomainName /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName service method.</param> /// /// <returns>The response from the GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> GetDomainNameResponse GetDomainName(GetDomainNameRequest request); /// <summary> /// Initiates the asynchronous execution of the GetDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDomainName operation on AmazonAppSyncClient.</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 EndGetDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> IAsyncResult BeginGetDomainName(GetDomainNameRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDomainName.</param> /// /// <returns>Returns a GetDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> GetDomainNameResponse EndGetDomainName(IAsyncResult asyncResult); #endregion #region GetFunction /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction service method.</param> /// /// <returns>The response from the GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> GetFunctionResponse GetFunction(GetFunctionRequest request); /// <summary> /// Initiates the asynchronous execution of the GetFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetFunction operation on AmazonAppSyncClient.</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 EndGetFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> IAsyncResult BeginGetFunction(GetFunctionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFunction.</param> /// /// <returns>Returns a GetFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> GetFunctionResponse EndGetFunction(IAsyncResult asyncResult); #endregion #region GetGraphqlApi /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi service method.</param> /// /// <returns>The response from the GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> GetGraphqlApiResponse GetGraphqlApi(GetGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the GetGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi operation on AmazonAppSyncClient.</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 EndGetGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> IAsyncResult BeginGetGraphqlApi(GetGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetGraphqlApi.</param> /// /// <returns>Returns a GetGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> GetGraphqlApiResponse EndGetGraphqlApi(IAsyncResult asyncResult); #endregion #region GetIntrospectionSchema /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema service method.</param> /// /// <returns>The response from the GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> GetIntrospectionSchemaResponse GetIntrospectionSchema(GetIntrospectionSchemaRequest request); /// <summary> /// Initiates the asynchronous execution of the GetIntrospectionSchema operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema operation on AmazonAppSyncClient.</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 EndGetIntrospectionSchema /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> IAsyncResult BeginGetIntrospectionSchema(GetIntrospectionSchemaRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetIntrospectionSchema operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetIntrospectionSchema.</param> /// /// <returns>Returns a GetIntrospectionSchemaResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> GetIntrospectionSchemaResponse EndGetIntrospectionSchema(IAsyncResult asyncResult); #endregion #region GetResolver /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver service method.</param> /// /// <returns>The response from the GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> GetResolverResponse GetResolver(GetResolverRequest request); /// <summary> /// Initiates the asynchronous execution of the GetResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResolver operation on AmazonAppSyncClient.</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 EndGetResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> IAsyncResult BeginGetResolver(GetResolverRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResolver.</param> /// /// <returns>Returns a GetResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> GetResolverResponse EndGetResolver(IAsyncResult asyncResult); #endregion #region GetSchemaCreationStatus /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus service method.</param> /// /// <returns>The response from the GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> GetSchemaCreationStatusResponse GetSchemaCreationStatus(GetSchemaCreationStatusRequest request); /// <summary> /// Initiates the asynchronous execution of the GetSchemaCreationStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus operation on AmazonAppSyncClient.</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 EndGetSchemaCreationStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> IAsyncResult BeginGetSchemaCreationStatus(GetSchemaCreationStatusRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetSchemaCreationStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSchemaCreationStatus.</param> /// /// <returns>Returns a GetSchemaCreationStatusResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> GetSchemaCreationStatusResponse EndGetSchemaCreationStatus(IAsyncResult asyncResult); #endregion #region GetSourceApiAssociation /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation service method.</param> /// /// <returns>The response from the GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> GetSourceApiAssociationResponse GetSourceApiAssociation(GetSourceApiAssociationRequest request); /// <summary> /// Initiates the asynchronous execution of the GetSourceApiAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation operation on AmazonAppSyncClient.</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 EndGetSourceApiAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> IAsyncResult BeginGetSourceApiAssociation(GetSourceApiAssociationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetSourceApiAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSourceApiAssociation.</param> /// /// <returns>Returns a GetSourceApiAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> GetSourceApiAssociationResponse EndGetSourceApiAssociation(IAsyncResult asyncResult); #endregion #region GetType /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType service method.</param> /// /// <returns>The response from the GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> GetTypeResponse GetType(GetTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the GetType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetType operation on AmazonAppSyncClient.</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 EndGetType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> IAsyncResult BeginGetType(GetTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetType.</param> /// /// <returns>Returns a GetTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> GetTypeResponse EndGetType(IAsyncResult asyncResult); #endregion #region ListApiKeys /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys service method.</param> /// /// <returns>The response from the ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> ListApiKeysResponse ListApiKeys(ListApiKeysRequest request); /// <summary> /// Initiates the asynchronous execution of the ListApiKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListApiKeys operation on AmazonAppSyncClient.</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 EndListApiKeys /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> IAsyncResult BeginListApiKeys(ListApiKeysRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListApiKeys operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApiKeys.</param> /// /// <returns>Returns a ListApiKeysResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> ListApiKeysResponse EndListApiKeys(IAsyncResult asyncResult); #endregion #region ListDataSources /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources service method.</param> /// /// <returns>The response from the ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListDataSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDataSources operation on AmazonAppSyncClient.</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 EndListDataSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> IAsyncResult BeginListDataSources(ListDataSourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListDataSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataSources.</param> /// /// <returns>Returns a ListDataSourcesResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> ListDataSourcesResponse EndListDataSources(IAsyncResult asyncResult); #endregion #region ListDomainNames /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDomainNames operation on AmazonAppSyncClient.</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 EndListDomainNames /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> IAsyncResult BeginListDomainNames(ListDomainNamesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDomainNames.</param> /// /// <returns>Returns a ListDomainNamesResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse EndListDomainNames(IAsyncResult asyncResult); #endregion #region ListFunctions /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions service method.</param> /// /// <returns>The response from the ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> ListFunctionsResponse ListFunctions(ListFunctionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListFunctions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListFunctions operation on AmazonAppSyncClient.</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 EndListFunctions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> IAsyncResult BeginListFunctions(ListFunctionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListFunctions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFunctions.</param> /// /// <returns>Returns a ListFunctionsResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> ListFunctionsResponse EndListFunctions(IAsyncResult asyncResult); #endregion #region ListGraphqlApis /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis service method.</param> /// /// <returns>The response from the ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> ListGraphqlApisResponse ListGraphqlApis(ListGraphqlApisRequest request); /// <summary> /// Initiates the asynchronous execution of the ListGraphqlApis operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis operation on AmazonAppSyncClient.</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 EndListGraphqlApis /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> IAsyncResult BeginListGraphqlApis(ListGraphqlApisRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListGraphqlApis operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListGraphqlApis.</param> /// /// <returns>Returns a ListGraphqlApisResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> ListGraphqlApisResponse EndListGraphqlApis(IAsyncResult asyncResult); #endregion #region ListResolvers /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers service method.</param> /// /// <returns>The response from the ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> ListResolversResponse ListResolvers(ListResolversRequest request); /// <summary> /// Initiates the asynchronous execution of the ListResolvers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResolvers operation on AmazonAppSyncClient.</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 EndListResolvers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> IAsyncResult BeginListResolvers(ListResolversRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListResolvers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResolvers.</param> /// /// <returns>Returns a ListResolversResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> ListResolversResponse EndListResolvers(IAsyncResult asyncResult); #endregion #region ListResolversByFunction /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction service method.</param> /// /// <returns>The response from the ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> ListResolversByFunctionResponse ListResolversByFunction(ListResolversByFunctionRequest request); /// <summary> /// Initiates the asynchronous execution of the ListResolversByFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction operation on AmazonAppSyncClient.</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 EndListResolversByFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> IAsyncResult BeginListResolversByFunction(ListResolversByFunctionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListResolversByFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResolversByFunction.</param> /// /// <returns>Returns a ListResolversByFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> ListResolversByFunctionResponse EndListResolversByFunction(IAsyncResult asyncResult); #endregion #region ListSourceApiAssociations /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations service method.</param> /// /// <returns>The response from the ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> ListSourceApiAssociationsResponse ListSourceApiAssociations(ListSourceApiAssociationsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListSourceApiAssociations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations operation on AmazonAppSyncClient.</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 EndListSourceApiAssociations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> IAsyncResult BeginListSourceApiAssociations(ListSourceApiAssociationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListSourceApiAssociations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListSourceApiAssociations.</param> /// /// <returns>Returns a ListSourceApiAssociationsResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> ListSourceApiAssociationsResponse EndListSourceApiAssociations(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Lists the tags for a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 AmazonAppSyncClient.</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/appsync-2017-07-25/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 AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region ListTypes /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> ListTypesResponse ListTypes(ListTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypes operation on AmazonAppSyncClient.</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 EndListTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> IAsyncResult BeginListTypes(ListTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypes.</param> /// /// <returns>Returns a ListTypesResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> ListTypesResponse EndListTypes(IAsyncResult asyncResult); #endregion #region ListTypesByAssociation /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation service method.</param> /// /// <returns>The response from the ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> ListTypesByAssociationResponse ListTypesByAssociation(ListTypesByAssociationRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTypesByAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation operation on AmazonAppSyncClient.</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 EndListTypesByAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> IAsyncResult BeginListTypesByAssociation(ListTypesByAssociationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTypesByAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypesByAssociation.</param> /// /// <returns>Returns a ListTypesByAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> ListTypesByAssociationResponse EndListTypesByAssociation(IAsyncResult asyncResult); #endregion #region StartSchemaCreation /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation service method.</param> /// /// <returns>The response from the StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> StartSchemaCreationResponse StartSchemaCreation(StartSchemaCreationRequest request); /// <summary> /// Initiates the asynchronous execution of the StartSchemaCreation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation operation on AmazonAppSyncClient.</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 EndStartSchemaCreation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> IAsyncResult BeginStartSchemaCreation(StartSchemaCreationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartSchemaCreation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSchemaCreation.</param> /// /// <returns>Returns a StartSchemaCreationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> StartSchemaCreationResponse EndStartSchemaCreation(IAsyncResult asyncResult); #endregion #region StartSchemaMerge /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge service method.</param> /// /// <returns>The response from the StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> StartSchemaMergeResponse StartSchemaMerge(StartSchemaMergeRequest request); /// <summary> /// Initiates the asynchronous execution of the StartSchemaMerge operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge operation on AmazonAppSyncClient.</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 EndStartSchemaMerge /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> IAsyncResult BeginStartSchemaMerge(StartSchemaMergeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartSchemaMerge operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSchemaMerge.</param> /// /// <returns>Returns a StartSchemaMergeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> StartSchemaMergeResponse EndStartSchemaMerge(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 AmazonAppSyncClient.</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/appsync-2017-07-25/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 AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 AmazonAppSyncClient.</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/appsync-2017-07-25/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 AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateApiCache /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache service method.</param> /// /// <returns>The response from the UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> UpdateApiCacheResponse UpdateApiCache(UpdateApiCacheRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateApiCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache operation on AmazonAppSyncClient.</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 EndUpdateApiCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> IAsyncResult BeginUpdateApiCache(UpdateApiCacheRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateApiCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApiCache.</param> /// /// <returns>Returns a UpdateApiCacheResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> UpdateApiCacheResponse EndUpdateApiCache(IAsyncResult asyncResult); #endregion #region UpdateApiKey /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey service method.</param> /// /// <returns>The response from the UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateApiKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey operation on AmazonAppSyncClient.</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 EndUpdateApiKey /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> IAsyncResult BeginUpdateApiKey(UpdateApiKeyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateApiKey operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApiKey.</param> /// /// <returns>Returns a UpdateApiKeyResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> UpdateApiKeyResponse EndUpdateApiKey(IAsyncResult asyncResult); #endregion #region UpdateDataSource /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource service method.</param> /// /// <returns>The response from the UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> UpdateDataSourceResponse UpdateDataSource(UpdateDataSourceRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateDataSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource operation on AmazonAppSyncClient.</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 EndUpdateDataSource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> IAsyncResult BeginUpdateDataSource(UpdateDataSourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateDataSource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDataSource.</param> /// /// <returns>Returns a UpdateDataSourceResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> UpdateDataSourceResponse EndUpdateDataSource(IAsyncResult asyncResult); #endregion #region UpdateDomainName /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName service method.</param> /// /// <returns>The response from the UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> UpdateDomainNameResponse UpdateDomainName(UpdateDomainNameRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateDomainName operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName operation on AmazonAppSyncClient.</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 EndUpdateDomainName /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> IAsyncResult BeginUpdateDomainName(UpdateDomainNameRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateDomainName operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDomainName.</param> /// /// <returns>Returns a UpdateDomainNameResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> UpdateDomainNameResponse EndUpdateDomainName(IAsyncResult asyncResult); #endregion #region UpdateFunction /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction service method.</param> /// /// <returns>The response from the UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> UpdateFunctionResponse UpdateFunction(UpdateFunctionRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateFunction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFunction operation on AmazonAppSyncClient.</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 EndUpdateFunction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> IAsyncResult BeginUpdateFunction(UpdateFunctionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateFunction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFunction.</param> /// /// <returns>Returns a UpdateFunctionResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> UpdateFunctionResponse EndUpdateFunction(IAsyncResult asyncResult); #endregion #region UpdateGraphqlApi /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi service method.</param> /// /// <returns>The response from the UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> UpdateGraphqlApiResponse UpdateGraphqlApi(UpdateGraphqlApiRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateGraphqlApi operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi operation on AmazonAppSyncClient.</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 EndUpdateGraphqlApi /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> IAsyncResult BeginUpdateGraphqlApi(UpdateGraphqlApiRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateGraphqlApi operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateGraphqlApi.</param> /// /// <returns>Returns a UpdateGraphqlApiResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> UpdateGraphqlApiResponse EndUpdateGraphqlApi(IAsyncResult asyncResult); #endregion #region UpdateResolver /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver service method.</param> /// /// <returns>The response from the UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> UpdateResolverResponse UpdateResolver(UpdateResolverRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateResolver operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateResolver operation on AmazonAppSyncClient.</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 EndUpdateResolver /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> IAsyncResult BeginUpdateResolver(UpdateResolverRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateResolver operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateResolver.</param> /// /// <returns>Returns a UpdateResolverResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> UpdateResolverResponse EndUpdateResolver(IAsyncResult asyncResult); #endregion #region UpdateSourceApiAssociation /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation service method.</param> /// /// <returns>The response from the UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> UpdateSourceApiAssociationResponse UpdateSourceApiAssociation(UpdateSourceApiAssociationRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateSourceApiAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation operation on AmazonAppSyncClient.</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 EndUpdateSourceApiAssociation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> IAsyncResult BeginUpdateSourceApiAssociation(UpdateSourceApiAssociationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateSourceApiAssociation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateSourceApiAssociation.</param> /// /// <returns>Returns a UpdateSourceApiAssociationResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> UpdateSourceApiAssociationResponse EndUpdateSourceApiAssociation(IAsyncResult asyncResult); #endregion #region UpdateType /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType service method.</param> /// /// <returns>The response from the UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> UpdateTypeResponse UpdateType(UpdateTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateType operation on AmazonAppSyncClient.</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 EndUpdateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> IAsyncResult BeginUpdateType(UpdateTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateType.</param> /// /// <returns>Returns a UpdateTypeResult from AppSync.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> UpdateTypeResponse EndUpdateType(IAsyncResult asyncResult); #endregion } }
3,480
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.AppSync.Model.Internal.MarshallTransformations; using Amazon.AppSync.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AppSync { /// <summary> /// Implementation for accessing AppSync /// /// AppSync provides API actions for creating and interacting with data sources using /// GraphQL from your application. /// </summary> public partial class AmazonAppSyncClient : AmazonServiceClient, IAmazonAppSync { private static IServiceMetadata serviceMetadata = new AmazonAppSyncMetadata(); #region Constructors /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(AmazonAppSyncConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAppSyncClient(AWSCredentials credentials) : this(credentials, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAppSyncClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials and an /// AmazonAppSyncClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(AWSCredentials credentials, AmazonAppSyncConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppSyncConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppSyncClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppSyncConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppSyncClient 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 AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppSyncConfig 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 AmazonAppSyncEndpointResolver()); } /// <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 AssociateApi /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi service method.</param> /// /// <returns>The response from the AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> public virtual AssociateApiResponse AssociateApi(AssociateApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApiResponseUnmarshaller.Instance; return Invoke<AssociateApiResponse>(request, options); } /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi 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 AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> public virtual Task<AssociateApiResponse> AssociateApiAsync(AssociateApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApiResponseUnmarshaller.Instance; return InvokeAsync<AssociateApiResponse>(request, options, cancellationToken); } #endregion #region AssociateMergedGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> public virtual AssociateMergedGraphqlApiResponse AssociateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateMergedGraphqlApiResponseUnmarshaller.Instance; return Invoke<AssociateMergedGraphqlApiResponse>(request, options); } /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi 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 AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> public virtual Task<AssociateMergedGraphqlApiResponse> AssociateMergedGraphqlApiAsync(AssociateMergedGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateMergedGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<AssociateMergedGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region AssociateSourceGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> public virtual AssociateSourceGraphqlApiResponse AssociateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateSourceGraphqlApiResponseUnmarshaller.Instance; return Invoke<AssociateSourceGraphqlApiResponse>(request, options); } /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi 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 AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> public virtual Task<AssociateSourceGraphqlApiResponse> AssociateSourceGraphqlApiAsync(AssociateSourceGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateSourceGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<AssociateSourceGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region CreateApiCache /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache service method.</param> /// /// <returns>The response from the CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> public virtual CreateApiCacheResponse CreateApiCache(CreateApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiCacheResponseUnmarshaller.Instance; return Invoke<CreateApiCacheResponse>(request, options); } /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache 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 CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> public virtual Task<CreateApiCacheResponse> CreateApiCacheAsync(CreateApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiCacheResponseUnmarshaller.Instance; return InvokeAsync<CreateApiCacheResponse>(request, options, cancellationToken); } #endregion #region CreateApiKey /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey service method.</param> /// /// <returns>The response from the CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance; return Invoke<CreateApiKeyResponse>(request, options); } /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey 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 CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> public virtual Task<CreateApiKeyResponse> CreateApiKeyAsync(CreateApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance; return InvokeAsync<CreateApiKeyResponse>(request, options, cancellationToken); } #endregion #region CreateDataSource /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource service method.</param> /// /// <returns>The response from the CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> public virtual CreateDataSourceResponse CreateDataSource(CreateDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance; return Invoke<CreateDataSourceResponse>(request, options); } /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource 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 CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> public virtual Task<CreateDataSourceResponse> CreateDataSourceAsync(CreateDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance; return InvokeAsync<CreateDataSourceResponse>(request, options, cancellationToken); } #endregion #region CreateDomainName /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName service method.</param> /// /// <returns>The response from the CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> public virtual CreateDomainNameResponse CreateDomainName(CreateDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance; return Invoke<CreateDomainNameResponse>(request, options); } /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName 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 CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> public virtual Task<CreateDomainNameResponse> CreateDomainNameAsync(CreateDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance; return InvokeAsync<CreateDomainNameResponse>(request, options, cancellationToken); } #endregion #region CreateFunction /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction service method.</param> /// /// <returns>The response from the CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> public virtual CreateFunctionResponse CreateFunction(CreateFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return Invoke<CreateFunctionResponse>(request, options); } /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction 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 CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> public virtual Task<CreateFunctionResponse> CreateFunctionAsync(CreateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return InvokeAsync<CreateFunctionResponse>(request, options, cancellationToken); } #endregion #region CreateGraphqlApi /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi service method.</param> /// /// <returns>The response from the CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> public virtual CreateGraphqlApiResponse CreateGraphqlApi(CreateGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGraphqlApiResponseUnmarshaller.Instance; return Invoke<CreateGraphqlApiResponse>(request, options); } /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi 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 CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> public virtual Task<CreateGraphqlApiResponse> CreateGraphqlApiAsync(CreateGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<CreateGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region CreateResolver /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver service method.</param> /// /// <returns>The response from the CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> public virtual CreateResolverResponse CreateResolver(CreateResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResolverResponseUnmarshaller.Instance; return Invoke<CreateResolverResponse>(request, options); } /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver 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 CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> public virtual Task<CreateResolverResponse> CreateResolverAsync(CreateResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResolverResponseUnmarshaller.Instance; return InvokeAsync<CreateResolverResponse>(request, options, cancellationToken); } #endregion #region CreateType /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType service method.</param> /// /// <returns>The response from the CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> public virtual CreateTypeResponse CreateType(CreateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTypeResponseUnmarshaller.Instance; return Invoke<CreateTypeResponse>(request, options); } /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType 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 CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> public virtual Task<CreateTypeResponse> CreateTypeAsync(CreateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTypeResponseUnmarshaller.Instance; return InvokeAsync<CreateTypeResponse>(request, options, cancellationToken); } #endregion #region DeleteApiCache /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache service method.</param> /// /// <returns>The response from the DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> public virtual DeleteApiCacheResponse DeleteApiCache(DeleteApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiCacheResponseUnmarshaller.Instance; return Invoke<DeleteApiCacheResponse>(request, options); } /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache 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 DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> public virtual Task<DeleteApiCacheResponse> DeleteApiCacheAsync(DeleteApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiCacheResponseUnmarshaller.Instance; return InvokeAsync<DeleteApiCacheResponse>(request, options, cancellationToken); } #endregion #region DeleteApiKey /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey service method.</param> /// /// <returns>The response from the DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> public virtual DeleteApiKeyResponse DeleteApiKey(DeleteApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiKeyResponseUnmarshaller.Instance; return Invoke<DeleteApiKeyResponse>(request, options); } /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey 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 DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> public virtual Task<DeleteApiKeyResponse> DeleteApiKeyAsync(DeleteApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiKeyResponseUnmarshaller.Instance; return InvokeAsync<DeleteApiKeyResponse>(request, options, cancellationToken); } #endregion #region DeleteDataSource /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource service method.</param> /// /// <returns>The response from the DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> public virtual DeleteDataSourceResponse DeleteDataSource(DeleteDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataSourceResponseUnmarshaller.Instance; return Invoke<DeleteDataSourceResponse>(request, options); } /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource 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 DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> public virtual Task<DeleteDataSourceResponse> DeleteDataSourceAsync(DeleteDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataSourceResponseUnmarshaller.Instance; return InvokeAsync<DeleteDataSourceResponse>(request, options, cancellationToken); } #endregion #region DeleteDomainName /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName service method.</param> /// /// <returns>The response from the DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> public virtual DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance; return Invoke<DeleteDomainNameResponse>(request, options); } /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName 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 DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> public virtual Task<DeleteDomainNameResponse> DeleteDomainNameAsync(DeleteDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance; return InvokeAsync<DeleteDomainNameResponse>(request, options, cancellationToken); } #endregion #region DeleteFunction /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction service method.</param> /// /// <returns>The response from the DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> public virtual DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return Invoke<DeleteFunctionResponse>(request, options); } /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction 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 DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> public virtual Task<DeleteFunctionResponse> DeleteFunctionAsync(DeleteFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return InvokeAsync<DeleteFunctionResponse>(request, options, cancellationToken); } #endregion #region DeleteGraphqlApi /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi service method.</param> /// /// <returns>The response from the DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> public virtual DeleteGraphqlApiResponse DeleteGraphqlApi(DeleteGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGraphqlApiResponseUnmarshaller.Instance; return Invoke<DeleteGraphqlApiResponse>(request, options); } /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi 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 DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> public virtual Task<DeleteGraphqlApiResponse> DeleteGraphqlApiAsync(DeleteGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<DeleteGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region DeleteResolver /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver service method.</param> /// /// <returns>The response from the DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> public virtual DeleteResolverResponse DeleteResolver(DeleteResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResolverResponseUnmarshaller.Instance; return Invoke<DeleteResolverResponse>(request, options); } /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver 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 DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> public virtual Task<DeleteResolverResponse> DeleteResolverAsync(DeleteResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResolverResponseUnmarshaller.Instance; return InvokeAsync<DeleteResolverResponse>(request, options, cancellationToken); } #endregion #region DeleteType /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType service method.</param> /// /// <returns>The response from the DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> public virtual DeleteTypeResponse DeleteType(DeleteTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTypeResponseUnmarshaller.Instance; return Invoke<DeleteTypeResponse>(request, options); } /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType 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 DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> public virtual Task<DeleteTypeResponse> DeleteTypeAsync(DeleteTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTypeResponseUnmarshaller.Instance; return InvokeAsync<DeleteTypeResponse>(request, options, cancellationToken); } #endregion #region DisassociateApi /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi service method.</param> /// /// <returns>The response from the DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> public virtual DisassociateApiResponse DisassociateApi(DisassociateApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApiResponseUnmarshaller.Instance; return Invoke<DisassociateApiResponse>(request, options); } /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi 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 DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> public virtual Task<DisassociateApiResponse> DisassociateApiAsync(DisassociateApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApiResponseUnmarshaller.Instance; return InvokeAsync<DisassociateApiResponse>(request, options, cancellationToken); } #endregion #region DisassociateMergedGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> public virtual DisassociateMergedGraphqlApiResponse DisassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMergedGraphqlApiResponseUnmarshaller.Instance; return Invoke<DisassociateMergedGraphqlApiResponse>(request, options); } /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi 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 DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> public virtual Task<DisassociateMergedGraphqlApiResponse> DisassociateMergedGraphqlApiAsync(DisassociateMergedGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMergedGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<DisassociateMergedGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region DisassociateSourceGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> public virtual DisassociateSourceGraphqlApiResponse DisassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateSourceGraphqlApiResponseUnmarshaller.Instance; return Invoke<DisassociateSourceGraphqlApiResponse>(request, options); } /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi 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 DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> public virtual Task<DisassociateSourceGraphqlApiResponse> DisassociateSourceGraphqlApiAsync(DisassociateSourceGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateSourceGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<DisassociateSourceGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region EvaluateCode /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode service method.</param> /// /// <returns>The response from the EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> public virtual EvaluateCodeResponse EvaluateCode(EvaluateCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateCodeResponseUnmarshaller.Instance; return Invoke<EvaluateCodeResponse>(request, options); } /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode 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 EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> public virtual Task<EvaluateCodeResponse> EvaluateCodeAsync(EvaluateCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateCodeResponseUnmarshaller.Instance; return InvokeAsync<EvaluateCodeResponse>(request, options, cancellationToken); } #endregion #region EvaluateMappingTemplate /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate service method.</param> /// /// <returns>The response from the EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> public virtual EvaluateMappingTemplateResponse EvaluateMappingTemplate(EvaluateMappingTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateMappingTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateMappingTemplateResponseUnmarshaller.Instance; return Invoke<EvaluateMappingTemplateResponse>(request, options); } /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate 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 EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> public virtual Task<EvaluateMappingTemplateResponse> EvaluateMappingTemplateAsync(EvaluateMappingTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateMappingTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateMappingTemplateResponseUnmarshaller.Instance; return InvokeAsync<EvaluateMappingTemplateResponse>(request, options, cancellationToken); } #endregion #region FlushApiCache /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache service method.</param> /// /// <returns>The response from the FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> public virtual FlushApiCacheResponse FlushApiCache(FlushApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = FlushApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = FlushApiCacheResponseUnmarshaller.Instance; return Invoke<FlushApiCacheResponse>(request, options); } /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache 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 FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> public virtual Task<FlushApiCacheResponse> FlushApiCacheAsync(FlushApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = FlushApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = FlushApiCacheResponseUnmarshaller.Instance; return InvokeAsync<FlushApiCacheResponse>(request, options, cancellationToken); } #endregion #region GetApiAssociation /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation service method.</param> /// /// <returns>The response from the GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> public virtual GetApiAssociationResponse GetApiAssociation(GetApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiAssociationResponseUnmarshaller.Instance; return Invoke<GetApiAssociationResponse>(request, options); } /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation 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 GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> public virtual Task<GetApiAssociationResponse> GetApiAssociationAsync(GetApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiAssociationResponseUnmarshaller.Instance; return InvokeAsync<GetApiAssociationResponse>(request, options, cancellationToken); } #endregion #region GetApiCache /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache service method.</param> /// /// <returns>The response from the GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> public virtual GetApiCacheResponse GetApiCache(GetApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiCacheResponseUnmarshaller.Instance; return Invoke<GetApiCacheResponse>(request, options); } /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache 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 GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> public virtual Task<GetApiCacheResponse> GetApiCacheAsync(GetApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiCacheResponseUnmarshaller.Instance; return InvokeAsync<GetApiCacheResponse>(request, options, cancellationToken); } #endregion #region GetDataSource /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource service method.</param> /// /// <returns>The response from the GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> public virtual GetDataSourceResponse GetDataSource(GetDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance; return Invoke<GetDataSourceResponse>(request, options); } /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource 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 GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> public virtual Task<GetDataSourceResponse> GetDataSourceAsync(GetDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance; return InvokeAsync<GetDataSourceResponse>(request, options, cancellationToken); } #endregion #region GetDomainName /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName service method.</param> /// /// <returns>The response from the GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> public virtual GetDomainNameResponse GetDomainName(GetDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance; return Invoke<GetDomainNameResponse>(request, options); } /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName 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 GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> public virtual Task<GetDomainNameResponse> GetDomainNameAsync(GetDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance; return InvokeAsync<GetDomainNameResponse>(request, options, cancellationToken); } #endregion #region GetFunction /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction service method.</param> /// /// <returns>The response from the GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> public virtual GetFunctionResponse GetFunction(GetFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return Invoke<GetFunctionResponse>(request, options); } /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction 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 GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> public virtual Task<GetFunctionResponse> GetFunctionAsync(GetFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return InvokeAsync<GetFunctionResponse>(request, options, cancellationToken); } #endregion #region GetGraphqlApi /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi service method.</param> /// /// <returns>The response from the GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> public virtual GetGraphqlApiResponse GetGraphqlApi(GetGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGraphqlApiResponseUnmarshaller.Instance; return Invoke<GetGraphqlApiResponse>(request, options); } /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi 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 GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> public virtual Task<GetGraphqlApiResponse> GetGraphqlApiAsync(GetGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<GetGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region GetIntrospectionSchema /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema service method.</param> /// /// <returns>The response from the GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> public virtual GetIntrospectionSchemaResponse GetIntrospectionSchema(GetIntrospectionSchemaRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIntrospectionSchemaRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIntrospectionSchemaResponseUnmarshaller.Instance; return Invoke<GetIntrospectionSchemaResponse>(request, options); } /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema 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 GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> public virtual Task<GetIntrospectionSchemaResponse> GetIntrospectionSchemaAsync(GetIntrospectionSchemaRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetIntrospectionSchemaRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIntrospectionSchemaResponseUnmarshaller.Instance; return InvokeAsync<GetIntrospectionSchemaResponse>(request, options, cancellationToken); } #endregion #region GetResolver /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver service method.</param> /// /// <returns>The response from the GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> public virtual GetResolverResponse GetResolver(GetResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResolverResponseUnmarshaller.Instance; return Invoke<GetResolverResponse>(request, options); } /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver 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 GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> public virtual Task<GetResolverResponse> GetResolverAsync(GetResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResolverResponseUnmarshaller.Instance; return InvokeAsync<GetResolverResponse>(request, options, cancellationToken); } #endregion #region GetSchemaCreationStatus /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus service method.</param> /// /// <returns>The response from the GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> public virtual GetSchemaCreationStatusResponse GetSchemaCreationStatus(GetSchemaCreationStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSchemaCreationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSchemaCreationStatusResponseUnmarshaller.Instance; return Invoke<GetSchemaCreationStatusResponse>(request, options); } /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus 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 GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> public virtual Task<GetSchemaCreationStatusResponse> GetSchemaCreationStatusAsync(GetSchemaCreationStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSchemaCreationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSchemaCreationStatusResponseUnmarshaller.Instance; return InvokeAsync<GetSchemaCreationStatusResponse>(request, options, cancellationToken); } #endregion #region GetSourceApiAssociation /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation service method.</param> /// /// <returns>The response from the GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> public virtual GetSourceApiAssociationResponse GetSourceApiAssociation(GetSourceApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSourceApiAssociationResponseUnmarshaller.Instance; return Invoke<GetSourceApiAssociationResponse>(request, options); } /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation 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 GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> public virtual Task<GetSourceApiAssociationResponse> GetSourceApiAssociationAsync(GetSourceApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSourceApiAssociationResponseUnmarshaller.Instance; return InvokeAsync<GetSourceApiAssociationResponse>(request, options, cancellationToken); } #endregion #region GetType /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType service method.</param> /// /// <returns>The response from the GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> public virtual GetTypeResponse GetType(GetTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTypeResponseUnmarshaller.Instance; return Invoke<GetTypeResponse>(request, options); } /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType 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 GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> public virtual Task<GetTypeResponse> GetTypeAsync(GetTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTypeResponseUnmarshaller.Instance; return InvokeAsync<GetTypeResponse>(request, options, cancellationToken); } #endregion #region ListApiKeys /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys service method.</param> /// /// <returns>The response from the ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> public virtual ListApiKeysResponse ListApiKeys(ListApiKeysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApiKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApiKeysResponseUnmarshaller.Instance; return Invoke<ListApiKeysResponse>(request, options); } /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys 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 ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> public virtual Task<ListApiKeysResponse> ListApiKeysAsync(ListApiKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApiKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApiKeysResponseUnmarshaller.Instance; return InvokeAsync<ListApiKeysResponse>(request, options, cancellationToken); } #endregion #region ListDataSources /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources service method.</param> /// /// <returns>The response from the ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> public virtual ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance; return Invoke<ListDataSourcesResponse>(request, options); } /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources 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 ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> public virtual Task<ListDataSourcesResponse> ListDataSourcesAsync(ListDataSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance; return InvokeAsync<ListDataSourcesResponse>(request, options, cancellationToken); } #endregion #region ListDomainNames /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return Invoke<ListDomainNamesResponse>(request, options); } /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames 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 ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return InvokeAsync<ListDomainNamesResponse>(request, options, cancellationToken); } #endregion #region ListFunctions /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions service method.</param> /// /// <returns>The response from the ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> public virtual ListFunctionsResponse ListFunctions(ListFunctionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return Invoke<ListFunctionsResponse>(request, options); } /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions 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 ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> public virtual Task<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return InvokeAsync<ListFunctionsResponse>(request, options, cancellationToken); } #endregion #region ListGraphqlApis /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis service method.</param> /// /// <returns>The response from the ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> public virtual ListGraphqlApisResponse ListGraphqlApis(ListGraphqlApisRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGraphqlApisRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGraphqlApisResponseUnmarshaller.Instance; return Invoke<ListGraphqlApisResponse>(request, options); } /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis 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 ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> public virtual Task<ListGraphqlApisResponse> ListGraphqlApisAsync(ListGraphqlApisRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGraphqlApisRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGraphqlApisResponseUnmarshaller.Instance; return InvokeAsync<ListGraphqlApisResponse>(request, options, cancellationToken); } #endregion #region ListResolvers /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers service method.</param> /// /// <returns>The response from the ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> public virtual ListResolversResponse ListResolvers(ListResolversRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversResponseUnmarshaller.Instance; return Invoke<ListResolversResponse>(request, options); } /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers 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 ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> public virtual Task<ListResolversResponse> ListResolversAsync(ListResolversRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversResponseUnmarshaller.Instance; return InvokeAsync<ListResolversResponse>(request, options, cancellationToken); } #endregion #region ListResolversByFunction /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction service method.</param> /// /// <returns>The response from the ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> public virtual ListResolversByFunctionResponse ListResolversByFunction(ListResolversByFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversByFunctionResponseUnmarshaller.Instance; return Invoke<ListResolversByFunctionResponse>(request, options); } /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction 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 ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> public virtual Task<ListResolversByFunctionResponse> ListResolversByFunctionAsync(ListResolversByFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversByFunctionResponseUnmarshaller.Instance; return InvokeAsync<ListResolversByFunctionResponse>(request, options, cancellationToken); } #endregion #region ListSourceApiAssociations /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations service method.</param> /// /// <returns>The response from the ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> public virtual ListSourceApiAssociationsResponse ListSourceApiAssociations(ListSourceApiAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceApiAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceApiAssociationsResponseUnmarshaller.Instance; return Invoke<ListSourceApiAssociationsResponse>(request, options); } /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations 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 ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> public virtual Task<ListSourceApiAssociationsResponse> ListSourceApiAssociationsAsync(ListSourceApiAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceApiAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceApiAssociationsResponseUnmarshaller.Instance; return InvokeAsync<ListSourceApiAssociationsResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags for a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 ListTypes /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual ListTypesResponse ListTypes(ListTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return Invoke<ListTypesResponse>(request, options); } /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes 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 ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return InvokeAsync<ListTypesResponse>(request, options, cancellationToken); } #endregion #region ListTypesByAssociation /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation service method.</param> /// /// <returns>The response from the ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> public virtual ListTypesByAssociationResponse ListTypesByAssociation(ListTypesByAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesByAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesByAssociationResponseUnmarshaller.Instance; return Invoke<ListTypesByAssociationResponse>(request, options); } /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation 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 ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> public virtual Task<ListTypesByAssociationResponse> ListTypesByAssociationAsync(ListTypesByAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesByAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesByAssociationResponseUnmarshaller.Instance; return InvokeAsync<ListTypesByAssociationResponse>(request, options, cancellationToken); } #endregion #region StartSchemaCreation /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation service method.</param> /// /// <returns>The response from the StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> public virtual StartSchemaCreationResponse StartSchemaCreation(StartSchemaCreationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaCreationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaCreationResponseUnmarshaller.Instance; return Invoke<StartSchemaCreationResponse>(request, options); } /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation 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 StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> public virtual Task<StartSchemaCreationResponse> StartSchemaCreationAsync(StartSchemaCreationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaCreationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaCreationResponseUnmarshaller.Instance; return InvokeAsync<StartSchemaCreationResponse>(request, options, cancellationToken); } #endregion #region StartSchemaMerge /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge service method.</param> /// /// <returns>The response from the StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> public virtual StartSchemaMergeResponse StartSchemaMerge(StartSchemaMergeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaMergeRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaMergeResponseUnmarshaller.Instance; return Invoke<StartSchemaMergeResponse>(request, options); } /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge 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 StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> public virtual Task<StartSchemaMergeResponse> StartSchemaMergeAsync(StartSchemaMergeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaMergeRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaMergeResponseUnmarshaller.Instance; return InvokeAsync<StartSchemaMergeResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region UntagResource /// <summary> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 UpdateApiCache /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache service method.</param> /// /// <returns>The response from the UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> public virtual UpdateApiCacheResponse UpdateApiCache(UpdateApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiCacheResponseUnmarshaller.Instance; return Invoke<UpdateApiCacheResponse>(request, options); } /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache 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 UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> public virtual Task<UpdateApiCacheResponse> UpdateApiCacheAsync(UpdateApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiCacheResponseUnmarshaller.Instance; return InvokeAsync<UpdateApiCacheResponse>(request, options, cancellationToken); } #endregion #region UpdateApiKey /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey service method.</param> /// /// <returns>The response from the UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiKeyResponseUnmarshaller.Instance; return Invoke<UpdateApiKeyResponse>(request, options); } /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey 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 UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> public virtual Task<UpdateApiKeyResponse> UpdateApiKeyAsync(UpdateApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiKeyResponseUnmarshaller.Instance; return InvokeAsync<UpdateApiKeyResponse>(request, options, cancellationToken); } #endregion #region UpdateDataSource /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource service method.</param> /// /// <returns>The response from the UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> public virtual UpdateDataSourceResponse UpdateDataSource(UpdateDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance; return Invoke<UpdateDataSourceResponse>(request, options); } /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource 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 UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> public virtual Task<UpdateDataSourceResponse> UpdateDataSourceAsync(UpdateDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance; return InvokeAsync<UpdateDataSourceResponse>(request, options, cancellationToken); } #endregion #region UpdateDomainName /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName service method.</param> /// /// <returns>The response from the UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> public virtual UpdateDomainNameResponse UpdateDomainName(UpdateDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance; return Invoke<UpdateDomainNameResponse>(request, options); } /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName 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 UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> public virtual Task<UpdateDomainNameResponse> UpdateDomainNameAsync(UpdateDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance; return InvokeAsync<UpdateDomainNameResponse>(request, options, cancellationToken); } #endregion #region UpdateFunction /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction service method.</param> /// /// <returns>The response from the UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> public virtual UpdateFunctionResponse UpdateFunction(UpdateFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance; return Invoke<UpdateFunctionResponse>(request, options); } /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction 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 UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> public virtual Task<UpdateFunctionResponse> UpdateFunctionAsync(UpdateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance; return InvokeAsync<UpdateFunctionResponse>(request, options, cancellationToken); } #endregion #region UpdateGraphqlApi /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi service method.</param> /// /// <returns>The response from the UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> public virtual UpdateGraphqlApiResponse UpdateGraphqlApi(UpdateGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGraphqlApiResponseUnmarshaller.Instance; return Invoke<UpdateGraphqlApiResponse>(request, options); } /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi 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 UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> public virtual Task<UpdateGraphqlApiResponse> UpdateGraphqlApiAsync(UpdateGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<UpdateGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region UpdateResolver /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver service method.</param> /// /// <returns>The response from the UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> public virtual UpdateResolverResponse UpdateResolver(UpdateResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResolverResponseUnmarshaller.Instance; return Invoke<UpdateResolverResponse>(request, options); } /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver 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 UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> public virtual Task<UpdateResolverResponse> UpdateResolverAsync(UpdateResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResolverResponseUnmarshaller.Instance; return InvokeAsync<UpdateResolverResponse>(request, options, cancellationToken); } #endregion #region UpdateSourceApiAssociation /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation service method.</param> /// /// <returns>The response from the UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> public virtual UpdateSourceApiAssociationResponse UpdateSourceApiAssociation(UpdateSourceApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceApiAssociationResponseUnmarshaller.Instance; return Invoke<UpdateSourceApiAssociationResponse>(request, options); } /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation 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 UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> public virtual Task<UpdateSourceApiAssociationResponse> UpdateSourceApiAssociationAsync(UpdateSourceApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceApiAssociationResponseUnmarshaller.Instance; return InvokeAsync<UpdateSourceApiAssociationResponse>(request, options, cancellationToken); } #endregion #region UpdateType /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType service method.</param> /// /// <returns>The response from the UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> public virtual UpdateTypeResponse UpdateType(UpdateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTypeResponseUnmarshaller.Instance; return Invoke<UpdateTypeResponse>(request, options); } /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType 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 UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> public virtual Task<UpdateTypeResponse> UpdateTypeAsync(UpdateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTypeResponseUnmarshaller.Instance; return InvokeAsync<UpdateTypeResponse>(request, options, cancellationToken); } #endregion } }
4,786
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AppSync.Model; namespace Amazon.AppSync { /// <summary> /// Interface for accessing AppSync /// /// AppSync provides API actions for creating and interacting with data sources using /// GraphQL from your application. /// </summary> public partial interface IAmazonAppSync : IAmazonService, IDisposable { #region AssociateApi /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi service method.</param> /// /// <returns>The response from the AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> AssociateApiResponse AssociateApi(AssociateApiRequest request); /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi 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 AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> Task<AssociateApiResponse> AssociateApiAsync(AssociateApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociateMergedGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> AssociateMergedGraphqlApiResponse AssociateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request); /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi 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 AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> Task<AssociateMergedGraphqlApiResponse> AssociateMergedGraphqlApiAsync(AssociateMergedGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociateSourceGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> AssociateSourceGraphqlApiResponse AssociateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request); /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi 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 AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> Task<AssociateSourceGraphqlApiResponse> AssociateSourceGraphqlApiAsync(AssociateSourceGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateApiCache /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache service method.</param> /// /// <returns>The response from the CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> CreateApiCacheResponse CreateApiCache(CreateApiCacheRequest request); /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache 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 CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> Task<CreateApiCacheResponse> CreateApiCacheAsync(CreateApiCacheRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateApiKey /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey service method.</param> /// /// <returns>The response from the CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request); /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey 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 CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> Task<CreateApiKeyResponse> CreateApiKeyAsync(CreateApiKeyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDataSource /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource service method.</param> /// /// <returns>The response from the CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> CreateDataSourceResponse CreateDataSource(CreateDataSourceRequest request); /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource 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 CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> Task<CreateDataSourceResponse> CreateDataSourceAsync(CreateDataSourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDomainName /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName service method.</param> /// /// <returns>The response from the CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> CreateDomainNameResponse CreateDomainName(CreateDomainNameRequest request); /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName 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 CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> Task<CreateDomainNameResponse> CreateDomainNameAsync(CreateDomainNameRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateFunction /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction service method.</param> /// /// <returns>The response from the CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> CreateFunctionResponse CreateFunction(CreateFunctionRequest request); /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction 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 CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> Task<CreateFunctionResponse> CreateFunctionAsync(CreateFunctionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateGraphqlApi /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi service method.</param> /// /// <returns>The response from the CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> CreateGraphqlApiResponse CreateGraphqlApi(CreateGraphqlApiRequest request); /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi 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 CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> Task<CreateGraphqlApiResponse> CreateGraphqlApiAsync(CreateGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateResolver /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver service method.</param> /// /// <returns>The response from the CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> CreateResolverResponse CreateResolver(CreateResolverRequest request); /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver 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 CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> Task<CreateResolverResponse> CreateResolverAsync(CreateResolverRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateType /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType service method.</param> /// /// <returns>The response from the CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> CreateTypeResponse CreateType(CreateTypeRequest request); /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType 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 CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> Task<CreateTypeResponse> CreateTypeAsync(CreateTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteApiCache /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache service method.</param> /// /// <returns>The response from the DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> DeleteApiCacheResponse DeleteApiCache(DeleteApiCacheRequest request); /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache 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 DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> Task<DeleteApiCacheResponse> DeleteApiCacheAsync(DeleteApiCacheRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteApiKey /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey service method.</param> /// /// <returns>The response from the DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> DeleteApiKeyResponse DeleteApiKey(DeleteApiKeyRequest request); /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey 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 DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> Task<DeleteApiKeyResponse> DeleteApiKeyAsync(DeleteApiKeyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDataSource /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource service method.</param> /// /// <returns>The response from the DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> DeleteDataSourceResponse DeleteDataSource(DeleteDataSourceRequest request); /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource 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 DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> Task<DeleteDataSourceResponse> DeleteDataSourceAsync(DeleteDataSourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDomainName /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName service method.</param> /// /// <returns>The response from the DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request); /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName 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 DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> Task<DeleteDomainNameResponse> DeleteDomainNameAsync(DeleteDomainNameRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteFunction /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction service method.</param> /// /// <returns>The response from the DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request); /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction 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 DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> Task<DeleteFunctionResponse> DeleteFunctionAsync(DeleteFunctionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteGraphqlApi /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi service method.</param> /// /// <returns>The response from the DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> DeleteGraphqlApiResponse DeleteGraphqlApi(DeleteGraphqlApiRequest request); /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi 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 DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> Task<DeleteGraphqlApiResponse> DeleteGraphqlApiAsync(DeleteGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteResolver /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver service method.</param> /// /// <returns>The response from the DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> DeleteResolverResponse DeleteResolver(DeleteResolverRequest request); /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver 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 DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> Task<DeleteResolverResponse> DeleteResolverAsync(DeleteResolverRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteType /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType service method.</param> /// /// <returns>The response from the DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> DeleteTypeResponse DeleteType(DeleteTypeRequest request); /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType 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 DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> Task<DeleteTypeResponse> DeleteTypeAsync(DeleteTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateApi /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi service method.</param> /// /// <returns>The response from the DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> DisassociateApiResponse DisassociateApi(DisassociateApiRequest request); /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi 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 DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> Task<DisassociateApiResponse> DisassociateApiAsync(DisassociateApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateMergedGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> DisassociateMergedGraphqlApiResponse DisassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request); /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi 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 DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> Task<DisassociateMergedGraphqlApiResponse> DisassociateMergedGraphqlApiAsync(DisassociateMergedGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateSourceGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi service method.</param> /// /// <returns>The response from the DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> DisassociateSourceGraphqlApiResponse DisassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request); /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi 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 DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> Task<DisassociateSourceGraphqlApiResponse> DisassociateSourceGraphqlApiAsync(DisassociateSourceGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EvaluateCode /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode service method.</param> /// /// <returns>The response from the EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> EvaluateCodeResponse EvaluateCode(EvaluateCodeRequest request); /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode 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 EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> Task<EvaluateCodeResponse> EvaluateCodeAsync(EvaluateCodeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EvaluateMappingTemplate /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate service method.</param> /// /// <returns>The response from the EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> EvaluateMappingTemplateResponse EvaluateMappingTemplate(EvaluateMappingTemplateRequest request); /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate 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 EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> Task<EvaluateMappingTemplateResponse> EvaluateMappingTemplateAsync(EvaluateMappingTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region FlushApiCache /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache service method.</param> /// /// <returns>The response from the FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> FlushApiCacheResponse FlushApiCache(FlushApiCacheRequest request); /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache 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 FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> Task<FlushApiCacheResponse> FlushApiCacheAsync(FlushApiCacheRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetApiAssociation /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation service method.</param> /// /// <returns>The response from the GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> GetApiAssociationResponse GetApiAssociation(GetApiAssociationRequest request); /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation 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 GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> Task<GetApiAssociationResponse> GetApiAssociationAsync(GetApiAssociationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetApiCache /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache service method.</param> /// /// <returns>The response from the GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> GetApiCacheResponse GetApiCache(GetApiCacheRequest request); /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache 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 GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> Task<GetApiCacheResponse> GetApiCacheAsync(GetApiCacheRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDataSource /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource service method.</param> /// /// <returns>The response from the GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> GetDataSourceResponse GetDataSource(GetDataSourceRequest request); /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource 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 GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> Task<GetDataSourceResponse> GetDataSourceAsync(GetDataSourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDomainName /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName service method.</param> /// /// <returns>The response from the GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> GetDomainNameResponse GetDomainName(GetDomainNameRequest request); /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName 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 GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> Task<GetDomainNameResponse> GetDomainNameAsync(GetDomainNameRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetFunction /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction service method.</param> /// /// <returns>The response from the GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> GetFunctionResponse GetFunction(GetFunctionRequest request); /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction 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 GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> Task<GetFunctionResponse> GetFunctionAsync(GetFunctionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetGraphqlApi /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi service method.</param> /// /// <returns>The response from the GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> GetGraphqlApiResponse GetGraphqlApi(GetGraphqlApiRequest request); /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi 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 GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> Task<GetGraphqlApiResponse> GetGraphqlApiAsync(GetGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetIntrospectionSchema /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema service method.</param> /// /// <returns>The response from the GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> GetIntrospectionSchemaResponse GetIntrospectionSchema(GetIntrospectionSchemaRequest request); /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema 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 GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> Task<GetIntrospectionSchemaResponse> GetIntrospectionSchemaAsync(GetIntrospectionSchemaRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResolver /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver service method.</param> /// /// <returns>The response from the GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> GetResolverResponse GetResolver(GetResolverRequest request); /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver 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 GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> Task<GetResolverResponse> GetResolverAsync(GetResolverRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSchemaCreationStatus /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus service method.</param> /// /// <returns>The response from the GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> GetSchemaCreationStatusResponse GetSchemaCreationStatus(GetSchemaCreationStatusRequest request); /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus 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 GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> Task<GetSchemaCreationStatusResponse> GetSchemaCreationStatusAsync(GetSchemaCreationStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSourceApiAssociation /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation service method.</param> /// /// <returns>The response from the GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> GetSourceApiAssociationResponse GetSourceApiAssociation(GetSourceApiAssociationRequest request); /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation 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 GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> Task<GetSourceApiAssociationResponse> GetSourceApiAssociationAsync(GetSourceApiAssociationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetType /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType service method.</param> /// /// <returns>The response from the GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> GetTypeResponse GetType(GetTypeRequest request); /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType 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 GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> Task<GetTypeResponse> GetTypeAsync(GetTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListApiKeys /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys service method.</param> /// /// <returns>The response from the ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> ListApiKeysResponse ListApiKeys(ListApiKeysRequest request); /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys 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 ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> Task<ListApiKeysResponse> ListApiKeysAsync(ListApiKeysRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDataSources /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources service method.</param> /// /// <returns>The response from the ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request); /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources 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 ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> Task<ListDataSourcesResponse> ListDataSourcesAsync(ListDataSourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDomainNames /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request); /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames 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 ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListFunctions /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions service method.</param> /// /// <returns>The response from the ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> ListFunctionsResponse ListFunctions(ListFunctionsRequest request); /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions 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 ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> Task<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListGraphqlApis /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis service method.</param> /// /// <returns>The response from the ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> ListGraphqlApisResponse ListGraphqlApis(ListGraphqlApisRequest request); /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis 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 ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> Task<ListGraphqlApisResponse> ListGraphqlApisAsync(ListGraphqlApisRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResolvers /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers service method.</param> /// /// <returns>The response from the ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> ListResolversResponse ListResolvers(ListResolversRequest request); /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers 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 ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> Task<ListResolversResponse> ListResolversAsync(ListResolversRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResolversByFunction /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction service method.</param> /// /// <returns>The response from the ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> ListResolversByFunctionResponse ListResolversByFunction(ListResolversByFunctionRequest request); /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction 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 ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> Task<ListResolversByFunctionResponse> ListResolversByFunctionAsync(ListResolversByFunctionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListSourceApiAssociations /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations service method.</param> /// /// <returns>The response from the ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> ListSourceApiAssociationsResponse ListSourceApiAssociations(ListSourceApiAssociationsRequest request); /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations 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 ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> Task<ListSourceApiAssociationsResponse> ListSourceApiAssociationsAsync(ListSourceApiAssociationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags for a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Lists the tags for a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypes /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> ListTypesResponse ListTypes(ListTypesRequest request); /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes 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 ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypesByAssociation /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation service method.</param> /// /// <returns>The response from the ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> ListTypesByAssociationResponse ListTypesByAssociation(ListTypesByAssociationRequest request); /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation 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 ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> Task<ListTypesByAssociationResponse> ListTypesByAssociationAsync(ListTypesByAssociationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartSchemaCreation /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation service method.</param> /// /// <returns>The response from the StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> StartSchemaCreationResponse StartSchemaCreation(StartSchemaCreationRequest request); /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation 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 StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> Task<StartSchemaCreationResponse> StartSchemaCreationAsync(StartSchemaCreationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartSchemaMerge /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge service method.</param> /// /// <returns>The response from the StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> StartSchemaMergeResponse StartSchemaMerge(StartSchemaMergeRequest request); /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge 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 StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> Task<StartSchemaMergeResponse> StartSchemaMergeAsync(StartSchemaMergeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateApiCache /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache service method.</param> /// /// <returns>The response from the UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> UpdateApiCacheResponse UpdateApiCache(UpdateApiCacheRequest request); /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache 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 UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> Task<UpdateApiCacheResponse> UpdateApiCacheAsync(UpdateApiCacheRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateApiKey /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey service method.</param> /// /// <returns>The response from the UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request); /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey 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 UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> Task<UpdateApiKeyResponse> UpdateApiKeyAsync(UpdateApiKeyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDataSource /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource service method.</param> /// /// <returns>The response from the UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> UpdateDataSourceResponse UpdateDataSource(UpdateDataSourceRequest request); /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource 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 UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> Task<UpdateDataSourceResponse> UpdateDataSourceAsync(UpdateDataSourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDomainName /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName service method.</param> /// /// <returns>The response from the UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> UpdateDomainNameResponse UpdateDomainName(UpdateDomainNameRequest request); /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName 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 UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> Task<UpdateDomainNameResponse> UpdateDomainNameAsync(UpdateDomainNameRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateFunction /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction service method.</param> /// /// <returns>The response from the UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> UpdateFunctionResponse UpdateFunction(UpdateFunctionRequest request); /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction 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 UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> Task<UpdateFunctionResponse> UpdateFunctionAsync(UpdateFunctionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateGraphqlApi /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi service method.</param> /// /// <returns>The response from the UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> UpdateGraphqlApiResponse UpdateGraphqlApi(UpdateGraphqlApiRequest request); /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi 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 UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> Task<UpdateGraphqlApiResponse> UpdateGraphqlApiAsync(UpdateGraphqlApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateResolver /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver service method.</param> /// /// <returns>The response from the UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> UpdateResolverResponse UpdateResolver(UpdateResolverRequest request); /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver 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 UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> Task<UpdateResolverResponse> UpdateResolverAsync(UpdateResolverRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateSourceApiAssociation /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation service method.</param> /// /// <returns>The response from the UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> UpdateSourceApiAssociationResponse UpdateSourceApiAssociation(UpdateSourceApiAssociationRequest request); /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation 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 UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> Task<UpdateSourceApiAssociationResponse> UpdateSourceApiAssociationAsync(UpdateSourceApiAssociationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateType /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType service method.</param> /// /// <returns>The response from the UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> UpdateTypeResponse UpdateType(UpdateTypeRequest request); /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType 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 UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> Task<UpdateTypeResponse> UpdateTypeAsync(UpdateTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
3,797
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.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.AppSync.Model; using Amazon.AppSync.Model.Internal.MarshallTransformations; using Amazon.AppSync.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AppSync { /// <summary> /// Implementation for accessing AppSync /// /// AppSync provides API actions for creating and interacting with data sources using /// GraphQL from your application. /// </summary> public partial class AmazonAppSyncClient : AmazonServiceClient, IAmazonAppSync { private static IServiceMetadata serviceMetadata = new AmazonAppSyncMetadata(); #region Constructors /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(AmazonAppSyncConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAppSyncClient(AWSCredentials credentials) : this(credentials, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAppSyncClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Credentials and an /// AmazonAppSyncClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(AWSCredentials credentials, AmazonAppSyncConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppSyncConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppSyncClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppSyncConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppSyncConfig()) { } /// <summary> /// Constructs AmazonAppSyncClient 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 AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppSyncConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppSyncClient 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 AmazonAppSyncClient Configuration Object</param> public AmazonAppSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppSyncConfig 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> /// 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 AmazonAppSyncEndpointResolver()); } /// <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 AssociateApi internal virtual AssociateApiResponse AssociateApi(AssociateApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApiResponseUnmarshaller.Instance; return Invoke<AssociateApiResponse>(request, options); } /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi 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 AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> public virtual Task<AssociateApiResponse> AssociateApiAsync(AssociateApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApiResponseUnmarshaller.Instance; return InvokeAsync<AssociateApiResponse>(request, options, cancellationToken); } #endregion #region AssociateMergedGraphqlApi internal virtual AssociateMergedGraphqlApiResponse AssociateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateMergedGraphqlApiResponseUnmarshaller.Instance; return Invoke<AssociateMergedGraphqlApiResponse>(request, options); } /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi 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 AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> public virtual Task<AssociateMergedGraphqlApiResponse> AssociateMergedGraphqlApiAsync(AssociateMergedGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateMergedGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<AssociateMergedGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region AssociateSourceGraphqlApi internal virtual AssociateSourceGraphqlApiResponse AssociateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateSourceGraphqlApiResponseUnmarshaller.Instance; return Invoke<AssociateSourceGraphqlApiResponse>(request, options); } /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi 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 AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> public virtual Task<AssociateSourceGraphqlApiResponse> AssociateSourceGraphqlApiAsync(AssociateSourceGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateSourceGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<AssociateSourceGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region CreateApiCache internal virtual CreateApiCacheResponse CreateApiCache(CreateApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiCacheResponseUnmarshaller.Instance; return Invoke<CreateApiCacheResponse>(request, options); } /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache 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 CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> public virtual Task<CreateApiCacheResponse> CreateApiCacheAsync(CreateApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiCacheResponseUnmarshaller.Instance; return InvokeAsync<CreateApiCacheResponse>(request, options, cancellationToken); } #endregion #region CreateApiKey internal virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance; return Invoke<CreateApiKeyResponse>(request, options); } /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey 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 CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> public virtual Task<CreateApiKeyResponse> CreateApiKeyAsync(CreateApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance; return InvokeAsync<CreateApiKeyResponse>(request, options, cancellationToken); } #endregion #region CreateDataSource internal virtual CreateDataSourceResponse CreateDataSource(CreateDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance; return Invoke<CreateDataSourceResponse>(request, options); } /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource 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 CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> public virtual Task<CreateDataSourceResponse> CreateDataSourceAsync(CreateDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance; return InvokeAsync<CreateDataSourceResponse>(request, options, cancellationToken); } #endregion #region CreateDomainName internal virtual CreateDomainNameResponse CreateDomainName(CreateDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance; return Invoke<CreateDomainNameResponse>(request, options); } /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName 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 CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> public virtual Task<CreateDomainNameResponse> CreateDomainNameAsync(CreateDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance; return InvokeAsync<CreateDomainNameResponse>(request, options, cancellationToken); } #endregion #region CreateFunction internal virtual CreateFunctionResponse CreateFunction(CreateFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return Invoke<CreateFunctionResponse>(request, options); } /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction 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 CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> public virtual Task<CreateFunctionResponse> CreateFunctionAsync(CreateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return InvokeAsync<CreateFunctionResponse>(request, options, cancellationToken); } #endregion #region CreateGraphqlApi internal virtual CreateGraphqlApiResponse CreateGraphqlApi(CreateGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGraphqlApiResponseUnmarshaller.Instance; return Invoke<CreateGraphqlApiResponse>(request, options); } /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi 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 CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> public virtual Task<CreateGraphqlApiResponse> CreateGraphqlApiAsync(CreateGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<CreateGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region CreateResolver internal virtual CreateResolverResponse CreateResolver(CreateResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResolverResponseUnmarshaller.Instance; return Invoke<CreateResolverResponse>(request, options); } /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver 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 CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> public virtual Task<CreateResolverResponse> CreateResolverAsync(CreateResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResolverResponseUnmarshaller.Instance; return InvokeAsync<CreateResolverResponse>(request, options, cancellationToken); } #endregion #region CreateType internal virtual CreateTypeResponse CreateType(CreateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTypeResponseUnmarshaller.Instance; return Invoke<CreateTypeResponse>(request, options); } /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType 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 CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> public virtual Task<CreateTypeResponse> CreateTypeAsync(CreateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTypeResponseUnmarshaller.Instance; return InvokeAsync<CreateTypeResponse>(request, options, cancellationToken); } #endregion #region DeleteApiCache internal virtual DeleteApiCacheResponse DeleteApiCache(DeleteApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiCacheResponseUnmarshaller.Instance; return Invoke<DeleteApiCacheResponse>(request, options); } /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache 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 DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> public virtual Task<DeleteApiCacheResponse> DeleteApiCacheAsync(DeleteApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiCacheResponseUnmarshaller.Instance; return InvokeAsync<DeleteApiCacheResponse>(request, options, cancellationToken); } #endregion #region DeleteApiKey internal virtual DeleteApiKeyResponse DeleteApiKey(DeleteApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiKeyResponseUnmarshaller.Instance; return Invoke<DeleteApiKeyResponse>(request, options); } /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey 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 DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> public virtual Task<DeleteApiKeyResponse> DeleteApiKeyAsync(DeleteApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApiKeyResponseUnmarshaller.Instance; return InvokeAsync<DeleteApiKeyResponse>(request, options, cancellationToken); } #endregion #region DeleteDataSource internal virtual DeleteDataSourceResponse DeleteDataSource(DeleteDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataSourceResponseUnmarshaller.Instance; return Invoke<DeleteDataSourceResponse>(request, options); } /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource 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 DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> public virtual Task<DeleteDataSourceResponse> DeleteDataSourceAsync(DeleteDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataSourceResponseUnmarshaller.Instance; return InvokeAsync<DeleteDataSourceResponse>(request, options, cancellationToken); } #endregion #region DeleteDomainName internal virtual DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance; return Invoke<DeleteDomainNameResponse>(request, options); } /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName 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 DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> public virtual Task<DeleteDomainNameResponse> DeleteDomainNameAsync(DeleteDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance; return InvokeAsync<DeleteDomainNameResponse>(request, options, cancellationToken); } #endregion #region DeleteFunction internal virtual DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return Invoke<DeleteFunctionResponse>(request, options); } /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction 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 DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> public virtual Task<DeleteFunctionResponse> DeleteFunctionAsync(DeleteFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return InvokeAsync<DeleteFunctionResponse>(request, options, cancellationToken); } #endregion #region DeleteGraphqlApi internal virtual DeleteGraphqlApiResponse DeleteGraphqlApi(DeleteGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGraphqlApiResponseUnmarshaller.Instance; return Invoke<DeleteGraphqlApiResponse>(request, options); } /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi 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 DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> public virtual Task<DeleteGraphqlApiResponse> DeleteGraphqlApiAsync(DeleteGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<DeleteGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region DeleteResolver internal virtual DeleteResolverResponse DeleteResolver(DeleteResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResolverResponseUnmarshaller.Instance; return Invoke<DeleteResolverResponse>(request, options); } /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver 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 DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> public virtual Task<DeleteResolverResponse> DeleteResolverAsync(DeleteResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResolverResponseUnmarshaller.Instance; return InvokeAsync<DeleteResolverResponse>(request, options, cancellationToken); } #endregion #region DeleteType internal virtual DeleteTypeResponse DeleteType(DeleteTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTypeResponseUnmarshaller.Instance; return Invoke<DeleteTypeResponse>(request, options); } /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType 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 DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> public virtual Task<DeleteTypeResponse> DeleteTypeAsync(DeleteTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTypeResponseUnmarshaller.Instance; return InvokeAsync<DeleteTypeResponse>(request, options, cancellationToken); } #endregion #region DisassociateApi internal virtual DisassociateApiResponse DisassociateApi(DisassociateApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApiResponseUnmarshaller.Instance; return Invoke<DisassociateApiResponse>(request, options); } /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi 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 DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> public virtual Task<DisassociateApiResponse> DisassociateApiAsync(DisassociateApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApiResponseUnmarshaller.Instance; return InvokeAsync<DisassociateApiResponse>(request, options, cancellationToken); } #endregion #region DisassociateMergedGraphqlApi internal virtual DisassociateMergedGraphqlApiResponse DisassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMergedGraphqlApiResponseUnmarshaller.Instance; return Invoke<DisassociateMergedGraphqlApiResponse>(request, options); } /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi 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 DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> public virtual Task<DisassociateMergedGraphqlApiResponse> DisassociateMergedGraphqlApiAsync(DisassociateMergedGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMergedGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMergedGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<DisassociateMergedGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region DisassociateSourceGraphqlApi internal virtual DisassociateSourceGraphqlApiResponse DisassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateSourceGraphqlApiResponseUnmarshaller.Instance; return Invoke<DisassociateSourceGraphqlApiResponse>(request, options); } /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi 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 DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> public virtual Task<DisassociateSourceGraphqlApiResponse> DisassociateSourceGraphqlApiAsync(DisassociateSourceGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateSourceGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateSourceGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<DisassociateSourceGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region EvaluateCode internal virtual EvaluateCodeResponse EvaluateCode(EvaluateCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateCodeResponseUnmarshaller.Instance; return Invoke<EvaluateCodeResponse>(request, options); } /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode 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 EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> public virtual Task<EvaluateCodeResponse> EvaluateCodeAsync(EvaluateCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateCodeResponseUnmarshaller.Instance; return InvokeAsync<EvaluateCodeResponse>(request, options, cancellationToken); } #endregion #region EvaluateMappingTemplate internal virtual EvaluateMappingTemplateResponse EvaluateMappingTemplate(EvaluateMappingTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateMappingTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateMappingTemplateResponseUnmarshaller.Instance; return Invoke<EvaluateMappingTemplateResponse>(request, options); } /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate 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 EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> public virtual Task<EvaluateMappingTemplateResponse> EvaluateMappingTemplateAsync(EvaluateMappingTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluateMappingTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluateMappingTemplateResponseUnmarshaller.Instance; return InvokeAsync<EvaluateMappingTemplateResponse>(request, options, cancellationToken); } #endregion #region FlushApiCache internal virtual FlushApiCacheResponse FlushApiCache(FlushApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = FlushApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = FlushApiCacheResponseUnmarshaller.Instance; return Invoke<FlushApiCacheResponse>(request, options); } /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache 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 FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> public virtual Task<FlushApiCacheResponse> FlushApiCacheAsync(FlushApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = FlushApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = FlushApiCacheResponseUnmarshaller.Instance; return InvokeAsync<FlushApiCacheResponse>(request, options, cancellationToken); } #endregion #region GetApiAssociation internal virtual GetApiAssociationResponse GetApiAssociation(GetApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiAssociationResponseUnmarshaller.Instance; return Invoke<GetApiAssociationResponse>(request, options); } /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation 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 GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> public virtual Task<GetApiAssociationResponse> GetApiAssociationAsync(GetApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiAssociationResponseUnmarshaller.Instance; return InvokeAsync<GetApiAssociationResponse>(request, options, cancellationToken); } #endregion #region GetApiCache internal virtual GetApiCacheResponse GetApiCache(GetApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiCacheResponseUnmarshaller.Instance; return Invoke<GetApiCacheResponse>(request, options); } /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache 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 GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> public virtual Task<GetApiCacheResponse> GetApiCacheAsync(GetApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApiCacheResponseUnmarshaller.Instance; return InvokeAsync<GetApiCacheResponse>(request, options, cancellationToken); } #endregion #region GetDataSource internal virtual GetDataSourceResponse GetDataSource(GetDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance; return Invoke<GetDataSourceResponse>(request, options); } /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource 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 GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> public virtual Task<GetDataSourceResponse> GetDataSourceAsync(GetDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance; return InvokeAsync<GetDataSourceResponse>(request, options, cancellationToken); } #endregion #region GetDomainName internal virtual GetDomainNameResponse GetDomainName(GetDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance; return Invoke<GetDomainNameResponse>(request, options); } /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName 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 GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> public virtual Task<GetDomainNameResponse> GetDomainNameAsync(GetDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance; return InvokeAsync<GetDomainNameResponse>(request, options, cancellationToken); } #endregion #region GetFunction internal virtual GetFunctionResponse GetFunction(GetFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return Invoke<GetFunctionResponse>(request, options); } /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction 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 GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> public virtual Task<GetFunctionResponse> GetFunctionAsync(GetFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return InvokeAsync<GetFunctionResponse>(request, options, cancellationToken); } #endregion #region GetGraphqlApi internal virtual GetGraphqlApiResponse GetGraphqlApi(GetGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGraphqlApiResponseUnmarshaller.Instance; return Invoke<GetGraphqlApiResponse>(request, options); } /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi 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 GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> public virtual Task<GetGraphqlApiResponse> GetGraphqlApiAsync(GetGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<GetGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region GetIntrospectionSchema internal virtual GetIntrospectionSchemaResponse GetIntrospectionSchema(GetIntrospectionSchemaRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIntrospectionSchemaRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIntrospectionSchemaResponseUnmarshaller.Instance; return Invoke<GetIntrospectionSchemaResponse>(request, options); } /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema 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 GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> public virtual Task<GetIntrospectionSchemaResponse> GetIntrospectionSchemaAsync(GetIntrospectionSchemaRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetIntrospectionSchemaRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIntrospectionSchemaResponseUnmarshaller.Instance; return InvokeAsync<GetIntrospectionSchemaResponse>(request, options, cancellationToken); } #endregion #region GetResolver internal virtual GetResolverResponse GetResolver(GetResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResolverResponseUnmarshaller.Instance; return Invoke<GetResolverResponse>(request, options); } /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver 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 GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> public virtual Task<GetResolverResponse> GetResolverAsync(GetResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResolverResponseUnmarshaller.Instance; return InvokeAsync<GetResolverResponse>(request, options, cancellationToken); } #endregion #region GetSchemaCreationStatus internal virtual GetSchemaCreationStatusResponse GetSchemaCreationStatus(GetSchemaCreationStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSchemaCreationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSchemaCreationStatusResponseUnmarshaller.Instance; return Invoke<GetSchemaCreationStatusResponse>(request, options); } /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus 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 GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> public virtual Task<GetSchemaCreationStatusResponse> GetSchemaCreationStatusAsync(GetSchemaCreationStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSchemaCreationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSchemaCreationStatusResponseUnmarshaller.Instance; return InvokeAsync<GetSchemaCreationStatusResponse>(request, options, cancellationToken); } #endregion #region GetSourceApiAssociation internal virtual GetSourceApiAssociationResponse GetSourceApiAssociation(GetSourceApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSourceApiAssociationResponseUnmarshaller.Instance; return Invoke<GetSourceApiAssociationResponse>(request, options); } /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation 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 GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> public virtual Task<GetSourceApiAssociationResponse> GetSourceApiAssociationAsync(GetSourceApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSourceApiAssociationResponseUnmarshaller.Instance; return InvokeAsync<GetSourceApiAssociationResponse>(request, options, cancellationToken); } #endregion #region GetType internal virtual GetTypeResponse GetType(GetTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTypeResponseUnmarshaller.Instance; return Invoke<GetTypeResponse>(request, options); } /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType 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 GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> public virtual Task<GetTypeResponse> GetTypeAsync(GetTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTypeResponseUnmarshaller.Instance; return InvokeAsync<GetTypeResponse>(request, options, cancellationToken); } #endregion #region ListApiKeys internal virtual ListApiKeysResponse ListApiKeys(ListApiKeysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApiKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApiKeysResponseUnmarshaller.Instance; return Invoke<ListApiKeysResponse>(request, options); } /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys 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 ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> public virtual Task<ListApiKeysResponse> ListApiKeysAsync(ListApiKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApiKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApiKeysResponseUnmarshaller.Instance; return InvokeAsync<ListApiKeysResponse>(request, options, cancellationToken); } #endregion #region ListDataSources internal virtual ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance; return Invoke<ListDataSourcesResponse>(request, options); } /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources 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 ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> public virtual Task<ListDataSourcesResponse> ListDataSourcesAsync(ListDataSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance; return InvokeAsync<ListDataSourcesResponse>(request, options, cancellationToken); } #endregion #region ListDomainNames internal virtual ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return Invoke<ListDomainNamesResponse>(request, options); } /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames 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 ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return InvokeAsync<ListDomainNamesResponse>(request, options, cancellationToken); } #endregion #region ListFunctions internal virtual ListFunctionsResponse ListFunctions(ListFunctionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return Invoke<ListFunctionsResponse>(request, options); } /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions 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 ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> public virtual Task<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return InvokeAsync<ListFunctionsResponse>(request, options, cancellationToken); } #endregion #region ListGraphqlApis internal virtual ListGraphqlApisResponse ListGraphqlApis(ListGraphqlApisRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGraphqlApisRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGraphqlApisResponseUnmarshaller.Instance; return Invoke<ListGraphqlApisResponse>(request, options); } /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis 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 ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> public virtual Task<ListGraphqlApisResponse> ListGraphqlApisAsync(ListGraphqlApisRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGraphqlApisRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGraphqlApisResponseUnmarshaller.Instance; return InvokeAsync<ListGraphqlApisResponse>(request, options, cancellationToken); } #endregion #region ListResolvers internal virtual ListResolversResponse ListResolvers(ListResolversRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversResponseUnmarshaller.Instance; return Invoke<ListResolversResponse>(request, options); } /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers 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 ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> public virtual Task<ListResolversResponse> ListResolversAsync(ListResolversRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversResponseUnmarshaller.Instance; return InvokeAsync<ListResolversResponse>(request, options, cancellationToken); } #endregion #region ListResolversByFunction internal virtual ListResolversByFunctionResponse ListResolversByFunction(ListResolversByFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversByFunctionResponseUnmarshaller.Instance; return Invoke<ListResolversByFunctionResponse>(request, options); } /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction 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 ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> public virtual Task<ListResolversByFunctionResponse> ListResolversByFunctionAsync(ListResolversByFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResolversByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResolversByFunctionResponseUnmarshaller.Instance; return InvokeAsync<ListResolversByFunctionResponse>(request, options, cancellationToken); } #endregion #region ListSourceApiAssociations internal virtual ListSourceApiAssociationsResponse ListSourceApiAssociations(ListSourceApiAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceApiAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceApiAssociationsResponseUnmarshaller.Instance; return Invoke<ListSourceApiAssociationsResponse>(request, options); } /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations 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 ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> public virtual Task<ListSourceApiAssociationsResponse> ListSourceApiAssociationsAsync(ListSourceApiAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceApiAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceApiAssociationsResponseUnmarshaller.Instance; return InvokeAsync<ListSourceApiAssociationsResponse>(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 a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 ListTypes internal virtual ListTypesResponse ListTypes(ListTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return Invoke<ListTypesResponse>(request, options); } /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes 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 ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return InvokeAsync<ListTypesResponse>(request, options, cancellationToken); } #endregion #region ListTypesByAssociation internal virtual ListTypesByAssociationResponse ListTypesByAssociation(ListTypesByAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesByAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesByAssociationResponseUnmarshaller.Instance; return Invoke<ListTypesByAssociationResponse>(request, options); } /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation 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 ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> public virtual Task<ListTypesByAssociationResponse> ListTypesByAssociationAsync(ListTypesByAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesByAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesByAssociationResponseUnmarshaller.Instance; return InvokeAsync<ListTypesByAssociationResponse>(request, options, cancellationToken); } #endregion #region StartSchemaCreation internal virtual StartSchemaCreationResponse StartSchemaCreation(StartSchemaCreationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaCreationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaCreationResponseUnmarshaller.Instance; return Invoke<StartSchemaCreationResponse>(request, options); } /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation 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 StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> public virtual Task<StartSchemaCreationResponse> StartSchemaCreationAsync(StartSchemaCreationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaCreationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaCreationResponseUnmarshaller.Instance; return InvokeAsync<StartSchemaCreationResponse>(request, options, cancellationToken); } #endregion #region StartSchemaMerge internal virtual StartSchemaMergeResponse StartSchemaMerge(StartSchemaMergeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaMergeRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaMergeResponseUnmarshaller.Instance; return Invoke<StartSchemaMergeResponse>(request, options); } /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge 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 StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> public virtual Task<StartSchemaMergeResponse> StartSchemaMergeAsync(StartSchemaMergeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSchemaMergeRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSchemaMergeResponseUnmarshaller.Instance; return InvokeAsync<StartSchemaMergeResponse>(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> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/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 UpdateApiCache internal virtual UpdateApiCacheResponse UpdateApiCache(UpdateApiCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiCacheResponseUnmarshaller.Instance; return Invoke<UpdateApiCacheResponse>(request, options); } /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache 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 UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> public virtual Task<UpdateApiCacheResponse> UpdateApiCacheAsync(UpdateApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiCacheResponseUnmarshaller.Instance; return InvokeAsync<UpdateApiCacheResponse>(request, options, cancellationToken); } #endregion #region UpdateApiKey internal virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiKeyResponseUnmarshaller.Instance; return Invoke<UpdateApiKeyResponse>(request, options); } /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey 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 UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> public virtual Task<UpdateApiKeyResponse> UpdateApiKeyAsync(UpdateApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApiKeyResponseUnmarshaller.Instance; return InvokeAsync<UpdateApiKeyResponse>(request, options, cancellationToken); } #endregion #region UpdateDataSource internal virtual UpdateDataSourceResponse UpdateDataSource(UpdateDataSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance; return Invoke<UpdateDataSourceResponse>(request, options); } /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource 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 UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> public virtual Task<UpdateDataSourceResponse> UpdateDataSourceAsync(UpdateDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance; return InvokeAsync<UpdateDataSourceResponse>(request, options, cancellationToken); } #endregion #region UpdateDomainName internal virtual UpdateDomainNameResponse UpdateDomainName(UpdateDomainNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance; return Invoke<UpdateDomainNameResponse>(request, options); } /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName 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 UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> public virtual Task<UpdateDomainNameResponse> UpdateDomainNameAsync(UpdateDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance; return InvokeAsync<UpdateDomainNameResponse>(request, options, cancellationToken); } #endregion #region UpdateFunction internal virtual UpdateFunctionResponse UpdateFunction(UpdateFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance; return Invoke<UpdateFunctionResponse>(request, options); } /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction 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 UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> public virtual Task<UpdateFunctionResponse> UpdateFunctionAsync(UpdateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance; return InvokeAsync<UpdateFunctionResponse>(request, options, cancellationToken); } #endregion #region UpdateGraphqlApi internal virtual UpdateGraphqlApiResponse UpdateGraphqlApi(UpdateGraphqlApiRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGraphqlApiResponseUnmarshaller.Instance; return Invoke<UpdateGraphqlApiResponse>(request, options); } /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi 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 UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> public virtual Task<UpdateGraphqlApiResponse> UpdateGraphqlApiAsync(UpdateGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGraphqlApiRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGraphqlApiResponseUnmarshaller.Instance; return InvokeAsync<UpdateGraphqlApiResponse>(request, options, cancellationToken); } #endregion #region UpdateResolver internal virtual UpdateResolverResponse UpdateResolver(UpdateResolverRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResolverResponseUnmarshaller.Instance; return Invoke<UpdateResolverResponse>(request, options); } /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver 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 UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> public virtual Task<UpdateResolverResponse> UpdateResolverAsync(UpdateResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResolverRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResolverResponseUnmarshaller.Instance; return InvokeAsync<UpdateResolverResponse>(request, options, cancellationToken); } #endregion #region UpdateSourceApiAssociation internal virtual UpdateSourceApiAssociationResponse UpdateSourceApiAssociation(UpdateSourceApiAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceApiAssociationResponseUnmarshaller.Instance; return Invoke<UpdateSourceApiAssociationResponse>(request, options); } /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation 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 UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> public virtual Task<UpdateSourceApiAssociationResponse> UpdateSourceApiAssociationAsync(UpdateSourceApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceApiAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceApiAssociationResponseUnmarshaller.Instance; return InvokeAsync<UpdateSourceApiAssociationResponse>(request, options, cancellationToken); } #endregion #region UpdateType internal virtual UpdateTypeResponse UpdateType(UpdateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTypeResponseUnmarshaller.Instance; return Invoke<UpdateTypeResponse>(request, options); } /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType 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 UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> public virtual Task<UpdateTypeResponse> UpdateTypeAsync(UpdateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTypeResponseUnmarshaller.Instance; return InvokeAsync<UpdateTypeResponse>(request, options, cancellationToken); } #endregion } }
3,331
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AppSync.Model; namespace Amazon.AppSync { /// <summary> /// Interface for accessing AppSync /// /// AppSync provides API actions for creating and interacting with data sources using /// GraphQL from your application. /// </summary> public partial interface IAmazonAppSync : IAmazonService, IDisposable { #region AssociateApi /// <summary> /// Maps an endpoint to your custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateApi 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 AssociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi">REST API Reference for AssociateApi Operation</seealso> Task<AssociateApiResponse> AssociateApiAsync(AssociateApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociateMergedGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the source API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateMergedGraphqlApi 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 AssociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi">REST API Reference for AssociateMergedGraphqlApi Operation</seealso> Task<AssociateMergedGraphqlApiResponse> AssociateMergedGraphqlApiAsync(AssociateMergedGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociateSourceGraphqlApi /// <summary> /// Creates an association between a Merged API and source API using the Merged API's /// identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateSourceGraphqlApi 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 AssociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi">REST API Reference for AssociateSourceGraphqlApi Operation</seealso> Task<AssociateSourceGraphqlApiResponse> AssociateSourceGraphqlApiAsync(AssociateSourceGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateApiCache /// <summary> /// Creates a cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiCache 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 CreateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache">REST API Reference for CreateApiCache Operation</seealso> Task<CreateApiCacheResponse> CreateApiCacheAsync(CreateApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateApiKey /// <summary> /// Creates a unique key that you can distribute to clients who invoke your API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApiKey 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 CreateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyLimitExceededException"> /// The API key exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey">REST API Reference for CreateApiKey Operation</seealso> Task<CreateApiKeyResponse> CreateApiKeyAsync(CreateApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDataSource /// <summary> /// Creates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataSource 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 CreateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource">REST API Reference for CreateDataSource Operation</seealso> Task<CreateDataSourceResponse> CreateDataSourceAsync(CreateDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDomainName /// <summary> /// Creates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomainName 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 CreateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName">REST API Reference for CreateDomainName Operation</seealso> Task<CreateDomainNameResponse> CreateDomainNameAsync(CreateDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateFunction /// <summary> /// Creates a <code>Function</code> object. /// /// /// <para> /// A function is a reusable entity. You can use multiple functions to compose the resolver /// logic. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFunction 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 CreateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction">REST API Reference for CreateFunction Operation</seealso> Task<CreateFunctionResponse> CreateFunctionAsync(CreateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateGraphqlApi /// <summary> /// Creates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGraphqlApi 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 CreateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiLimitExceededException"> /// The GraphQL API exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi">REST API Reference for CreateGraphqlApi Operation</seealso> Task<CreateGraphqlApiResponse> CreateGraphqlApiAsync(CreateGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateResolver /// <summary> /// Creates a <code>Resolver</code> object. /// /// /// <para> /// A resolver converts incoming requests into a format that a data source can understand, /// and converts the data source's responses into GraphQL. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResolver 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 CreateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver">REST API Reference for CreateResolver Operation</seealso> Task<CreateResolverResponse> CreateResolverAsync(CreateResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateType /// <summary> /// Creates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateType 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 CreateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType">REST API Reference for CreateType Operation</seealso> Task<CreateTypeResponse> CreateTypeAsync(CreateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteApiCache /// <summary> /// Deletes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiCache 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 DeleteApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache">REST API Reference for DeleteApiCache Operation</seealso> Task<DeleteApiCacheResponse> DeleteApiCacheAsync(DeleteApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteApiKey /// <summary> /// Deletes an API key. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApiKey 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 DeleteApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey">REST API Reference for DeleteApiKey Operation</seealso> Task<DeleteApiKeyResponse> DeleteApiKeyAsync(DeleteApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDataSource /// <summary> /// Deletes a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataSource 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 DeleteDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource">REST API Reference for DeleteDataSource Operation</seealso> Task<DeleteDataSourceResponse> DeleteDataSourceAsync(DeleteDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDomainName /// <summary> /// Deletes a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomainName 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 DeleteDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName">REST API Reference for DeleteDomainName Operation</seealso> Task<DeleteDomainNameResponse> DeleteDomainNameAsync(DeleteDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteFunction /// <summary> /// Deletes a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFunction 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 DeleteFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso> Task<DeleteFunctionResponse> DeleteFunctionAsync(DeleteFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteGraphqlApi /// <summary> /// Deletes a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGraphqlApi 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 DeleteGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi">REST API Reference for DeleteGraphqlApi Operation</seealso> Task<DeleteGraphqlApiResponse> DeleteGraphqlApiAsync(DeleteGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteResolver /// <summary> /// Deletes a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResolver 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 DeleteResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver">REST API Reference for DeleteResolver Operation</seealso> Task<DeleteResolverResponse> DeleteResolverAsync(DeleteResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteType /// <summary> /// Deletes a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteType 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 DeleteType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType">REST API Reference for DeleteType Operation</seealso> Task<DeleteTypeResponse> DeleteTypeAsync(DeleteTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateApi /// <summary> /// Removes an <code>ApiAssociation</code> object from a custom domain. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateApi 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 DisassociateApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi">REST API Reference for DisassociateApi Operation</seealso> Task<DisassociateApiResponse> DisassociateApiAsync(DisassociateApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateMergedGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the source API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMergedGraphqlApi 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 DisassociateMergedGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi">REST API Reference for DisassociateMergedGraphqlApi Operation</seealso> Task<DisassociateMergedGraphqlApiResponse> DisassociateMergedGraphqlApiAsync(DisassociateMergedGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateSourceGraphqlApi /// <summary> /// Deletes an association between a Merged API and source API using the Merged API's /// identifier and the association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateSourceGraphqlApi 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 DisassociateSourceGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi">REST API Reference for DisassociateSourceGraphqlApi Operation</seealso> Task<DisassociateSourceGraphqlApiResponse> DisassociateSourceGraphqlApiAsync(DisassociateSourceGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EvaluateCode /// <summary> /// Evaluates the given code and returns the response. The code definition requirements /// depend on the specified runtime. For <code>APPSYNC_JS</code> runtimes, the code defines /// the request and response functions. The request function takes the incoming request /// after a GraphQL operation is parsed and converts it into a request configuration for /// the selected data source operation. The response function interprets responses from /// the data source and maps it to the shape of the GraphQL field output type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateCode 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 EvaluateCode service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode">REST API Reference for EvaluateCode Operation</seealso> Task<EvaluateCodeResponse> EvaluateCodeAsync(EvaluateCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EvaluateMappingTemplate /// <summary> /// Evaluates a given template and returns the response. The mapping template can be a /// request or response template. /// /// /// <para> /// Request templates take the incoming request after a GraphQL operation is parsed and /// convert it into a request configuration for the selected data source operation. Response /// templates interpret responses from the data source and map it to the shape of the /// GraphQL field output type. /// </para> /// /// <para> /// Mapping templates are written in the Apache Velocity Template Language (VTL). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EvaluateMappingTemplate 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 EvaluateMappingTemplate service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate">REST API Reference for EvaluateMappingTemplate Operation</seealso> Task<EvaluateMappingTemplateResponse> EvaluateMappingTemplateAsync(EvaluateMappingTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region FlushApiCache /// <summary> /// Flushes an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the FlushApiCache 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 FlushApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache">REST API Reference for FlushApiCache Operation</seealso> Task<FlushApiCacheResponse> FlushApiCacheAsync(FlushApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetApiAssociation /// <summary> /// Retrieves an <code>ApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiAssociation 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 GetApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation">REST API Reference for GetApiAssociation Operation</seealso> Task<GetApiAssociationResponse> GetApiAssociationAsync(GetApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetApiCache /// <summary> /// Retrieves an <code>ApiCache</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApiCache 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 GetApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache">REST API Reference for GetApiCache Operation</seealso> Task<GetApiCacheResponse> GetApiCacheAsync(GetApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDataSource /// <summary> /// Retrieves a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataSource 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 GetDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource">REST API Reference for GetDataSource Operation</seealso> Task<GetDataSourceResponse> GetDataSourceAsync(GetDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDomainName /// <summary> /// Retrieves a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDomainName 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 GetDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName">REST API Reference for GetDomainName Operation</seealso> Task<GetDomainNameResponse> GetDomainNameAsync(GetDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetFunction /// <summary> /// Get a <code>Function</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFunction 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 GetFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction">REST API Reference for GetFunction Operation</seealso> Task<GetFunctionResponse> GetFunctionAsync(GetFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetGraphqlApi /// <summary> /// Retrieves a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGraphqlApi 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 GetGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi">REST API Reference for GetGraphqlApi Operation</seealso> Task<GetGraphqlApiResponse> GetGraphqlApiAsync(GetGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetIntrospectionSchema /// <summary> /// Retrieves the introspection schema for a GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetIntrospectionSchema 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 GetIntrospectionSchema service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.GraphQLSchemaException"> /// The GraphQL schema is not valid. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema">REST API Reference for GetIntrospectionSchema Operation</seealso> Task<GetIntrospectionSchemaResponse> GetIntrospectionSchemaAsync(GetIntrospectionSchemaRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResolver /// <summary> /// Retrieves a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResolver 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 GetResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver">REST API Reference for GetResolver Operation</seealso> Task<GetResolverResponse> GetResolverAsync(GetResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSchemaCreationStatus /// <summary> /// Retrieves the current status of a schema creation operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSchemaCreationStatus 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 GetSchemaCreationStatus service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus">REST API Reference for GetSchemaCreationStatus Operation</seealso> Task<GetSchemaCreationStatusResponse> GetSchemaCreationStatusAsync(GetSchemaCreationStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSourceApiAssociation /// <summary> /// Retrieves a <code>SourceApiAssociation</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSourceApiAssociation 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 GetSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation">REST API Reference for GetSourceApiAssociation Operation</seealso> Task<GetSourceApiAssociationResponse> GetSourceApiAssociationAsync(GetSourceApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetType /// <summary> /// Retrieves a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetType 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 GetType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType">REST API Reference for GetType Operation</seealso> Task<GetTypeResponse> GetTypeAsync(GetTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListApiKeys /// <summary> /// Lists the API keys for a given API. /// /// <note> /// <para> /// API keys are deleted automatically 60 days after they expire. However, they may still /// be included in the response until they have actually been deleted. You can safely /// call <code>DeleteApiKey</code> to manually delete a key before it's automatically /// deleted. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApiKeys 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 ListApiKeys service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys">REST API Reference for ListApiKeys Operation</seealso> Task<ListApiKeysResponse> ListApiKeysAsync(ListApiKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDataSources /// <summary> /// Lists the data sources for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataSources 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 ListDataSources service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources">REST API Reference for ListDataSources Operation</seealso> Task<ListDataSourcesResponse> ListDataSourcesAsync(ListDataSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDomainNames /// <summary> /// Lists multiple custom domain names. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames 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 ListDomainNames service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListFunctions /// <summary> /// List multiple functions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFunctions 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 ListFunctions service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions">REST API Reference for ListFunctions Operation</seealso> Task<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListGraphqlApis /// <summary> /// Lists your GraphQL APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGraphqlApis 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 ListGraphqlApis service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis">REST API Reference for ListGraphqlApis Operation</seealso> Task<ListGraphqlApisResponse> ListGraphqlApisAsync(ListGraphqlApisRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResolvers /// <summary> /// Lists the resolvers for a given API and type. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolvers 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 ListResolvers service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers">REST API Reference for ListResolvers Operation</seealso> Task<ListResolversResponse> ListResolversAsync(ListResolversRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResolversByFunction /// <summary> /// List the resolvers that are associated with a specific function. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResolversByFunction 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 ListResolversByFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction">REST API Reference for ListResolversByFunction Operation</seealso> Task<ListResolversByFunctionResponse> ListResolversByFunctionAsync(ListResolversByFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListSourceApiAssociations /// <summary> /// Lists the <code>SourceApiAssociationSummary</code> data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSourceApiAssociations 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 ListSourceApiAssociations service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations">REST API Reference for ListSourceApiAssociations Operation</seealso> Task<ListSourceApiAssociationsResponse> ListSourceApiAssociationsAsync(ListSourceApiAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags for a resource. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypes /// <summary> /// Lists the types for a given API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes 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 ListTypes service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes">REST API Reference for ListTypes Operation</seealso> Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypesByAssociation /// <summary> /// Lists <code>Type</code> objects by the source API association ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypesByAssociation 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 ListTypesByAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation">REST API Reference for ListTypesByAssociation Operation</seealso> Task<ListTypesByAssociationResponse> ListTypesByAssociationAsync(ListTypesByAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartSchemaCreation /// <summary> /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaCreation 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 StartSchemaCreation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation">REST API Reference for StartSchemaCreation Operation</seealso> Task<StartSchemaCreationResponse> StartSchemaCreationAsync(StartSchemaCreationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartSchemaMerge /// <summary> /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSchemaMerge 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 StartSchemaMerge service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge">REST API Reference for StartSchemaMerge Operation</seealso> Task<StartSchemaMergeResponse> StartSchemaMergeAsync(StartSchemaMergeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Tags a resource with user-supplied tags. /// </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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Untags a 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 AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateApiCache /// <summary> /// Updates the cache for the GraphQL API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiCache 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 UpdateApiCache service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache">REST API Reference for UpdateApiCache Operation</seealso> Task<UpdateApiCacheResponse> UpdateApiCacheAsync(UpdateApiCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateApiKey /// <summary> /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateApiKey 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 UpdateApiKey service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ApiKeyValidityOutOfBoundsException"> /// The API key expiration must be set to a value between 1 and 365 days from creation /// (for <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>). /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.LimitExceededException"> /// The request exceeded a limit. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey">REST API Reference for UpdateApiKey Operation</seealso> Task<UpdateApiKeyResponse> UpdateApiKeyAsync(UpdateApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDataSource /// <summary> /// Updates a <code>DataSource</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataSource 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 UpdateDataSource service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource">REST API Reference for UpdateDataSource Operation</seealso> Task<UpdateDataSourceResponse> UpdateDataSourceAsync(UpdateDataSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDomainName /// <summary> /// Updates a custom <code>DomainName</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainName 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 UpdateDomainName service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName">REST API Reference for UpdateDomainName Operation</seealso> Task<UpdateDomainNameResponse> UpdateDomainNameAsync(UpdateDomainNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateFunction /// <summary> /// Updates a <code>Function</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFunction 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 UpdateFunction service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso> Task<UpdateFunctionResponse> UpdateFunctionAsync(UpdateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateGraphqlApi /// <summary> /// Updates a <code>GraphqlApi</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGraphqlApi 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 UpdateGraphqlApi service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.AccessDeniedException"> /// You don't have access to perform this operation on this resource. /// </exception> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi">REST API Reference for UpdateGraphqlApi Operation</seealso> Task<UpdateGraphqlApiResponse> UpdateGraphqlApiAsync(UpdateGraphqlApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateResolver /// <summary> /// Updates a <code>Resolver</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResolver 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 UpdateResolver service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver">REST API Reference for UpdateResolver Operation</seealso> Task<UpdateResolverResponse> UpdateResolverAsync(UpdateResolverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateSourceApiAssociation /// <summary> /// Updates some of the configuration choices of a particular source API association. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSourceApiAssociation 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 UpdateSourceApiAssociation service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation">REST API Reference for UpdateSourceApiAssociation Operation</seealso> Task<UpdateSourceApiAssociationResponse> UpdateSourceApiAssociationAsync(UpdateSourceApiAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateType /// <summary> /// Updates a <code>Type</code> object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateType 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 UpdateType service method, as returned by AppSync.</returns> /// <exception cref="Amazon.AppSync.Model.BadRequestException"> /// The request is not well formed. For example, a value is invalid or a required field /// is missing. Check the field values, and then try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.ConcurrentModificationException"> /// Another modification is in progress at this time and it must complete before you can /// make your change. /// </exception> /// <exception cref="Amazon.AppSync.Model.InternalFailureException"> /// An internal AppSync error occurred. Try your request again. /// </exception> /// <exception cref="Amazon.AppSync.Model.NotFoundException"> /// The resource specified in the request was not found. Check the resource, and then /// try again. /// </exception> /// <exception cref="Amazon.AppSync.Model.UnauthorizedException"> /// You aren't authorized to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType">REST API Reference for UpdateType Operation</seealso> Task<UpdateTypeResponse> UpdateTypeAsync(UpdateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
2,158
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.AppSync")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS AppSync. AWS AppSync is an enterprise-level, fully managed GraphQL service with real-time data synchronization and offline programming features.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS AppSync. AWS AppSync is an enterprise-level, fully managed GraphQL service with real-time data synchronization and offline programming features.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS AppSync. AWS AppSync is an enterprise-level, fully managed GraphQL service with real-time data synchronization and offline programming features.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS AppSync. AWS AppSync is an enterprise-level, fully managed GraphQL service with real-time data synchronization and offline programming features.")] #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.105.13")] [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 arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.ARCZonalShift.Internal; namespace Amazon.ARCZonalShift { /// <summary> /// Configuration for accessing Amazon ARCZonalShift service /// </summary> [AWSSignerType("v4")] public partial class AmazonARCZonalShiftConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.123"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonARCZonalShiftConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonARCZonalShiftDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "arc-zonal-shift"; this.EndpointProvider = new AmazonARCZonalShiftEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "arc-zonal-shift"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2022-10-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 arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.ARCZonalShift { /// <summary> /// Configuration for accessing Amazon ARCZonalShift service /// </summary> public static class AmazonARCZonalShiftDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// ARCZonalShift /// </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 arc-zonal-shift-2022-10-30.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.ARCZonalShift.Endpoints { /// <summary> /// Contains parameters used for resolving ARCZonalShift endpoints /// Parameters can be sourced from client config and service operations /// Used by internal ARCZonalShiftEndpointProvider and ARCZonalShiftEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class ARCZonalShiftEndpointParameters : EndpointParameters { /// <summary> /// ARCZonalShiftEndpointParameters constructor /// </summary> public ARCZonalShiftEndpointParameters() { 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 arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.ARCZonalShift { ///<summary> /// Common exception for the ARCZonalShift service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonARCZonalShiftException : AmazonServiceException { /// <summary> /// Construct instance of AmazonARCZonalShiftException /// </summary> /// <param name="message"></param> public AmazonARCZonalShiftException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonARCZonalShiftException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonARCZonalShiftException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonARCZonalShiftException /// </summary> /// <param name="innerException"></param> public AmazonARCZonalShiftException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonARCZonalShiftException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonARCZonalShiftException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonARCZonalShiftException /// </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 AmazonARCZonalShiftException(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 AmazonARCZonalShiftException 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 AmazonARCZonalShiftException(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 arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.ARCZonalShift { /// <summary> /// Constants used for properties of type AppliedStatus. /// </summary> public class AppliedStatus : ConstantClass { /// <summary> /// Constant APPLIED for AppliedStatus /// </summary> public static readonly AppliedStatus APPLIED = new AppliedStatus("APPLIED"); /// <summary> /// Constant NOT_APPLIED for AppliedStatus /// </summary> public static readonly AppliedStatus NOT_APPLIED = new AppliedStatus("NOT_APPLIED"); /// <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 AppliedStatus(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 AppliedStatus FindValue(string value) { return FindValue<AppliedStatus>(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 AppliedStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ConflictExceptionReason. /// </summary> public class ConflictExceptionReason : ConstantClass { /// <summary> /// Constant SimultaneousZonalShiftsConflict for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason SimultaneousZonalShiftsConflict = new ConflictExceptionReason("SimultaneousZonalShiftsConflict"); /// <summary> /// Constant ZonalShiftAlreadyExists for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason ZonalShiftAlreadyExists = new ConflictExceptionReason("ZonalShiftAlreadyExists"); /// <summary> /// Constant ZonalShiftStatusNotActive for ConflictExceptionReason /// </summary> public static readonly ConflictExceptionReason ZonalShiftStatusNotActive = new ConflictExceptionReason("ZonalShiftStatusNotActive"); /// <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 ValidationExceptionReason. /// </summary> public class ValidationExceptionReason : ConstantClass { /// <summary> /// Constant InvalidAz for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason InvalidAz = new ValidationExceptionReason("InvalidAz"); /// <summary> /// Constant InvalidExpiresIn for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason InvalidExpiresIn = new ValidationExceptionReason("InvalidExpiresIn"); /// <summary> /// Constant InvalidResourceIdentifier for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason InvalidResourceIdentifier = new ValidationExceptionReason("InvalidResourceIdentifier"); /// <summary> /// Constant InvalidStatus for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason InvalidStatus = new ValidationExceptionReason("InvalidStatus"); /// <summary> /// Constant InvalidToken for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason InvalidToken = new ValidationExceptionReason("InvalidToken"); /// <summary> /// Constant MissingValue for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason MissingValue = new ValidationExceptionReason("MissingValue"); /// <summary> /// Constant UnsupportedAz for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason UnsupportedAz = new ValidationExceptionReason("UnsupportedAz"); /// <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); } } /// <summary> /// Constants used for properties of type ZonalShiftStatus. /// </summary> public class ZonalShiftStatus : ConstantClass { /// <summary> /// Constant ACTIVE for ZonalShiftStatus /// </summary> public static readonly ZonalShiftStatus ACTIVE = new ZonalShiftStatus("ACTIVE"); /// <summary> /// Constant CANCELED for ZonalShiftStatus /// </summary> public static readonly ZonalShiftStatus CANCELED = new ZonalShiftStatus("CANCELED"); /// <summary> /// Constant EXPIRED for ZonalShiftStatus /// </summary> public static readonly ZonalShiftStatus EXPIRED = new ZonalShiftStatus("EXPIRED"); /// <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 ZonalShiftStatus(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 ZonalShiftStatus FindValue(string value) { return FindValue<ZonalShiftStatus>(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 ZonalShiftStatus(string value) { return FindValue(value); } } }
254
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Internal { /// <summary> /// Amazon ARCZonalShift endpoint provider. /// Resolves endpoint for given set of ARCZonalShiftEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonARCZonalShiftEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for ARCZonalShiftEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["Region"] == null) throw new AmazonClientException("Region parameter must be set for endpoint resolution"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://arc-zonal-shift-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://arc-zonal-shift-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://arc-zonal-shift.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://arc-zonal-shift.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
101
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using Amazon.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.ARCZonalShift.Endpoints; #pragma warning disable 1591 namespace Amazon.ARCZonalShift.Internal { /// <summary> /// Amazon ARCZonalShift endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for ARCZonalShift service requests. /// Collects values for ARCZonalShiftEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses ARCZonalShiftEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonARCZonalShiftEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonARCZonalShiftConfig)requestContext.ClientConfig; var result = new ARCZonalShiftEndpointParameters(); 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 arc-zonal-shift-2022-10-30.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.ARCZonalShift.Internal { /// <summary> /// Service metadata for Amazon ARCZonalShift service /// </summary> public partial class AmazonARCZonalShiftMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "ARC Zonal Shift"; } } /// <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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// You do not have sufficient access to perform this action. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonARCZonalShiftException { /// <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 arc-zonal-shift-2022-10-30.normal.json service model. */ using Amazon.Runtime; namespace Amazon.ARCZonalShift { /// <summary> /// Base class for ARCZonalShift operation requests. /// </summary> public partial class AmazonARCZonalShiftRequest : 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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// Container for the parameters to the CancelZonalShift operation. /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> public partial class CancelZonalShiftRequest : AmazonARCZonalShiftRequest { private string _zonalShiftId; /// <summary> /// Gets and sets the property ZonalShiftId. /// <para> /// The internally-generated identifier of a zonal shift. /// </para> /// </summary> [AWSProperty(Required=true, Min=6, Max=36)] public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != 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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// This is the response object from the CancelZonalShift operation. /// </summary> public partial class CancelZonalShiftResponse : AmazonWebServiceResponse { private string _awayFrom; private string _comment; private DateTime? _expiryTime; private string _resourceIdentifier; private DateTime? _startTime; private ZonalShiftStatus _status; private string _zonalShiftId; /// <summary> /// Gets and sets the property AwayFrom. /// <para> /// The Availability Zone that traffic is moved away from for a resource when you start /// a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource /// is instead moved to other Availability Zones in the AWS Region. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=20)] public string AwayFrom { get { return this._awayFrom; } set { this._awayFrom = value; } } // Check to see if AwayFrom property is set internal bool IsSetAwayFrom() { return this._awayFrom != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. A new comment overwrites any existing comment string. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ExpiryTime. /// <para> /// The expiry time (expiration time) for the zonal shift. A zonal shift is temporary /// and must be set to expire when you start the zonal shift. You can initially set a /// zonal shift to expire in a maximum of three days (72 hours). However, you can update /// a zonal shift to set a new expiration at any time. /// </para> /// /// <para> /// When you start a zonal shift, you specify how long you want it to be active, which /// Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal /// shift, for example, if you're ready to restore traffic to the Availability Zone. Or /// you can update the zonal shift to specify another length of time to expire in. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime ExpiryTime { get { return this._expiryTime.GetValueOrDefault(); } set { this._expiryTime = value; } } // Check to see if ExpiryTime property is set internal bool IsSetExpiryTime() { return this._expiryTime.HasValue; } /// <summary> /// Gets and sets the property ResourceIdentifier. /// <para> /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// </para> /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The time (UTC) when the zonal shift is started. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// A status for a zonal shift. /// </para> /// /// <para> /// The <code>Status</code> for a zonal shift can have one of the following values: /// </para> /// <ul> <li> /// <para> /// <b>ACTIVE:</b> The zonal shift is started and active. /// </para> /// </li> <li> /// <para> /// <b>EXPIRED:</b> The zonal shift has expired (the expiry time was exceeded). /// </para> /// </li> <li> /// <para> /// <b>CANCELED:</b> The zonal shift was canceled. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ZonalShiftStatus 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 ZonalShiftId. /// <para> /// The identifier of a zonal shift. /// </para> /// </summary> [AWSProperty(Required=true, Min=6, Max=36)] public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != null; } } }
214
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// The request could not be processed because of conflict in the current state of the /// resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConflictException : AmazonARCZonalShiftException { private ConflictExceptionReason _reason; private string _zonalShiftId; /// <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.ZonalShiftId = (string)info.GetValue("ZonalShiftId", 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("ZonalShiftId", this.ZonalShiftId); } #endif /// <summary> /// Gets and sets the property Reason. /// <para> /// The reason for the conflict exception. /// </para> /// </summary> [AWSProperty(Required=true)] 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 ZonalShiftId. /// <para> /// The zonal shift ID associated with the conflict exception. /// </para> /// </summary> public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != null; } } }
168
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// Container for the parameters to the GetManagedResource operation. /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> public partial class GetManagedResourceRequest : AmazonARCZonalShiftRequest { private string _resourceIdentifier; /// <summary> /// Gets and sets the property ResourceIdentifier. /// <para> /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// </para> /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// This is the response object from the GetManagedResource operation. /// </summary> public partial class GetManagedResourceResponse : AmazonWebServiceResponse { private Dictionary<string, float> _appliedWeights = new Dictionary<string, float>(); private string _arn; private string _name; private List<ZonalShiftInResource> _zonalShifts = new List<ZonalShiftInResource>(); /// <summary> /// Gets and sets the property AppliedWeights. /// <para> /// A collection of key-value pairs that indicate whether resources are active in Availability /// Zones or not. The key name is the Availability Zone where the resource is deployed. /// The value is 1 or 0. /// </para> /// </summary> [AWSProperty(Required=true)] public Dictionary<string, float> AppliedWeights { get { return this._appliedWeights; } set { this._appliedWeights = value; } } // Check to see if AppliedWeights property is set internal bool IsSetAppliedWeights() { return this._appliedWeights != null && this._appliedWeights.Count > 0; } /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) for the resource. /// </para> /// </summary> [AWSProperty(Min=8, Max=1024)] 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 Name. /// <para> /// The name of the resource. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] 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 ZonalShifts. /// <para> /// The zonal shifts that are currently active for a resource. /// </para> /// </summary> [AWSProperty(Required=true)] public List<ZonalShiftInResource> ZonalShifts { get { return this._zonalShifts; } set { this._zonalShifts = value; } } // Check to see if ZonalShifts property is set internal bool IsSetZonalShifts() { return this._zonalShifts != null && this._zonalShifts.Count > 0; } } }
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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// There was an internal server error. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InternalServerException : AmazonARCZonalShiftException { /// <summary> /// Constructs a new InternalServerException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InternalServerException(string message) : base(message) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InternalServerException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="innerException"></param> public InternalServerException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InternalServerException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InternalServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// Container for the parameters to the ListManagedResources operation. /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> public partial class ListManagedResourcesRequest : AmazonARCZonalShiftRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The number of objects that you want to return with this call. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// Specifies that you want to receive the next page of results. Valid only if you received /// a <code>NextToken</code> response in the previous request. If you did, it indicates /// that more output is available. Set this parameter to the value provided by the previous /// call's <code>NextToken</code> response to request the next page of results. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// This is the response object from the ListManagedResources operation. /// </summary> public partial class ListManagedResourcesResponse : AmazonWebServiceResponse { private List<ManagedResourceSummary> _items = new List<ManagedResourceSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property Items. /// <para> /// The items in the response list. /// </para> /// </summary> [AWSProperty(Required=true)] public List<ManagedResourceSummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// Specifies that you want to receive the next page of results. Valid only if you received /// a <code>NextToken</code> response in the previous request. If you did, it indicates /// that more output is available. Set this parameter to the value provided by the previous /// call's <code>NextToken</code> response to request the next page of results. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// Container for the parameters to the ListZonalShifts operation. /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> public partial class ListZonalShiftsRequest : AmazonARCZonalShiftRequest { private int? _maxResults; private string _nextToken; private ZonalShiftStatus _status; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The number of objects that you want to return with this call. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// Specifies that you want to receive the next page of results. Valid only if you received /// a <code>NextToken</code> response in the previous request. If you did, it indicates /// that more output is available. Set this parameter to the value provided by the previous /// call's <code>NextToken</code> response to request the next page of results. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// A status for a zonal shift. /// </para> /// /// <para> /// The <code>Status</code> for a zonal shift can have one of the following values: /// </para> /// <ul> <li> /// <para> /// <b>ACTIVE</b>: The zonal shift is started and active. /// </para> /// </li> <li> /// <para> /// <b>EXPIRED</b>: The zonal shift has expired (the expiry time was exceeded). /// </para> /// </li> <li> /// <para> /// <b>CANCELED</b>: The zonal shift was canceled. /// </para> /// </li> </ul> /// </summary> public ZonalShiftStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// This is the response object from the ListZonalShifts operation. /// </summary> public partial class ListZonalShiftsResponse : AmazonWebServiceResponse { private List<ZonalShiftSummary> _items = new List<ZonalShiftSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property Items. /// <para> /// The items in the response list. /// </para> /// </summary> public List<ZonalShiftSummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// Specifies that you want to receive the next page of results. Valid only if you received /// a <code>NextToken</code> response in the previous request. If you did, it indicates /// that more output is available. Set this parameter to the value provided by the previous /// call's <code>NextToken</code> response to request the next page of results. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// A complex structure for a managed resource in an account. /// /// /// <para> /// A managed resource is a Network Load Balancer or Application Load Balancer that has /// been registered with Route 53 ARC by Elastic Load Balancing. You can start a zonal /// shift in Route 53 ARC for a managed resource to temporarily move traffic for the resource /// away from an Availability Zone in an AWS Region. /// </para> /// <note> /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </note> /// </summary> public partial class ManagedResourceSummary { private string _arn; private List<string> _availabilityZones = new List<string>(); private string _name; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) for the managed resource. /// </para> /// </summary> [AWSProperty(Min=8, Max=1024)] 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 AvailabilityZones. /// <para> /// The Availability Zones that a resource is deployed in. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> AvailabilityZones { get { return this._availabilityZones; } set { this._availabilityZones = value; } } // Check to see if AvailabilityZones property is set internal bool IsSetAvailabilityZones() { return this._availabilityZones != null && this._availabilityZones.Count > 0; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the managed resource. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] 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; } } }
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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// The input requested a resource that was not found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonARCZonalShiftException { /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// Container for the parameters to the StartZonalShift operation. /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> public partial class StartZonalShiftRequest : AmazonARCZonalShiftRequest { private string _awayFrom; private string _comment; private string _expiresIn; private string _resourceIdentifier; /// <summary> /// Gets and sets the property AwayFrom. /// <para> /// The Availability Zone that traffic is moved away from for a resource when you start /// a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource /// is instead moved to other Availability Zones in the AWS Region. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=20)] public string AwayFrom { get { return this._awayFrom; } set { this._awayFrom = value; } } // Check to see if AwayFrom property is set internal bool IsSetAwayFrom() { return this._awayFrom != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. A new comment overwrites any existing comment string. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ExpiresIn. /// <para> /// The length of time that you want a zonal shift to be active, which Route 53 ARC converts /// to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal /// shift to be active initially for up to three days (72 hours). /// </para> /// /// <para> /// If you want to still keep traffic away from an Availability Zone, you can update the /// zonal shift and set a new expiration. You can also cancel a zonal shift, before it /// expires, for example, if you're ready to restore traffic to the Availability Zone. /// </para> /// /// <para> /// To set a length of time for a zonal shift to be active, specify a whole number, and /// then one of the following, with no space: /// </para> /// <pre><code> &lt;ul&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;A lowercase letter m:&lt;/b&gt; /// To specify that the value is in minutes.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; /// &lt;b&gt;A lowercase letter h:&lt;/b&gt; To specify that the value is in hours.&lt;/p&gt; /// &lt;/li&gt; &lt;/ul&gt; &lt;p&gt;For example: &lt;code&gt;20h&lt;/code&gt; means the /// zonal shift expires in 20 hours. &lt;code&gt;120m&lt;/code&gt; means the zonal shift /// expires in 120 minutes (2 hours).&lt;/p&gt; </code></pre> /// </summary> [AWSProperty(Required=true, Min=2, Max=5)] public string ExpiresIn { get { return this._expiresIn; } set { this._expiresIn = value; } } // Check to see if ExpiresIn property is set internal bool IsSetExpiresIn() { return this._expiresIn != null; } /// <summary> /// Gets and sets the property ResourceIdentifier. /// <para> /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// </para> /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } } }
170
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// This is the response object from the StartZonalShift operation. /// </summary> public partial class StartZonalShiftResponse : AmazonWebServiceResponse { private string _awayFrom; private string _comment; private DateTime? _expiryTime; private string _resourceIdentifier; private DateTime? _startTime; private ZonalShiftStatus _status; private string _zonalShiftId; /// <summary> /// Gets and sets the property AwayFrom. /// <para> /// The Availability Zone that traffic is moved away from for a resource when you start /// a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource /// is instead moved to other Availability Zones in the AWS Region. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=20)] public string AwayFrom { get { return this._awayFrom; } set { this._awayFrom = value; } } // Check to see if AwayFrom property is set internal bool IsSetAwayFrom() { return this._awayFrom != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. A new comment overwrites any existing comment string. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ExpiryTime. /// <para> /// The expiry time (expiration time) for the zonal shift. A zonal shift is temporary /// and must be set to expire when you start the zonal shift. You can initially set a /// zonal shift to expire in a maximum of three days (72 hours). However, you can update /// a zonal shift to set a new expiration at any time. /// </para> /// /// <para> /// When you start a zonal shift, you specify how long you want it to be active, which /// Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal /// shift, for example, if you're ready to restore traffic to the Availability Zone. Or /// you can update the zonal shift to specify another length of time to expire in. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime ExpiryTime { get { return this._expiryTime.GetValueOrDefault(); } set { this._expiryTime = value; } } // Check to see if ExpiryTime property is set internal bool IsSetExpiryTime() { return this._expiryTime.HasValue; } /// <summary> /// Gets and sets the property ResourceIdentifier. /// <para> /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// </para> /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The time (UTC) when the zonal shift is started. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// A status for a zonal shift. /// </para> /// /// <para> /// The <code>Status</code> for a zonal shift can have one of the following values: /// </para> /// <ul> <li> /// <para> /// <b>ACTIVE:</b> The zonal shift is started and active. /// </para> /// </li> <li> /// <para> /// <b>EXPIRED:</b> The zonal shift has expired (the expiry time was exceeded). /// </para> /// </li> <li> /// <para> /// <b>CANCELED:</b> The zonal shift was canceled. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ZonalShiftStatus 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 ZonalShiftId. /// <para> /// The identifier of a zonal shift. /// </para> /// </summary> [AWSProperty(Required=true, Min=6, Max=36)] public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != null; } } }
214
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// The request was denied due to request throttling. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonARCZonalShiftException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// Container for the parameters to the UpdateZonalShift operation. /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> public partial class UpdateZonalShiftRequest : AmazonARCZonalShiftRequest { private string _comment; private string _expiresIn; private string _zonalShiftId; /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. A new comment overwrites any existing comment string. /// </para> /// </summary> [AWSProperty(Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ExpiresIn. /// <para> /// The length of time that you want a zonal shift to be active, which Route 53 ARC converts /// to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal /// shift to be active initially for up to three days (72 hours). /// </para> /// /// <para> /// If you want to still keep traffic away from an Availability Zone, you can update the /// zonal shift and set a new expiration. You can also cancel a zonal shift, before it /// expires, for example, if you're ready to restore traffic to the Availability Zone. /// </para> /// /// <para> /// To set a length of time for a zonal shift to be active, specify a whole number, and /// then one of the following, with no space: /// </para> /// <ul> <li> /// <para> /// <b>A lowercase letter m:</b> To specify that the value is in minutes. /// </para> /// </li> <li> /// <para> /// <b>A lowercase letter h:</b> To specify that the value is in hours. /// </para> /// </li> </ul> /// <para> /// For example: <code>20h</code> means the zonal shift expires in 20 hours. <code>120m</code> /// means the zonal shift expires in 120 minutes (2 hours). /// </para> /// </summary> [AWSProperty(Min=2, Max=5)] public string ExpiresIn { get { return this._expiresIn; } set { this._expiresIn = value; } } // Check to see if ExpiresIn property is set internal bool IsSetExpiresIn() { return this._expiresIn != null; } /// <summary> /// Gets and sets the property ZonalShiftId. /// <para> /// The identifier of a zonal shift. /// </para> /// </summary> [AWSProperty(Required=true, Min=6, Max=36)] public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != null; } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// This is the response object from the UpdateZonalShift operation. /// </summary> public partial class UpdateZonalShiftResponse : AmazonWebServiceResponse { private string _awayFrom; private string _comment; private DateTime? _expiryTime; private string _resourceIdentifier; private DateTime? _startTime; private ZonalShiftStatus _status; private string _zonalShiftId; /// <summary> /// Gets and sets the property AwayFrom. /// <para> /// The Availability Zone that traffic is moved away from for a resource when you start /// a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource /// is instead moved to other Availability Zones in the AWS Region. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=20)] public string AwayFrom { get { return this._awayFrom; } set { this._awayFrom = value; } } // Check to see if AwayFrom property is set internal bool IsSetAwayFrom() { return this._awayFrom != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. A new comment overwrites any existing comment string. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ExpiryTime. /// <para> /// The expiry time (expiration time) for the zonal shift. A zonal shift is temporary /// and must be set to expire when you start the zonal shift. You can initially set a /// zonal shift to expire in a maximum of three days (72 hours). However, you can update /// a zonal shift to set a new expiration at any time. /// </para> /// /// <para> /// When you start a zonal shift, you specify how long you want it to be active, which /// Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal /// shift, for example, if you're ready to restore traffic to the Availability Zone. Or /// you can update the zonal shift to specify another length of time to expire in. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime ExpiryTime { get { return this._expiryTime.GetValueOrDefault(); } set { this._expiryTime = value; } } // Check to see if ExpiryTime property is set internal bool IsSetExpiryTime() { return this._expiryTime.HasValue; } /// <summary> /// Gets and sets the property ResourceIdentifier. /// <para> /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// </para> /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The time (UTC) when the zonal shift is started. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// A status for a zonal shift. /// </para> /// /// <para> /// The <code>Status</code> for a zonal shift can have one of the following values: /// </para> /// <ul> <li> /// <para> /// <b>ACTIVE:</b> The zonal shift is started and active. /// </para> /// </li> <li> /// <para> /// <b>EXPIRED:</b> The zonal shift has expired (the expiry time was exceeded). /// </para> /// </li> <li> /// <para> /// <b>CANCELED:</b> The zonal shift was canceled. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ZonalShiftStatus 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 ZonalShiftId. /// <para> /// The identifier of a zonal shift. /// </para> /// </summary> [AWSProperty(Required=true, Min=6, Max=36)] public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != null; } } }
214
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// The input fails to satisfy the constraints specified by an AWS service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ValidationException : AmazonARCZonalShiftException { private ValidationExceptionReason _reason; /// <summary> /// Constructs a new ValidationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ValidationException(string message) : base(message) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ValidationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="innerException"></param> public ValidationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ValidationException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Reason = (ValidationExceptionReason)info.GetValue("Reason", typeof(ValidationExceptionReason)); } /// <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); } #endif /// <summary> /// Gets and sets the property Reason. /// <para> /// The reason for the validation exception. /// </para> /// </summary> [AWSProperty(Required=true)] public ValidationExceptionReason Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != 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 arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// A complex structure that lists the zonal shifts for a managed resource and their statuses /// for the resource. /// </summary> public partial class ZonalShiftInResource { private AppliedStatus _appliedStatus; private string _awayFrom; private string _comment; private DateTime? _expiryTime; private string _resourceIdentifier; private DateTime? _startTime; private string _zonalShiftId; /// <summary> /// Gets and sets the property AppliedStatus. /// <para> /// An <code>appliedStatus</code> for a zonal shift for a resource can have one of two /// values: <code>APPLIED</code> or <code>NOT_APPLIED</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public AppliedStatus AppliedStatus { get { return this._appliedStatus; } set { this._appliedStatus = value; } } // Check to see if AppliedStatus property is set internal bool IsSetAppliedStatus() { return this._appliedStatus != null; } /// <summary> /// Gets and sets the property AwayFrom. /// <para> /// The Availability Zone that traffic is moved away from for a resource when you start /// a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource /// is instead moved to other Availability Zones in the AWS Region. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=20)] public string AwayFrom { get { return this._awayFrom; } set { this._awayFrom = value; } } // Check to see if AwayFrom property is set internal bool IsSetAwayFrom() { return this._awayFrom != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. That is, a new comment overwrites any existing comment /// string. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ExpiryTime. /// <para> /// The expiry time (expiration time) for the zonal shift. A zonal shift is temporary /// and must be set to expire when you start the zonal shift. You can initially set a /// zonal shift to expire in a maximum of three days (72 hours). However, you can update /// a zonal shift to set a new expiration at any time. /// </para> /// /// <para> /// When you start a zonal shift, you specify how long you want it to be active, which /// Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal /// shift, for example, if you're ready to restore traffic to the Availability Zone. Or /// you can update the zonal shift to specify another length of time to expire in. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime ExpiryTime { get { return this._expiryTime.GetValueOrDefault(); } set { this._expiryTime = value; } } // Check to see if ExpiryTime property is set internal bool IsSetExpiryTime() { return this._expiryTime.HasValue; } /// <summary> /// Gets and sets the property ResourceIdentifier. /// <para> /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// </para> /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The time (UTC) when the zonal shift is started. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// <summary> /// Gets and sets the property ZonalShiftId. /// <para> /// The identifier of a zonal shift. /// </para> /// </summary> [AWSProperty(Required=true, Min=6, Max=36)] public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != null; } } }
200
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-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.ARCZonalShift.Model { /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region. A zonal shift helps your application recover immediately, for /// example, from a developer's bad code deployment or from an AWS infrastructure failure /// in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for /// managed resources in your account in an AWS Region. Supported AWS resources are automatically /// registered with Route 53 ARC. /// /// /// <para> /// Zonal shifts are temporary. A zonal shift can be active for up to three days (72 hours). /// </para> /// /// <para> /// When you start a zonal shift, you specify how long you want it to be active, which /// Amazon Route 53 Application Recovery Controller converts to an expiry time (expiration /// time). You can cancel a zonal shift, for example, if you're ready to restore traffic /// to the Availability Zone. Or you can extend the zonal shift by updating the expiration /// so the zonal shift is active longer. /// </para> /// </summary> public partial class ZonalShiftSummary { private string _awayFrom; private string _comment; private DateTime? _expiryTime; private string _resourceIdentifier; private DateTime? _startTime; private ZonalShiftStatus _status; private string _zonalShiftId; /// <summary> /// Gets and sets the property AwayFrom. /// <para> /// The Availability Zone that traffic is moved away from for a resource when you start /// a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource /// is instead moved to other Availability Zones in the AWS Region. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=20)] public string AwayFrom { get { return this._awayFrom; } set { this._awayFrom = value; } } // Check to see if AwayFrom property is set internal bool IsSetAwayFrom() { return this._awayFrom != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. That is, a new comment overwrites any existing comment /// string. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ExpiryTime. /// <para> /// The expiry time (expiration time) for the zonal shift. A zonal shift is temporary /// and must be set to expire when you start the zonal shift. You can initially set a /// zonal shift to expire in a maximum of three days (72 hours). However, you can update /// a zonal shift to set a new expiration at any time. /// </para> /// /// <para> /// When you start a zonal shift, you specify how long you want it to be active, which /// Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal /// shift, for example, if you're ready to restore traffic to the Availability Zone. Or /// you can update the zonal shift to specify another length of time to expire in. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime ExpiryTime { get { return this._expiryTime.GetValueOrDefault(); } set { this._expiryTime = value; } } // Check to see if ExpiryTime property is set internal bool IsSetExpiryTime() { return this._expiryTime.HasValue; } /// <summary> /// Gets and sets the property ResourceIdentifier. /// <para> /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// </para> /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The time (UTC) when the zonal shift is started. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// A status for a zonal shift. /// </para> /// /// <para> /// The <code>Status</code> for a zonal shift can have one of the following values: /// </para> /// <ul> <li> /// <para> /// <b>ACTIVE:</b> The zonal shift is started and active. /// </para> /// </li> <li> /// <para> /// <b>EXPIRED:</b> The zonal shift has expired (the expiry time was exceeded). /// </para> /// </li> <li> /// <para> /// <b>CANCELED:</b> The zonal shift was canceled. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ZonalShiftStatus 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 ZonalShiftId. /// <para> /// The identifier of a zonal shift. /// </para> /// </summary> [AWSProperty(Required=true, Min=6, Max=36)] public string ZonalShiftId { get { return this._zonalShiftId; } set { this._zonalShiftId = value; } } // Check to see if ZonalShiftId property is set internal bool IsSetZonalShiftId() { return this._zonalShiftId != null; } } }
233
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDeniedException Object /// </summary> public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// CancelZonalShift Request Marshaller /// </summary> public class CancelZonalShiftRequestMarshaller : IMarshaller<IRequest, CancelZonalShiftRequest> , 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((CancelZonalShiftRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CancelZonalShiftRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ARCZonalShift"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2022-10-30"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetZonalShiftId()) throw new AmazonARCZonalShiftException("Request object does not have required field ZonalShiftId set"); request.AddPathResource("{zonalShiftId}", StringUtils.FromString(publicRequest.ZonalShiftId)); request.ResourcePath = "/zonalshifts/{zonalShiftId}"; return request; } private static CancelZonalShiftRequestMarshaller _instance = new CancelZonalShiftRequestMarshaller(); internal static CancelZonalShiftRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelZonalShiftRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CancelZonalShift operation /// </summary> public class CancelZonalShiftResponseUnmarshaller : 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) { CancelZonalShiftResponse response = new CancelZonalShiftResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awayFrom", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AwayFrom = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("comment", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Comment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expiryTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.ExpiryTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ResourceIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("zonalShiftId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ZonalShiftId = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonARCZonalShiftException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CancelZonalShiftResponseUnmarshaller _instance = new CancelZonalShiftResponseUnmarshaller(); internal static CancelZonalShiftResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelZonalShiftResponseUnmarshaller Instance { get { return _instance; } } } }
166
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConflictException Object /// </summary> public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConflictException 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 ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("zonalShiftId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ZonalShiftId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// GetManagedResource Request Marshaller /// </summary> public class GetManagedResourceRequestMarshaller : IMarshaller<IRequest, GetManagedResourceRequest> , 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((GetManagedResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetManagedResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ARCZonalShift"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2022-10-30"; request.HttpMethod = "GET"; if (!publicRequest.IsSetResourceIdentifier()) throw new AmazonARCZonalShiftException("Request object does not have required field ResourceIdentifier set"); request.AddPathResource("{resourceIdentifier}", StringUtils.FromString(publicRequest.ResourceIdentifier)); request.ResourcePath = "/managedresources/{resourceIdentifier}"; return request; } private static GetManagedResourceRequestMarshaller _instance = new GetManagedResourceRequestMarshaller(); internal static GetManagedResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetManagedResourceRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetManagedResource operation /// </summary> public class GetManagedResourceResponseUnmarshaller : 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) { GetManagedResourceResponse response = new GetManagedResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("appliedWeights", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, float, StringUnmarshaller, FloatUnmarshaller>(StringUnmarshaller.Instance, FloatUnmarshaller.Instance); response.AppliedWeights = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("zonalShifts", targetDepth)) { var unmarshaller = new ListUnmarshaller<ZonalShiftInResource, ZonalShiftInResourceUnmarshaller>(ZonalShiftInResourceUnmarshaller.Instance); response.ZonalShifts = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonARCZonalShiftException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetManagedResourceResponseUnmarshaller _instance = new GetManagedResourceResponseUnmarshaller(); internal static GetManagedResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetManagedResourceResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InternalServerException Object /// </summary> public class InternalServerExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InternalServerException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InternalServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InternalServerException unmarshalledObject = new InternalServerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InternalServerExceptionUnmarshaller _instance = new InternalServerExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InternalServerExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// ListManagedResources Request Marshaller /// </summary> public class ListManagedResourcesRequestMarshaller : IMarshaller<IRequest, ListManagedResourcesRequest> , 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((ListManagedResourcesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListManagedResourcesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ARCZonalShift"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2022-10-30"; request.HttpMethod = "GET"; if (publicRequest.IsSetMaxResults()) request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); request.ResourcePath = "/managedresources"; request.UseQueryString = true; return request; } private static ListManagedResourcesRequestMarshaller _instance = new ListManagedResourcesRequestMarshaller(); internal static ListManagedResourcesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListManagedResourcesRequestMarshaller 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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListManagedResources operation /// </summary> public class ListManagedResourcesResponseUnmarshaller : 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) { ListManagedResourcesResponse response = new ListManagedResourcesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("items", targetDepth)) { var unmarshaller = new ListUnmarshaller<ManagedResourceSummary, ManagedResourceSummaryUnmarshaller>(ManagedResourceSummaryUnmarshaller.Instance); response.Items = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonARCZonalShiftException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListManagedResourcesResponseUnmarshaller _instance = new ListManagedResourcesResponseUnmarshaller(); internal static ListManagedResourcesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListManagedResourcesResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// ListZonalShifts Request Marshaller /// </summary> public class ListZonalShiftsRequestMarshaller : IMarshaller<IRequest, ListZonalShiftsRequest> , 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((ListZonalShiftsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListZonalShiftsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ARCZonalShift"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2022-10-30"; request.HttpMethod = "GET"; if (publicRequest.IsSetMaxResults()) request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults)); if (publicRequest.IsSetNextToken()) request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); if (publicRequest.IsSetStatus()) request.Parameters.Add("status", StringUtils.FromString(publicRequest.Status)); request.ResourcePath = "/zonalshifts"; request.UseQueryString = true; return request; } private static ListZonalShiftsRequestMarshaller _instance = new ListZonalShiftsRequestMarshaller(); internal static ListZonalShiftsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListZonalShiftsRequestMarshaller Instance { get { return _instance; } } } }
94
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListZonalShifts operation /// </summary> public class ListZonalShiftsResponseUnmarshaller : 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) { ListZonalShiftsResponse response = new ListZonalShiftsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("items", targetDepth)) { var unmarshaller = new ListUnmarshaller<ZonalShiftSummary, ZonalShiftSummaryUnmarshaller>(ZonalShiftSummaryUnmarshaller.Instance); response.Items = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonARCZonalShiftException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListZonalShiftsResponseUnmarshaller _instance = new ListZonalShiftsResponseUnmarshaller(); internal static ListZonalShiftsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListZonalShiftsResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ManagedResourceSummary Object /// </summary> public class ManagedResourceSummaryUnmarshaller : IUnmarshaller<ManagedResourceSummary, XmlUnmarshallerContext>, IUnmarshaller<ManagedResourceSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ManagedResourceSummary IUnmarshaller<ManagedResourceSummary, 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 ManagedResourceSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ManagedResourceSummary unmarshalledObject = new ManagedResourceSummary(); 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("availabilityZones", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.AvailabilityZones = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ManagedResourceSummaryUnmarshaller _instance = new ManagedResourceSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ManagedResourceSummaryUnmarshaller 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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException Object /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller 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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// StartZonalShift Request Marshaller /// </summary> public class StartZonalShiftRequestMarshaller : IMarshaller<IRequest, StartZonalShiftRequest> , 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((StartZonalShiftRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StartZonalShiftRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ARCZonalShift"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2022-10-30"; request.HttpMethod = "POST"; request.ResourcePath = "/zonalshifts"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAwayFrom()) { context.Writer.WritePropertyName("awayFrom"); context.Writer.Write(publicRequest.AwayFrom); } if(publicRequest.IsSetComment()) { context.Writer.WritePropertyName("comment"); context.Writer.Write(publicRequest.Comment); } if(publicRequest.IsSetExpiresIn()) { context.Writer.WritePropertyName("expiresIn"); context.Writer.Write(publicRequest.ExpiresIn); } if(publicRequest.IsSetResourceIdentifier()) { context.Writer.WritePropertyName("resourceIdentifier"); context.Writer.Write(publicRequest.ResourceIdentifier); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static StartZonalShiftRequestMarshaller _instance = new StartZonalShiftRequestMarshaller(); internal static StartZonalShiftRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartZonalShiftRequestMarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StartZonalShift operation /// </summary> public class StartZonalShiftResponseUnmarshaller : 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) { StartZonalShiftResponse response = new StartZonalShiftResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awayFrom", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AwayFrom = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("comment", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Comment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expiryTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.ExpiryTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ResourceIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("zonalShiftId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ZonalShiftId = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonARCZonalShiftException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static StartZonalShiftResponseUnmarshaller _instance = new StartZonalShiftResponseUnmarshaller(); internal static StartZonalShiftResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartZonalShiftResponseUnmarshaller Instance { get { return _instance; } } } }
166
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ThrottlingException Object /// </summary> public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ThrottlingExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// UpdateZonalShift Request Marshaller /// </summary> public class UpdateZonalShiftRequestMarshaller : IMarshaller<IRequest, UpdateZonalShiftRequest> , 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((UpdateZonalShiftRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateZonalShiftRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.ARCZonalShift"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2022-10-30"; request.HttpMethod = "PATCH"; if (!publicRequest.IsSetZonalShiftId()) throw new AmazonARCZonalShiftException("Request object does not have required field ZonalShiftId set"); request.AddPathResource("{zonalShiftId}", StringUtils.FromString(publicRequest.ZonalShiftId)); request.ResourcePath = "/zonalshifts/{zonalShiftId}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetComment()) { context.Writer.WritePropertyName("comment"); context.Writer.Write(publicRequest.Comment); } if(publicRequest.IsSetExpiresIn()) { context.Writer.WritePropertyName("expiresIn"); context.Writer.Write(publicRequest.ExpiresIn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateZonalShiftRequestMarshaller _instance = new UpdateZonalShiftRequestMarshaller(); internal static UpdateZonalShiftRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateZonalShiftRequestMarshaller 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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateZonalShift operation /// </summary> public class UpdateZonalShiftResponseUnmarshaller : 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) { UpdateZonalShiftResponse response = new UpdateZonalShiftResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awayFrom", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AwayFrom = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("comment", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Comment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expiryTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.ExpiryTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ResourceIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("zonalShiftId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ZonalShiftId = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonARCZonalShiftException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateZonalShiftResponseUnmarshaller _instance = new UpdateZonalShiftResponseUnmarshaller(); internal static UpdateZonalShiftResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateZonalShiftResponseUnmarshaller Instance { get { return _instance; } } } }
166
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidationException Object /// </summary> public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ValidationExceptionUnmarshaller 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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ZonalShiftInResource Object /// </summary> public class ZonalShiftInResourceUnmarshaller : IUnmarshaller<ZonalShiftInResource, XmlUnmarshallerContext>, IUnmarshaller<ZonalShiftInResource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ZonalShiftInResource IUnmarshaller<ZonalShiftInResource, 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 ZonalShiftInResource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ZonalShiftInResource unmarshalledObject = new ZonalShiftInResource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("appliedStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppliedStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awayFrom", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwayFrom = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("comment", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Comment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expiryTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ExpiryTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("zonalShiftId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ZonalShiftId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ZonalShiftInResourceUnmarshaller _instance = new ZonalShiftInResourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ZonalShiftInResourceUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ARCZonalShift.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ZonalShiftSummary Object /// </summary> public class ZonalShiftSummaryUnmarshaller : IUnmarshaller<ZonalShiftSummary, XmlUnmarshallerContext>, IUnmarshaller<ZonalShiftSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ZonalShiftSummary IUnmarshaller<ZonalShiftSummary, 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 ZonalShiftSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ZonalShiftSummary unmarshalledObject = new ZonalShiftSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awayFrom", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwayFrom = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("comment", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Comment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expiryTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ExpiryTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceIdentifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("zonalShiftId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ZonalShiftId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ZonalShiftSummaryUnmarshaller _instance = new ZonalShiftSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ZonalShiftSummaryUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.ARCZonalShift.Model { /// <summary> /// Paginators for the ARCZonalShift service ///</summary> public class ARCZonalShiftPaginatorFactory : IARCZonalShiftPaginatorFactory { private readonly IAmazonARCZonalShift client; internal ARCZonalShiftPaginatorFactory(IAmazonARCZonalShift client) { this.client = client; } /// <summary> /// Paginator for ListManagedResources operation ///</summary> public IListManagedResourcesPaginator ListManagedResources(ListManagedResourcesRequest request) { return new ListManagedResourcesPaginator(this.client, request); } /// <summary> /// Paginator for ListZonalShifts operation ///</summary> public IListZonalShiftsPaginator ListZonalShifts(ListZonalShiftsRequest request) { return new ListZonalShiftsPaginator(this.client, request); } } }
54
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model. */ namespace Amazon.ARCZonalShift.Model { /// <summary> /// Paginators for the ARCZonalShift service ///</summary> public interface IARCZonalShiftPaginatorFactory { /// <summary> /// Paginator for ListManagedResources operation ///</summary> IListManagedResourcesPaginator ListManagedResources(ListManagedResourcesRequest request); /// <summary> /// Paginator for ListZonalShifts operation ///</summary> IListZonalShiftsPaginator ListZonalShifts(ListZonalShiftsRequest request); } }
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 arc-zonal-shift-2022-10-30.normal.json service model. */ using Amazon.Runtime; namespace Amazon.ARCZonalShift.Model { /// <summary> /// Paginator for the ListManagedResources operation ///</summary> public interface IListManagedResourcesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListManagedResourcesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Items /// </summary> IPaginatedEnumerable<ManagedResourceSummary> Items { 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 arc-zonal-shift-2022-10-30.normal.json service model. */ using Amazon.Runtime; namespace Amazon.ARCZonalShift.Model { /// <summary> /// Paginator for the ListZonalShifts operation ///</summary> public interface IListZonalShiftsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListZonalShiftsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Items /// </summary> IPaginatedEnumerable<ZonalShiftSummary> Items { 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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model { /// <summary> /// Base class for ListManagedResources paginators. /// </summary> internal sealed partial class ListManagedResourcesPaginator : IPaginator<ListManagedResourcesResponse>, IListManagedResourcesPaginator { private readonly IAmazonARCZonalShift _client; private readonly ListManagedResourcesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListManagedResourcesResponse> Responses => new PaginatedResponse<ListManagedResourcesResponse>(this); /// <summary> /// Enumerable containing all of the Items /// </summary> public IPaginatedEnumerable<ManagedResourceSummary> Items => new PaginatedResultKeyResponse<ListManagedResourcesResponse, ManagedResourceSummary>(this, (i) => i.Items); internal ListManagedResourcesPaginator(IAmazonARCZonalShift client, ListManagedResourcesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListManagedResourcesResponse> IPaginator<ListManagedResourcesResponse>.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; ListManagedResourcesResponse response; do { _request.NextToken = nextToken; response = _client.ListManagedResources(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListManagedResourcesResponse> IPaginator<ListManagedResourcesResponse>.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; ListManagedResourcesResponse response; do { _request.NextToken = nextToken; response = await _client.ListManagedResourcesAsync(_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 arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model { /// <summary> /// Base class for ListZonalShifts paginators. /// </summary> internal sealed partial class ListZonalShiftsPaginator : IPaginator<ListZonalShiftsResponse>, IListZonalShiftsPaginator { private readonly IAmazonARCZonalShift _client; private readonly ListZonalShiftsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListZonalShiftsResponse> Responses => new PaginatedResponse<ListZonalShiftsResponse>(this); /// <summary> /// Enumerable containing all of the Items /// </summary> public IPaginatedEnumerable<ZonalShiftSummary> Items => new PaginatedResultKeyResponse<ListZonalShiftsResponse, ZonalShiftSummary>(this, (i) => i.Items); internal ListZonalShiftsPaginator(IAmazonARCZonalShift client, ListZonalShiftsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListZonalShiftsResponse> IPaginator<ListZonalShiftsResponse>.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; ListZonalShiftsResponse response; do { _request.NextToken = nextToken; response = _client.ListZonalShifts(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListZonalShiftsResponse> IPaginator<ListZonalShiftsResponse>.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; ListZonalShiftsResponse response; do { _request.NextToken = nextToken; response = await _client.ListZonalShiftsAsync(_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 arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.ARCZonalShift.Model; using Amazon.ARCZonalShift.Model.Internal.MarshallTransformations; using Amazon.ARCZonalShift.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ARCZonalShift { /// <summary> /// Implementation for accessing ARCZonalShift /// /// This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application /// Recovery Controller. This guide is for developers who need detailed information about /// zonal shift API actions, data types, and errors. /// /// /// <para> /// Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller /// and is subject to change. /// </para> /// /// <para> /// Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource /// away from an Availability Zone. Starting a zonal shift helps your application recover /// immediately, for example, from a developer's bad code deployment or from an AWS infrastructure /// failure in a single Availability Zone, reducing the impact and time lost from an issue /// in one zone. /// </para> /// /// <para> /// Supported AWS resources are automatically registered with Route 53 ARC. Resources /// that are registered for zonal shifts in Route 53 ARC are managed resources in Route /// 53 ARC. You can start a zonal shift for any managed resource in your account in a /// Region. At this time, you can only start a zonal shift for Network Load Balancers /// and Application Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// Zonal shifts are temporary. You must specify an expiration when you start a zonal /// shift, of up to three days initially. If you want to still keep traffic away from /// an Availability Zone, you can update the zonal shift and set a new expiration. You /// can also cancel a zonal shift, before it expires, for example, if you're ready to /// restore traffic to the Availability Zone. /// </para> /// /// <para> /// For more information about using zonal shift, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon /// Route 53 Application Recovery Controller Developer Guide</a>. /// </para> /// </summary> public partial class AmazonARCZonalShiftClient : AmazonServiceClient, IAmazonARCZonalShift { private static IServiceMetadata serviceMetadata = new AmazonARCZonalShiftMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IARCZonalShiftPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IARCZonalShiftPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ARCZonalShiftPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(AmazonARCZonalShiftConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonARCZonalShiftClient(AWSCredentials credentials) : this(credentials, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonARCZonalShiftClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials and an /// AmazonARCZonalShiftClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(AWSCredentials credentials, AmazonARCZonalShiftConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonARCZonalShiftConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Access Key ID, AWS Secret Key and an /// AmazonARCZonalShiftClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonARCZonalShiftConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Access Key ID, AWS Secret Key and an /// AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonARCZonalShiftConfig 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 AmazonARCZonalShiftEndpointResolver()); } /// <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 CancelZonalShift /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift service method.</param> /// /// <returns>The response from the CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> public virtual CancelZonalShiftResponse CancelZonalShift(CancelZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelZonalShiftResponseUnmarshaller.Instance; return Invoke<CancelZonalShiftResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelZonalShift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift operation on AmazonARCZonalShiftClient.</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 EndCancelZonalShift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> public virtual IAsyncResult BeginCancelZonalShift(CancelZonalShiftRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelZonalShiftResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelZonalShift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelZonalShift.</param> /// /// <returns>Returns a CancelZonalShiftResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> public virtual CancelZonalShiftResponse EndCancelZonalShift(IAsyncResult asyncResult) { return EndInvoke<CancelZonalShiftResponse>(asyncResult); } #endregion #region GetManagedResource /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource service method.</param> /// /// <returns>The response from the GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> public virtual GetManagedResourceResponse GetManagedResource(GetManagedResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetManagedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetManagedResourceResponseUnmarshaller.Instance; return Invoke<GetManagedResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetManagedResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetManagedResource operation on AmazonARCZonalShiftClient.</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 EndGetManagedResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> public virtual IAsyncResult BeginGetManagedResource(GetManagedResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetManagedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetManagedResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetManagedResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetManagedResource.</param> /// /// <returns>Returns a GetManagedResourceResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> public virtual GetManagedResourceResponse EndGetManagedResource(IAsyncResult asyncResult) { return EndInvoke<GetManagedResourceResponse>(asyncResult); } #endregion #region ListManagedResources /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources service method.</param> /// /// <returns>The response from the ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> public virtual ListManagedResourcesResponse ListManagedResources(ListManagedResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedResourcesResponseUnmarshaller.Instance; return Invoke<ListManagedResourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListManagedResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListManagedResources operation on AmazonARCZonalShiftClient.</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 EndListManagedResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> public virtual IAsyncResult BeginListManagedResources(ListManagedResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListManagedResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListManagedResources.</param> /// /// <returns>Returns a ListManagedResourcesResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> public virtual ListManagedResourcesResponse EndListManagedResources(IAsyncResult asyncResult) { return EndInvoke<ListManagedResourcesResponse>(asyncResult); } #endregion #region ListZonalShifts /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts service method.</param> /// /// <returns>The response from the ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> public virtual ListZonalShiftsResponse ListZonalShifts(ListZonalShiftsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListZonalShiftsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListZonalShiftsResponseUnmarshaller.Instance; return Invoke<ListZonalShiftsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListZonalShifts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts operation on AmazonARCZonalShiftClient.</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 EndListZonalShifts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> public virtual IAsyncResult BeginListZonalShifts(ListZonalShiftsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListZonalShiftsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListZonalShiftsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListZonalShifts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListZonalShifts.</param> /// /// <returns>Returns a ListZonalShiftsResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> public virtual ListZonalShiftsResponse EndListZonalShifts(IAsyncResult asyncResult) { return EndInvoke<ListZonalShiftsResponse>(asyncResult); } #endregion #region StartZonalShift /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift service method.</param> /// /// <returns>The response from the StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> public virtual StartZonalShiftResponse StartZonalShift(StartZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = StartZonalShiftResponseUnmarshaller.Instance; return Invoke<StartZonalShiftResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartZonalShift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartZonalShift operation on AmazonARCZonalShiftClient.</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 EndStartZonalShift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> public virtual IAsyncResult BeginStartZonalShift(StartZonalShiftRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = StartZonalShiftResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartZonalShift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartZonalShift.</param> /// /// <returns>Returns a StartZonalShiftResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> public virtual StartZonalShiftResponse EndStartZonalShift(IAsyncResult asyncResult) { return EndInvoke<StartZonalShiftResponse>(asyncResult); } #endregion #region UpdateZonalShift /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift service method.</param> /// /// <returns>The response from the UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> public virtual UpdateZonalShiftResponse UpdateZonalShift(UpdateZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateZonalShiftResponseUnmarshaller.Instance; return Invoke<UpdateZonalShiftResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateZonalShift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift operation on AmazonARCZonalShiftClient.</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 EndUpdateZonalShift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> public virtual IAsyncResult BeginUpdateZonalShift(UpdateZonalShiftRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateZonalShiftResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateZonalShift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateZonalShift.</param> /// /// <returns>Returns a UpdateZonalShiftResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> public virtual UpdateZonalShiftResponse EndUpdateZonalShift(IAsyncResult asyncResult) { return EndInvoke<UpdateZonalShiftResponse>(asyncResult); } #endregion } }
763
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.ARCZonalShift.Model; namespace Amazon.ARCZonalShift { /// <summary> /// Interface for accessing ARCZonalShift /// /// This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application /// Recovery Controller. This guide is for developers who need detailed information about /// zonal shift API actions, data types, and errors. /// /// /// <para> /// Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller /// and is subject to change. /// </para> /// /// <para> /// Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource /// away from an Availability Zone. Starting a zonal shift helps your application recover /// immediately, for example, from a developer's bad code deployment or from an AWS infrastructure /// failure in a single Availability Zone, reducing the impact and time lost from an issue /// in one zone. /// </para> /// /// <para> /// Supported AWS resources are automatically registered with Route 53 ARC. Resources /// that are registered for zonal shifts in Route 53 ARC are managed resources in Route /// 53 ARC. You can start a zonal shift for any managed resource in your account in a /// Region. At this time, you can only start a zonal shift for Network Load Balancers /// and Application Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// Zonal shifts are temporary. You must specify an expiration when you start a zonal /// shift, of up to three days initially. If you want to still keep traffic away from /// an Availability Zone, you can update the zonal shift and set a new expiration. You /// can also cancel a zonal shift, before it expires, for example, if you're ready to /// restore traffic to the Availability Zone. /// </para> /// /// <para> /// For more information about using zonal shift, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon /// Route 53 Application Recovery Controller Developer Guide</a>. /// </para> /// </summary> public partial interface IAmazonARCZonalShift : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IARCZonalShiftPaginatorFactory Paginators { get; } #endif #region CancelZonalShift /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift service method.</param> /// /// <returns>The response from the CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> CancelZonalShiftResponse CancelZonalShift(CancelZonalShiftRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelZonalShift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift operation on AmazonARCZonalShiftClient.</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 EndCancelZonalShift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> IAsyncResult BeginCancelZonalShift(CancelZonalShiftRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelZonalShift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelZonalShift.</param> /// /// <returns>Returns a CancelZonalShiftResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> CancelZonalShiftResponse EndCancelZonalShift(IAsyncResult asyncResult); #endregion #region GetManagedResource /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource service method.</param> /// /// <returns>The response from the GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> GetManagedResourceResponse GetManagedResource(GetManagedResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the GetManagedResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetManagedResource operation on AmazonARCZonalShiftClient.</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 EndGetManagedResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> IAsyncResult BeginGetManagedResource(GetManagedResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetManagedResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetManagedResource.</param> /// /// <returns>Returns a GetManagedResourceResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> GetManagedResourceResponse EndGetManagedResource(IAsyncResult asyncResult); #endregion #region ListManagedResources /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources service method.</param> /// /// <returns>The response from the ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> ListManagedResourcesResponse ListManagedResources(ListManagedResourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListManagedResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListManagedResources operation on AmazonARCZonalShiftClient.</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 EndListManagedResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> IAsyncResult BeginListManagedResources(ListManagedResourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListManagedResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListManagedResources.</param> /// /// <returns>Returns a ListManagedResourcesResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> ListManagedResourcesResponse EndListManagedResources(IAsyncResult asyncResult); #endregion #region ListZonalShifts /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts service method.</param> /// /// <returns>The response from the ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> ListZonalShiftsResponse ListZonalShifts(ListZonalShiftsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListZonalShifts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts operation on AmazonARCZonalShiftClient.</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 EndListZonalShifts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> IAsyncResult BeginListZonalShifts(ListZonalShiftsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListZonalShifts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListZonalShifts.</param> /// /// <returns>Returns a ListZonalShiftsResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> ListZonalShiftsResponse EndListZonalShifts(IAsyncResult asyncResult); #endregion #region StartZonalShift /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift service method.</param> /// /// <returns>The response from the StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> StartZonalShiftResponse StartZonalShift(StartZonalShiftRequest request); /// <summary> /// Initiates the asynchronous execution of the StartZonalShift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartZonalShift operation on AmazonARCZonalShiftClient.</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 EndStartZonalShift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> IAsyncResult BeginStartZonalShift(StartZonalShiftRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartZonalShift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartZonalShift.</param> /// /// <returns>Returns a StartZonalShiftResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> StartZonalShiftResponse EndStartZonalShift(IAsyncResult asyncResult); #endregion #region UpdateZonalShift /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift service method.</param> /// /// <returns>The response from the UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> UpdateZonalShiftResponse UpdateZonalShift(UpdateZonalShiftRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateZonalShift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift operation on AmazonARCZonalShiftClient.</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 EndUpdateZonalShift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> IAsyncResult BeginUpdateZonalShift(UpdateZonalShiftRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateZonalShift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateZonalShift.</param> /// /// <returns>Returns a UpdateZonalShiftResult from ARCZonalShift.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> UpdateZonalShiftResponse EndUpdateZonalShift(IAsyncResult asyncResult); #endregion } }
459
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.ARCZonalShift.Model.Internal.MarshallTransformations; using Amazon.ARCZonalShift.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ARCZonalShift { /// <summary> /// Implementation for accessing ARCZonalShift /// /// This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application /// Recovery Controller. This guide is for developers who need detailed information about /// zonal shift API actions, data types, and errors. /// /// /// <para> /// Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller /// and is subject to change. /// </para> /// /// <para> /// Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource /// away from an Availability Zone. Starting a zonal shift helps your application recover /// immediately, for example, from a developer's bad code deployment or from an AWS infrastructure /// failure in a single Availability Zone, reducing the impact and time lost from an issue /// in one zone. /// </para> /// /// <para> /// Supported AWS resources are automatically registered with Route 53 ARC. Resources /// that are registered for zonal shifts in Route 53 ARC are managed resources in Route /// 53 ARC. You can start a zonal shift for any managed resource in your account in a /// Region. At this time, you can only start a zonal shift for Network Load Balancers /// and Application Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// Zonal shifts are temporary. You must specify an expiration when you start a zonal /// shift, of up to three days initially. If you want to still keep traffic away from /// an Availability Zone, you can update the zonal shift and set a new expiration. You /// can also cancel a zonal shift, before it expires, for example, if you're ready to /// restore traffic to the Availability Zone. /// </para> /// /// <para> /// For more information about using zonal shift, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon /// Route 53 Application Recovery Controller Developer Guide</a>. /// </para> /// </summary> public partial class AmazonARCZonalShiftClient : AmazonServiceClient, IAmazonARCZonalShift { private static IServiceMetadata serviceMetadata = new AmazonARCZonalShiftMetadata(); private IARCZonalShiftPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IARCZonalShiftPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ARCZonalShiftPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(AmazonARCZonalShiftConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonARCZonalShiftClient(AWSCredentials credentials) : this(credentials, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonARCZonalShiftClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials and an /// AmazonARCZonalShiftClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(AWSCredentials credentials, AmazonARCZonalShiftConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonARCZonalShiftConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Access Key ID, AWS Secret Key and an /// AmazonARCZonalShiftClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonARCZonalShiftConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Access Key ID, AWS Secret Key and an /// AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonARCZonalShiftConfig 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 AmazonARCZonalShiftEndpointResolver()); } /// <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 CancelZonalShift /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift service method.</param> /// /// <returns>The response from the CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> public virtual CancelZonalShiftResponse CancelZonalShift(CancelZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelZonalShiftResponseUnmarshaller.Instance; return Invoke<CancelZonalShiftResponse>(request, options); } /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift 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 CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> public virtual Task<CancelZonalShiftResponse> CancelZonalShiftAsync(CancelZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelZonalShiftResponseUnmarshaller.Instance; return InvokeAsync<CancelZonalShiftResponse>(request, options, cancellationToken); } #endregion #region GetManagedResource /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource service method.</param> /// /// <returns>The response from the GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> public virtual GetManagedResourceResponse GetManagedResource(GetManagedResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetManagedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetManagedResourceResponseUnmarshaller.Instance; return Invoke<GetManagedResourceResponse>(request, options); } /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource 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 GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> public virtual Task<GetManagedResourceResponse> GetManagedResourceAsync(GetManagedResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetManagedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetManagedResourceResponseUnmarshaller.Instance; return InvokeAsync<GetManagedResourceResponse>(request, options, cancellationToken); } #endregion #region ListManagedResources /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources service method.</param> /// /// <returns>The response from the ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> public virtual ListManagedResourcesResponse ListManagedResources(ListManagedResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedResourcesResponseUnmarshaller.Instance; return Invoke<ListManagedResourcesResponse>(request, options); } /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources 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 ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> public virtual Task<ListManagedResourcesResponse> ListManagedResourcesAsync(ListManagedResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedResourcesResponseUnmarshaller.Instance; return InvokeAsync<ListManagedResourcesResponse>(request, options, cancellationToken); } #endregion #region ListZonalShifts /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts service method.</param> /// /// <returns>The response from the ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> public virtual ListZonalShiftsResponse ListZonalShifts(ListZonalShiftsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListZonalShiftsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListZonalShiftsResponseUnmarshaller.Instance; return Invoke<ListZonalShiftsResponse>(request, options); } /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts 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 ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> public virtual Task<ListZonalShiftsResponse> ListZonalShiftsAsync(ListZonalShiftsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListZonalShiftsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListZonalShiftsResponseUnmarshaller.Instance; return InvokeAsync<ListZonalShiftsResponse>(request, options, cancellationToken); } #endregion #region StartZonalShift /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift service method.</param> /// /// <returns>The response from the StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> public virtual StartZonalShiftResponse StartZonalShift(StartZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = StartZonalShiftResponseUnmarshaller.Instance; return Invoke<StartZonalShiftResponse>(request, options); } /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift 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 StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> public virtual Task<StartZonalShiftResponse> StartZonalShiftAsync(StartZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = StartZonalShiftResponseUnmarshaller.Instance; return InvokeAsync<StartZonalShiftResponse>(request, options, cancellationToken); } #endregion #region UpdateZonalShift /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift service method.</param> /// /// <returns>The response from the UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> public virtual UpdateZonalShiftResponse UpdateZonalShift(UpdateZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateZonalShiftResponseUnmarshaller.Instance; return Invoke<UpdateZonalShiftResponse>(request, options); } /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift 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 UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> public virtual Task<UpdateZonalShiftResponse> UpdateZonalShiftAsync(UpdateZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateZonalShiftResponseUnmarshaller.Instance; return InvokeAsync<UpdateZonalShiftResponse>(request, options, cancellationToken); } #endregion } }
818
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.ARCZonalShift.Model; namespace Amazon.ARCZonalShift { /// <summary> /// Interface for accessing ARCZonalShift /// /// This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application /// Recovery Controller. This guide is for developers who need detailed information about /// zonal shift API actions, data types, and errors. /// /// /// <para> /// Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller /// and is subject to change. /// </para> /// /// <para> /// Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource /// away from an Availability Zone. Starting a zonal shift helps your application recover /// immediately, for example, from a developer's bad code deployment or from an AWS infrastructure /// failure in a single Availability Zone, reducing the impact and time lost from an issue /// in one zone. /// </para> /// /// <para> /// Supported AWS resources are automatically registered with Route 53 ARC. Resources /// that are registered for zonal shifts in Route 53 ARC are managed resources in Route /// 53 ARC. You can start a zonal shift for any managed resource in your account in a /// Region. At this time, you can only start a zonal shift for Network Load Balancers /// and Application Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// Zonal shifts are temporary. You must specify an expiration when you start a zonal /// shift, of up to three days initially. If you want to still keep traffic away from /// an Availability Zone, you can update the zonal shift and set a new expiration. You /// can also cancel a zonal shift, before it expires, for example, if you're ready to /// restore traffic to the Availability Zone. /// </para> /// /// <para> /// For more information about using zonal shift, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon /// Route 53 Application Recovery Controller Developer Guide</a>. /// </para> /// </summary> public partial interface IAmazonARCZonalShift : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IARCZonalShiftPaginatorFactory Paginators { get; } #region CancelZonalShift /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift service method.</param> /// /// <returns>The response from the CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> CancelZonalShiftResponse CancelZonalShift(CancelZonalShiftRequest request); /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift 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 CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> Task<CancelZonalShiftResponse> CancelZonalShiftAsync(CancelZonalShiftRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetManagedResource /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource service method.</param> /// /// <returns>The response from the GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> GetManagedResourceResponse GetManagedResource(GetManagedResourceRequest request); /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource 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 GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> Task<GetManagedResourceResponse> GetManagedResourceAsync(GetManagedResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListManagedResources /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources service method.</param> /// /// <returns>The response from the ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> ListManagedResourcesResponse ListManagedResources(ListManagedResourcesRequest request); /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources 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 ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> Task<ListManagedResourcesResponse> ListManagedResourcesAsync(ListManagedResourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListZonalShifts /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts service method.</param> /// /// <returns>The response from the ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> ListZonalShiftsResponse ListZonalShifts(ListZonalShiftsRequest request); /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts 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 ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> Task<ListZonalShiftsResponse> ListZonalShiftsAsync(ListZonalShiftsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartZonalShift /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift service method.</param> /// /// <returns>The response from the StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> StartZonalShiftResponse StartZonalShift(StartZonalShiftRequest request); /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift 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 StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> Task<StartZonalShiftResponse> StartZonalShiftAsync(StartZonalShiftRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateZonalShift /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift service method.</param> /// /// <returns>The response from the UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> UpdateZonalShiftResponse UpdateZonalShift(UpdateZonalShiftRequest request); /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift 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 UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> Task<UpdateZonalShiftResponse> UpdateZonalShiftAsync(UpdateZonalShiftRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
519
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.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.ARCZonalShift.Model; using Amazon.ARCZonalShift.Model.Internal.MarshallTransformations; using Amazon.ARCZonalShift.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ARCZonalShift { /// <summary> /// Implementation for accessing ARCZonalShift /// /// This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application /// Recovery Controller. This guide is for developers who need detailed information about /// zonal shift API actions, data types, and errors. /// /// /// <para> /// Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller /// and is subject to change. /// </para> /// /// <para> /// Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource /// away from an Availability Zone. Starting a zonal shift helps your application recover /// immediately, for example, from a developer's bad code deployment or from an AWS infrastructure /// failure in a single Availability Zone, reducing the impact and time lost from an issue /// in one zone. /// </para> /// /// <para> /// Supported AWS resources are automatically registered with Route 53 ARC. Resources /// that are registered for zonal shifts in Route 53 ARC are managed resources in Route /// 53 ARC. You can start a zonal shift for any managed resource in your account in a /// Region. At this time, you can only start a zonal shift for Network Load Balancers /// and Application Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// Zonal shifts are temporary. You must specify an expiration when you start a zonal /// shift, of up to three days initially. If you want to still keep traffic away from /// an Availability Zone, you can update the zonal shift and set a new expiration. You /// can also cancel a zonal shift, before it expires, for example, if you're ready to /// restore traffic to the Availability Zone. /// </para> /// /// <para> /// For more information about using zonal shift, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon /// Route 53 Application Recovery Controller Developer Guide</a>. /// </para> /// </summary> public partial class AmazonARCZonalShiftClient : AmazonServiceClient, IAmazonARCZonalShift { private static IServiceMetadata serviceMetadata = new AmazonARCZonalShiftMetadata(); #region Constructors /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(AmazonARCZonalShiftConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonARCZonalShiftClient(AWSCredentials credentials) : this(credentials, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonARCZonalShiftClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Credentials and an /// AmazonARCZonalShiftClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(AWSCredentials credentials, AmazonARCZonalShiftConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonARCZonalShiftConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Access Key ID, AWS Secret Key and an /// AmazonARCZonalShiftClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonARCZonalShiftConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonARCZonalShiftConfig()) { } /// <summary> /// Constructs AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonARCZonalShiftConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonARCZonalShiftClient with AWS Access Key ID, AWS Secret Key and an /// AmazonARCZonalShiftClient 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 AmazonARCZonalShiftClient Configuration Object</param> public AmazonARCZonalShiftClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonARCZonalShiftConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IARCZonalShiftPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IARCZonalShiftPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ARCZonalShiftPaginatorFactory(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 AmazonARCZonalShiftEndpointResolver()); } /// <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 CancelZonalShift internal virtual CancelZonalShiftResponse CancelZonalShift(CancelZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelZonalShiftResponseUnmarshaller.Instance; return Invoke<CancelZonalShiftResponse>(request, options); } /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift 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 CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> public virtual Task<CancelZonalShiftResponse> CancelZonalShiftAsync(CancelZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelZonalShiftResponseUnmarshaller.Instance; return InvokeAsync<CancelZonalShiftResponse>(request, options, cancellationToken); } #endregion #region GetManagedResource internal virtual GetManagedResourceResponse GetManagedResource(GetManagedResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetManagedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetManagedResourceResponseUnmarshaller.Instance; return Invoke<GetManagedResourceResponse>(request, options); } /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource 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 GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> public virtual Task<GetManagedResourceResponse> GetManagedResourceAsync(GetManagedResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetManagedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetManagedResourceResponseUnmarshaller.Instance; return InvokeAsync<GetManagedResourceResponse>(request, options, cancellationToken); } #endregion #region ListManagedResources internal virtual ListManagedResourcesResponse ListManagedResources(ListManagedResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedResourcesResponseUnmarshaller.Instance; return Invoke<ListManagedResourcesResponse>(request, options); } /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources 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 ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> public virtual Task<ListManagedResourcesResponse> ListManagedResourcesAsync(ListManagedResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedResourcesResponseUnmarshaller.Instance; return InvokeAsync<ListManagedResourcesResponse>(request, options, cancellationToken); } #endregion #region ListZonalShifts internal virtual ListZonalShiftsResponse ListZonalShifts(ListZonalShiftsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListZonalShiftsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListZonalShiftsResponseUnmarshaller.Instance; return Invoke<ListZonalShiftsResponse>(request, options); } /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts 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 ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> public virtual Task<ListZonalShiftsResponse> ListZonalShiftsAsync(ListZonalShiftsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListZonalShiftsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListZonalShiftsResponseUnmarshaller.Instance; return InvokeAsync<ListZonalShiftsResponse>(request, options, cancellationToken); } #endregion #region StartZonalShift internal virtual StartZonalShiftResponse StartZonalShift(StartZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = StartZonalShiftResponseUnmarshaller.Instance; return Invoke<StartZonalShiftResponse>(request, options); } /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift 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 StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> public virtual Task<StartZonalShiftResponse> StartZonalShiftAsync(StartZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = StartZonalShiftResponseUnmarshaller.Instance; return InvokeAsync<StartZonalShiftResponse>(request, options, cancellationToken); } #endregion #region UpdateZonalShift internal virtual UpdateZonalShiftResponse UpdateZonalShift(UpdateZonalShiftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateZonalShiftResponseUnmarshaller.Instance; return Invoke<UpdateZonalShiftResponse>(request, options); } /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift 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 UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> public virtual Task<UpdateZonalShiftResponse> UpdateZonalShiftAsync(UpdateZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateZonalShiftRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateZonalShiftResponseUnmarshaller.Instance; return InvokeAsync<UpdateZonalShiftResponse>(request, options, cancellationToken); } #endregion } }
646
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.ARCZonalShift.Model; namespace Amazon.ARCZonalShift { /// <summary> /// Interface for accessing ARCZonalShift /// /// This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application /// Recovery Controller. This guide is for developers who need detailed information about /// zonal shift API actions, data types, and errors. /// /// /// <para> /// Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller /// and is subject to change. /// </para> /// /// <para> /// Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource /// away from an Availability Zone. Starting a zonal shift helps your application recover /// immediately, for example, from a developer's bad code deployment or from an AWS infrastructure /// failure in a single Availability Zone, reducing the impact and time lost from an issue /// in one zone. /// </para> /// /// <para> /// Supported AWS resources are automatically registered with Route 53 ARC. Resources /// that are registered for zonal shifts in Route 53 ARC are managed resources in Route /// 53 ARC. You can start a zonal shift for any managed resource in your account in a /// Region. At this time, you can only start a zonal shift for Network Load Balancers /// and Application Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// Zonal shifts are temporary. You must specify an expiration when you start a zonal /// shift, of up to three days initially. If you want to still keep traffic away from /// an Availability Zone, you can update the zonal shift and set a new expiration. You /// can also cancel a zonal shift, before it expires, for example, if you're ready to /// restore traffic to the Availability Zone. /// </para> /// /// <para> /// For more information about using zonal shift, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon /// Route 53 Application Recovery Controller Developer Guide</a>. /// </para> /// </summary> public partial interface IAmazonARCZonalShift : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IARCZonalShiftPaginatorFactory Paginators { get; } #endif #region CancelZonalShift /// <summary> /// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've /// started for a resource in your AWS account in an AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelZonalShift 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 CancelZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/CancelZonalShift">REST API Reference for CancelZonalShift Operation</seealso> Task<CancelZonalShiftResponse> CancelZonalShiftAsync(CancelZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetManagedResource /// <summary> /// Get information about a resource that's been registered for zonal shifts with Amazon /// Route 53 Application Recovery Controller in this AWS Region. Resources that are registered /// for zonal shifts are managed resources in Route 53 ARC. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetManagedResource 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 GetManagedResource service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/GetManagedResource">REST API Reference for GetManagedResource Operation</seealso> Task<GetManagedResourceResponse> GetManagedResourceAsync(GetManagedResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListManagedResources /// <summary> /// Lists all the resources in your AWS account in this AWS Region that are managed for /// zonal shifts in Amazon Route 53 Application Recovery Controller, and information about /// them. The information includes their Amazon Resource Names (ARNs), the Availability /// Zones the resources are deployed in, and the resource name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedResources 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 ListManagedResources service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListManagedResources">REST API Reference for ListManagedResources Operation</seealso> Task<ListManagedResourcesResponse> ListManagedResourcesAsync(ListManagedResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListZonalShifts /// <summary> /// Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller /// in your AWS account in this AWS Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListZonalShifts 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 ListZonalShifts service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/ListZonalShifts">REST API Reference for ListZonalShifts Operation</seealso> Task<ListZonalShiftsResponse> ListZonalShiftsAsync(ListZonalShiftsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartZonalShift /// <summary> /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// <para> /// At this time, you can only start a zonal shift for Network Load Balancers and Application /// Load Balancers with cross-zone load balancing turned off. /// </para> /// /// <para> /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal /// shift</a> in the Amazon Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartZonalShift 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 StartZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/StartZonalShift">REST API Reference for StartZonalShift Operation</seealso> Task<StartZonalShiftResponse> StartZonalShiftAsync(StartZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateZonalShift /// <summary> /// Update an active zonal shift in Amazon Route 53 Application Recovery Controller in /// your AWS account. You can update a zonal shift to set a new expiration, or edit or /// replace the comment for the zonal shift. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateZonalShift 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 UpdateZonalShift service method, as returned by ARCZonalShift.</returns> /// <exception cref="Amazon.ARCZonalShift.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ConflictException"> /// The request could not be processed because of conflict in the current state of the /// resource. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.InternalServerException"> /// There was an internal server error. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ResourceNotFoundException"> /// The input requested a resource that was not found. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.ARCZonalShift.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalShift">REST API Reference for UpdateZonalShift Operation</seealso> Task<UpdateZonalShiftResponse> UpdateZonalShiftAsync(UpdateZonalShiftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
325