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 athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnprocessedNamedQueryId Object /// </summary> public class UnprocessedNamedQueryIdUnmarshaller : IUnmarshaller<UnprocessedNamedQueryId, XmlUnmarshallerContext>, IUnmarshaller<UnprocessedNamedQueryId, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UnprocessedNamedQueryId IUnmarshaller<UnprocessedNamedQueryId, 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 UnprocessedNamedQueryId Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UnprocessedNamedQueryId unmarshalledObject = new UnprocessedNamedQueryId(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ErrorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NamedQueryId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NamedQueryId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UnprocessedNamedQueryIdUnmarshaller _instance = new UnprocessedNamedQueryIdUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UnprocessedNamedQueryIdUnmarshaller 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 athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnprocessedPreparedStatementName Object /// </summary> public class UnprocessedPreparedStatementNameUnmarshaller : IUnmarshaller<UnprocessedPreparedStatementName, XmlUnmarshallerContext>, IUnmarshaller<UnprocessedPreparedStatementName, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UnprocessedPreparedStatementName IUnmarshaller<UnprocessedPreparedStatementName, 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 UnprocessedPreparedStatementName Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UnprocessedPreparedStatementName unmarshalledObject = new UnprocessedPreparedStatementName(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ErrorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatementName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatementName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UnprocessedPreparedStatementNameUnmarshaller _instance = new UnprocessedPreparedStatementNameUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UnprocessedPreparedStatementNameUnmarshaller 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 athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnprocessedQueryExecutionId Object /// </summary> public class UnprocessedQueryExecutionIdUnmarshaller : IUnmarshaller<UnprocessedQueryExecutionId, XmlUnmarshallerContext>, IUnmarshaller<UnprocessedQueryExecutionId, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UnprocessedQueryExecutionId IUnmarshaller<UnprocessedQueryExecutionId, 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 UnprocessedQueryExecutionId Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UnprocessedQueryExecutionId unmarshalledObject = new UnprocessedQueryExecutionId(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ErrorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("QueryExecutionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.QueryExecutionId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UnprocessedQueryExecutionIdUnmarshaller _instance = new UnprocessedQueryExecutionIdUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UnprocessedQueryExecutionIdUnmarshaller 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 athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.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.Athena"); string target = "AmazonAthena.UntagResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceARN()) { context.Writer.WritePropertyName("ResourceARN"); context.Writer.Write(publicRequest.ResourceARN); } if(publicRequest.IsSetTagKeys()) { context.Writer.WritePropertyName("TagKeys"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys) { context.Writer.Write(publicRequestTagKeysListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller(); internal static UntagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceRequestMarshaller Instance { get { return _instance; } } } }
114
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(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; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// UpdateCapacityReservation Request Marshaller /// </summary> public class UpdateCapacityReservationRequestMarshaller : IMarshaller<IRequest, UpdateCapacityReservationRequest> , 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((UpdateCapacityReservationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateCapacityReservationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Athena"); string target = "AmazonAthena.UpdateCapacityReservation"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetTargetDpus()) { context.Writer.WritePropertyName("TargetDpus"); context.Writer.Write(publicRequest.TargetDpus); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateCapacityReservationRequestMarshaller _instance = new UpdateCapacityReservationRequestMarshaller(); internal static UpdateCapacityReservationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateCapacityReservationRequestMarshaller Instance { get { return _instance; } } } }
109
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateCapacityReservation operation /// </summary> public class UpdateCapacityReservationResponseUnmarshaller : 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) { UpdateCapacityReservationResponse response = new UpdateCapacityReservationResponse(); 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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateCapacityReservationResponseUnmarshaller _instance = new UpdateCapacityReservationResponseUnmarshaller(); internal static UpdateCapacityReservationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateCapacityReservationResponseUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// UpdateDataCatalog Request Marshaller /// </summary> public class UpdateDataCatalogRequestMarshaller : IMarshaller<IRequest, UpdateDataCatalogRequest> , 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((UpdateDataCatalogRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateDataCatalogRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Athena"); string target = "AmazonAthena.UpdateDataCatalog"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetParameters()) { context.Writer.WritePropertyName("Parameters"); context.Writer.WriteObjectStart(); foreach (var publicRequestParametersKvp in publicRequest.Parameters) { context.Writer.WritePropertyName(publicRequestParametersKvp.Key); var publicRequestParametersValue = publicRequestParametersKvp.Value; context.Writer.Write(publicRequestParametersValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.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 UpdateDataCatalogRequestMarshaller _instance = new UpdateDataCatalogRequestMarshaller(); internal static UpdateDataCatalogRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDataCatalogRequestMarshaller Instance { get { return _instance; } } } }
129
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateDataCatalog operation /// </summary> public class UpdateDataCatalogResponseUnmarshaller : 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) { UpdateDataCatalogResponse response = new UpdateDataCatalogResponse(); 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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateDataCatalogResponseUnmarshaller _instance = new UpdateDataCatalogResponseUnmarshaller(); internal static UpdateDataCatalogResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDataCatalogResponseUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// UpdateNamedQuery Request Marshaller /// </summary> public class UpdateNamedQueryRequestMarshaller : IMarshaller<IRequest, UpdateNamedQueryRequest> , 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((UpdateNamedQueryRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateNamedQueryRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Athena"); string target = "AmazonAthena.UpdateNamedQuery"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetNamedQueryId()) { context.Writer.WritePropertyName("NamedQueryId"); context.Writer.Write(publicRequest.NamedQueryId); } if(publicRequest.IsSetQueryString()) { context.Writer.WritePropertyName("QueryString"); context.Writer.Write(publicRequest.QueryString); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateNamedQueryRequestMarshaller _instance = new UpdateNamedQueryRequestMarshaller(); internal static UpdateNamedQueryRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNamedQueryRequestMarshaller Instance { get { return _instance; } } } }
121
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateNamedQuery operation /// </summary> public class UpdateNamedQueryResponseUnmarshaller : 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) { UpdateNamedQueryResponse response = new UpdateNamedQueryResponse(); 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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateNamedQueryResponseUnmarshaller _instance = new UpdateNamedQueryResponseUnmarshaller(); internal static UpdateNamedQueryResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNamedQueryResponseUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// UpdateNotebookMetadata Request Marshaller /// </summary> public class UpdateNotebookMetadataRequestMarshaller : IMarshaller<IRequest, UpdateNotebookMetadataRequest> , 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((UpdateNotebookMetadataRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateNotebookMetadataRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Athena"); string target = "AmazonAthena.UpdateNotebookMetadata"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientRequestToken()) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(publicRequest.ClientRequestToken); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetNotebookId()) { context.Writer.WritePropertyName("NotebookId"); context.Writer.Write(publicRequest.NotebookId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateNotebookMetadataRequestMarshaller _instance = new UpdateNotebookMetadataRequestMarshaller(); internal static UpdateNotebookMetadataRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNotebookMetadataRequestMarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateNotebookMetadata operation /// </summary> public class UpdateNotebookMetadataResponseUnmarshaller : 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) { UpdateNotebookMetadataResponse response = new UpdateNotebookMetadataResponse(); 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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateNotebookMetadataResponseUnmarshaller _instance = new UpdateNotebookMetadataResponseUnmarshaller(); internal static UpdateNotebookMetadataResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNotebookMetadataResponseUnmarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// UpdateNotebook Request Marshaller /// </summary> public class UpdateNotebookRequestMarshaller : IMarshaller<IRequest, UpdateNotebookRequest> , 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((UpdateNotebookRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateNotebookRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Athena"); string target = "AmazonAthena.UpdateNotebook"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientRequestToken()) { context.Writer.WritePropertyName("ClientRequestToken"); context.Writer.Write(publicRequest.ClientRequestToken); } if(publicRequest.IsSetNotebookId()) { context.Writer.WritePropertyName("NotebookId"); context.Writer.Write(publicRequest.NotebookId); } if(publicRequest.IsSetPayload()) { context.Writer.WritePropertyName("Payload"); context.Writer.Write(publicRequest.Payload); } if(publicRequest.IsSetSessionId()) { context.Writer.WritePropertyName("SessionId"); context.Writer.Write(publicRequest.SessionId); } 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 UpdateNotebookRequestMarshaller _instance = new UpdateNotebookRequestMarshaller(); internal static UpdateNotebookRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNotebookRequestMarshaller Instance { get { return _instance; } } } }
127
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateNotebook operation /// </summary> public class UpdateNotebookResponseUnmarshaller : 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) { UpdateNotebookResponse response = new UpdateNotebookResponse(); 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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException")) { return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateNotebookResponseUnmarshaller _instance = new UpdateNotebookResponseUnmarshaller(); internal static UpdateNotebookResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateNotebookResponseUnmarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// UpdatePreparedStatement Request Marshaller /// </summary> public class UpdatePreparedStatementRequestMarshaller : IMarshaller<IRequest, UpdatePreparedStatementRequest> , 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((UpdatePreparedStatementRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdatePreparedStatementRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Athena"); string target = "AmazonAthena.UpdatePreparedStatement"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetQueryStatement()) { context.Writer.WritePropertyName("QueryStatement"); context.Writer.Write(publicRequest.QueryStatement); } if(publicRequest.IsSetStatementName()) { context.Writer.WritePropertyName("StatementName"); context.Writer.Write(publicRequest.StatementName); } if(publicRequest.IsSetWorkGroup()) { context.Writer.WritePropertyName("WorkGroup"); context.Writer.Write(publicRequest.WorkGroup); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdatePreparedStatementRequestMarshaller _instance = new UpdatePreparedStatementRequestMarshaller(); internal static UpdatePreparedStatementRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdatePreparedStatementRequestMarshaller Instance { get { return _instance; } } } }
121
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdatePreparedStatement operation /// </summary> public class UpdatePreparedStatementResponseUnmarshaller : 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) { UpdatePreparedStatementResponse response = new UpdatePreparedStatementResponse(); 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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdatePreparedStatementResponseUnmarshaller _instance = new UpdatePreparedStatementResponseUnmarshaller(); internal static UpdatePreparedStatementResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdatePreparedStatementResponseUnmarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// UpdateWorkGroup Request Marshaller /// </summary> public class UpdateWorkGroupRequestMarshaller : IMarshaller<IRequest, UpdateWorkGroupRequest> , 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((UpdateWorkGroupRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateWorkGroupRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Athena"); string target = "AmazonAthena.UpdateWorkGroup"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-05-18"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConfigurationUpdates()) { context.Writer.WritePropertyName("ConfigurationUpdates"); context.Writer.WriteObjectStart(); var marshaller = WorkGroupConfigurationUpdatesMarshaller.Instance; marshaller.Marshall(publicRequest.ConfigurationUpdates, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(publicRequest.State); } if(publicRequest.IsSetWorkGroup()) { context.Writer.WritePropertyName("WorkGroup"); context.Writer.Write(publicRequest.WorkGroup); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateWorkGroupRequestMarshaller _instance = new UpdateWorkGroupRequestMarshaller(); internal static UpdateWorkGroupRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateWorkGroupRequestMarshaller 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 athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateWorkGroup operation /// </summary> public class UpdateWorkGroupResponseUnmarshaller : 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) { UpdateWorkGroupResponse response = new UpdateWorkGroupResponse(); 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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAthenaException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateWorkGroupResponseUnmarshaller _instance = new UpdateWorkGroupResponseUnmarshaller(); internal static UpdateWorkGroupResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateWorkGroupResponseUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// WorkGroupConfiguration Marshaller /// </summary> public class WorkGroupConfigurationMarshaller : IRequestMarshaller<WorkGroupConfiguration, 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(WorkGroupConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAdditionalConfiguration()) { context.Writer.WritePropertyName("AdditionalConfiguration"); context.Writer.Write(requestObject.AdditionalConfiguration); } if(requestObject.IsSetBytesScannedCutoffPerQuery()) { context.Writer.WritePropertyName("BytesScannedCutoffPerQuery"); context.Writer.Write(requestObject.BytesScannedCutoffPerQuery); } if(requestObject.IsSetCustomerContentEncryptionConfiguration()) { context.Writer.WritePropertyName("CustomerContentEncryptionConfiguration"); context.Writer.WriteObjectStart(); var marshaller = CustomerContentEncryptionConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.CustomerContentEncryptionConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetEnableMinimumEncryptionConfiguration()) { context.Writer.WritePropertyName("EnableMinimumEncryptionConfiguration"); context.Writer.Write(requestObject.EnableMinimumEncryptionConfiguration); } if(requestObject.IsSetEnforceWorkGroupConfiguration()) { context.Writer.WritePropertyName("EnforceWorkGroupConfiguration"); context.Writer.Write(requestObject.EnforceWorkGroupConfiguration); } if(requestObject.IsSetEngineVersion()) { context.Writer.WritePropertyName("EngineVersion"); context.Writer.WriteObjectStart(); var marshaller = EngineVersionMarshaller.Instance; marshaller.Marshall(requestObject.EngineVersion, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetExecutionRole()) { context.Writer.WritePropertyName("ExecutionRole"); context.Writer.Write(requestObject.ExecutionRole); } if(requestObject.IsSetPublishCloudWatchMetricsEnabled()) { context.Writer.WritePropertyName("PublishCloudWatchMetricsEnabled"); context.Writer.Write(requestObject.PublishCloudWatchMetricsEnabled); } if(requestObject.IsSetRequesterPaysEnabled()) { context.Writer.WritePropertyName("RequesterPaysEnabled"); context.Writer.Write(requestObject.RequesterPaysEnabled); } if(requestObject.IsSetResultConfiguration()) { context.Writer.WritePropertyName("ResultConfiguration"); context.Writer.WriteObjectStart(); var marshaller = ResultConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.ResultConfiguration, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static WorkGroupConfigurationMarshaller Instance = new WorkGroupConfigurationMarshaller(); } }
131
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for WorkGroupConfiguration Object /// </summary> public class WorkGroupConfigurationUnmarshaller : IUnmarshaller<WorkGroupConfiguration, XmlUnmarshallerContext>, IUnmarshaller<WorkGroupConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> WorkGroupConfiguration IUnmarshaller<WorkGroupConfiguration, 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 WorkGroupConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; WorkGroupConfiguration unmarshalledObject = new WorkGroupConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AdditionalConfiguration", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AdditionalConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BytesScannedCutoffPerQuery", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.BytesScannedCutoffPerQuery = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomerContentEncryptionConfiguration", targetDepth)) { var unmarshaller = CustomerContentEncryptionConfigurationUnmarshaller.Instance; unmarshalledObject.CustomerContentEncryptionConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnableMinimumEncryptionConfiguration", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnableMinimumEncryptionConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnforceWorkGroupConfiguration", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnforceWorkGroupConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EngineVersion", targetDepth)) { var unmarshaller = EngineVersionUnmarshaller.Instance; unmarshalledObject.EngineVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExecutionRole", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExecutionRole = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublishCloudWatchMetricsEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.PublishCloudWatchMetricsEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequesterPaysEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.RequesterPaysEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResultConfiguration", targetDepth)) { var unmarshaller = ResultConfigurationUnmarshaller.Instance; unmarshalledObject.ResultConfiguration = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static WorkGroupConfigurationUnmarshaller _instance = new WorkGroupConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static WorkGroupConfigurationUnmarshaller Instance { get { return _instance; } } } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// WorkGroupConfigurationUpdates Marshaller /// </summary> public class WorkGroupConfigurationUpdatesMarshaller : IRequestMarshaller<WorkGroupConfigurationUpdates, 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(WorkGroupConfigurationUpdates requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAdditionalConfiguration()) { context.Writer.WritePropertyName("AdditionalConfiguration"); context.Writer.Write(requestObject.AdditionalConfiguration); } if(requestObject.IsSetBytesScannedCutoffPerQuery()) { context.Writer.WritePropertyName("BytesScannedCutoffPerQuery"); context.Writer.Write(requestObject.BytesScannedCutoffPerQuery); } if(requestObject.IsSetCustomerContentEncryptionConfiguration()) { context.Writer.WritePropertyName("CustomerContentEncryptionConfiguration"); context.Writer.WriteObjectStart(); var marshaller = CustomerContentEncryptionConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.CustomerContentEncryptionConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetEnableMinimumEncryptionConfiguration()) { context.Writer.WritePropertyName("EnableMinimumEncryptionConfiguration"); context.Writer.Write(requestObject.EnableMinimumEncryptionConfiguration); } if(requestObject.IsSetEnforceWorkGroupConfiguration()) { context.Writer.WritePropertyName("EnforceWorkGroupConfiguration"); context.Writer.Write(requestObject.EnforceWorkGroupConfiguration); } if(requestObject.IsSetEngineVersion()) { context.Writer.WritePropertyName("EngineVersion"); context.Writer.WriteObjectStart(); var marshaller = EngineVersionMarshaller.Instance; marshaller.Marshall(requestObject.EngineVersion, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetExecutionRole()) { context.Writer.WritePropertyName("ExecutionRole"); context.Writer.Write(requestObject.ExecutionRole); } if(requestObject.IsSetPublishCloudWatchMetricsEnabled()) { context.Writer.WritePropertyName("PublishCloudWatchMetricsEnabled"); context.Writer.Write(requestObject.PublishCloudWatchMetricsEnabled); } if(requestObject.IsSetRemoveBytesScannedCutoffPerQuery()) { context.Writer.WritePropertyName("RemoveBytesScannedCutoffPerQuery"); context.Writer.Write(requestObject.RemoveBytesScannedCutoffPerQuery); } if(requestObject.IsSetRemoveCustomerContentEncryptionConfiguration()) { context.Writer.WritePropertyName("RemoveCustomerContentEncryptionConfiguration"); context.Writer.Write(requestObject.RemoveCustomerContentEncryptionConfiguration); } if(requestObject.IsSetRequesterPaysEnabled()) { context.Writer.WritePropertyName("RequesterPaysEnabled"); context.Writer.Write(requestObject.RequesterPaysEnabled); } if(requestObject.IsSetResultConfigurationUpdates()) { context.Writer.WritePropertyName("ResultConfigurationUpdates"); context.Writer.WriteObjectStart(); var marshaller = ResultConfigurationUpdatesMarshaller.Instance; marshaller.Marshall(requestObject.ResultConfigurationUpdates, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static WorkGroupConfigurationUpdatesMarshaller Instance = new WorkGroupConfigurationUpdatesMarshaller(); } }
143
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for WorkGroupSummary Object /// </summary> public class WorkGroupSummaryUnmarshaller : IUnmarshaller<WorkGroupSummary, XmlUnmarshallerContext>, IUnmarshaller<WorkGroupSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> WorkGroupSummary IUnmarshaller<WorkGroupSummary, 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 WorkGroupSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; WorkGroupSummary unmarshalledObject = new WorkGroupSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EngineVersion", targetDepth)) { var unmarshaller = EngineVersionUnmarshaller.Instance; unmarshalledObject.EngineVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static WorkGroupSummaryUnmarshaller _instance = new WorkGroupSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static WorkGroupSummaryUnmarshaller 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 athena-2017-05-18.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.Athena.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Athena.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for WorkGroup Object /// </summary> public class WorkGroupUnmarshaller : IUnmarshaller<WorkGroup, XmlUnmarshallerContext>, IUnmarshaller<WorkGroup, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> WorkGroup IUnmarshaller<WorkGroup, 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 WorkGroup Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; WorkGroup unmarshalledObject = new WorkGroup(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Configuration", targetDepth)) { var unmarshaller = WorkGroupConfigurationUnmarshaller.Instance; unmarshalledObject.Configuration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static WorkGroupUnmarshaller _instance = new WorkGroupUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static WorkGroupUnmarshaller 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 athena-2017-05-18.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.Athena.Model { /// <summary> /// Paginators for the Athena service ///</summary> public class AthenaPaginatorFactory : IAthenaPaginatorFactory { private readonly IAmazonAthena client; internal AthenaPaginatorFactory(IAmazonAthena client) { this.client = client; } /// <summary> /// Paginator for GetQueryResults operation ///</summary> public IGetQueryResultsPaginator GetQueryResults(GetQueryResultsRequest request) { return new GetQueryResultsPaginator(this.client, request); } /// <summary> /// Paginator for ListApplicationDPUSizes operation ///</summary> public IListApplicationDPUSizesPaginator ListApplicationDPUSizes(ListApplicationDPUSizesRequest request) { return new ListApplicationDPUSizesPaginator(this.client, request); } /// <summary> /// Paginator for ListCalculationExecutions operation ///</summary> public IListCalculationExecutionsPaginator ListCalculationExecutions(ListCalculationExecutionsRequest request) { return new ListCalculationExecutionsPaginator(this.client, request); } /// <summary> /// Paginator for ListCapacityReservations operation ///</summary> public IListCapacityReservationsPaginator ListCapacityReservations(ListCapacityReservationsRequest request) { return new ListCapacityReservationsPaginator(this.client, request); } /// <summary> /// Paginator for ListDatabases operation ///</summary> public IListDatabasesPaginator ListDatabases(ListDatabasesRequest request) { return new ListDatabasesPaginator(this.client, request); } /// <summary> /// Paginator for ListDataCatalogs operation ///</summary> public IListDataCatalogsPaginator ListDataCatalogs(ListDataCatalogsRequest request) { return new ListDataCatalogsPaginator(this.client, request); } /// <summary> /// Paginator for ListEngineVersions operation ///</summary> public IListEngineVersionsPaginator ListEngineVersions(ListEngineVersionsRequest request) { return new ListEngineVersionsPaginator(this.client, request); } /// <summary> /// Paginator for ListExecutors operation ///</summary> public IListExecutorsPaginator ListExecutors(ListExecutorsRequest request) { return new ListExecutorsPaginator(this.client, request); } /// <summary> /// Paginator for ListNamedQueries operation ///</summary> public IListNamedQueriesPaginator ListNamedQueries(ListNamedQueriesRequest request) { return new ListNamedQueriesPaginator(this.client, request); } /// <summary> /// Paginator for ListPreparedStatements operation ///</summary> public IListPreparedStatementsPaginator ListPreparedStatements(ListPreparedStatementsRequest request) { return new ListPreparedStatementsPaginator(this.client, request); } /// <summary> /// Paginator for ListQueryExecutions operation ///</summary> public IListQueryExecutionsPaginator ListQueryExecutions(ListQueryExecutionsRequest request) { return new ListQueryExecutionsPaginator(this.client, request); } /// <summary> /// Paginator for ListSessions operation ///</summary> public IListSessionsPaginator ListSessions(ListSessionsRequest request) { return new ListSessionsPaginator(this.client, request); } /// <summary> /// Paginator for ListTableMetadata operation ///</summary> public IListTableMetadataPaginator ListTableMetadata(ListTableMetadataRequest request) { return new ListTableMetadataPaginator(this.client, request); } /// <summary> /// Paginator for ListTagsForResource operation ///</summary> public IListTagsForResourcePaginator ListTagsForResource(ListTagsForResourceRequest request) { return new ListTagsForResourcePaginator(this.client, request); } /// <summary> /// Paginator for ListWorkGroups operation ///</summary> public IListWorkGroupsPaginator ListWorkGroups(ListWorkGroupsRequest request) { return new ListWorkGroupsPaginator(this.client, request); } } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for GetQueryResults paginators. /// </summary> internal sealed partial class GetQueryResultsPaginator : IPaginator<GetQueryResultsResponse>, IGetQueryResultsPaginator { private readonly IAmazonAthena _client; private readonly GetQueryResultsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<GetQueryResultsResponse> Responses => new PaginatedResponse<GetQueryResultsResponse>(this); internal GetQueryResultsPaginator(IAmazonAthena client, GetQueryResultsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<GetQueryResultsResponse> IPaginator<GetQueryResultsResponse>.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; GetQueryResultsResponse response; do { _request.NextToken = nextToken; response = _client.GetQueryResults(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<GetQueryResultsResponse> IPaginator<GetQueryResultsResponse>.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; GetQueryResultsResponse response; do { _request.NextToken = nextToken; response = await _client.GetQueryResultsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ namespace Amazon.Athena.Model { /// <summary> /// Paginators for the Athena service ///</summary> public interface IAthenaPaginatorFactory { /// <summary> /// Paginator for GetQueryResults operation ///</summary> IGetQueryResultsPaginator GetQueryResults(GetQueryResultsRequest request); /// <summary> /// Paginator for ListApplicationDPUSizes operation ///</summary> IListApplicationDPUSizesPaginator ListApplicationDPUSizes(ListApplicationDPUSizesRequest request); /// <summary> /// Paginator for ListCalculationExecutions operation ///</summary> IListCalculationExecutionsPaginator ListCalculationExecutions(ListCalculationExecutionsRequest request); /// <summary> /// Paginator for ListCapacityReservations operation ///</summary> IListCapacityReservationsPaginator ListCapacityReservations(ListCapacityReservationsRequest request); /// <summary> /// Paginator for ListDatabases operation ///</summary> IListDatabasesPaginator ListDatabases(ListDatabasesRequest request); /// <summary> /// Paginator for ListDataCatalogs operation ///</summary> IListDataCatalogsPaginator ListDataCatalogs(ListDataCatalogsRequest request); /// <summary> /// Paginator for ListEngineVersions operation ///</summary> IListEngineVersionsPaginator ListEngineVersions(ListEngineVersionsRequest request); /// <summary> /// Paginator for ListExecutors operation ///</summary> IListExecutorsPaginator ListExecutors(ListExecutorsRequest request); /// <summary> /// Paginator for ListNamedQueries operation ///</summary> IListNamedQueriesPaginator ListNamedQueries(ListNamedQueriesRequest request); /// <summary> /// Paginator for ListPreparedStatements operation ///</summary> IListPreparedStatementsPaginator ListPreparedStatements(ListPreparedStatementsRequest request); /// <summary> /// Paginator for ListQueryExecutions operation ///</summary> IListQueryExecutionsPaginator ListQueryExecutions(ListQueryExecutionsRequest request); /// <summary> /// Paginator for ListSessions operation ///</summary> IListSessionsPaginator ListSessions(ListSessionsRequest request); /// <summary> /// Paginator for ListTableMetadata operation ///</summary> IListTableMetadataPaginator ListTableMetadata(ListTableMetadataRequest request); /// <summary> /// Paginator for ListTagsForResource operation ///</summary> IListTagsForResourcePaginator ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Paginator for ListWorkGroups operation ///</summary> IListWorkGroupsPaginator ListWorkGroups(ListWorkGroupsRequest request); } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the GetQueryResults operation ///</summary> public interface IGetQueryResultsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<GetQueryResultsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListApplicationDPUSizes operation ///</summary> public interface IListApplicationDPUSizesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListApplicationDPUSizesResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListCalculationExecutions operation ///</summary> public interface IListCalculationExecutionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListCalculationExecutionsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListCapacityReservations operation ///</summary> public interface IListCapacityReservationsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListCapacityReservationsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListDatabases operation ///</summary> public interface IListDatabasesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListDatabasesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the DatabaseList /// </summary> IPaginatedEnumerable<Database> DatabaseList { 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 athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListDataCatalogs operation ///</summary> public interface IListDataCatalogsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListDataCatalogsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the DataCatalogsSummary /// </summary> IPaginatedEnumerable<DataCatalogSummary> DataCatalogsSummary { 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 athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListEngineVersions operation ///</summary> public interface IListEngineVersionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListEngineVersionsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListExecutors operation ///</summary> public interface IListExecutorsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListExecutorsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListNamedQueries operation ///</summary> public interface IListNamedQueriesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListNamedQueriesResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListPreparedStatements operation ///</summary> public interface IListPreparedStatementsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListPreparedStatementsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListQueryExecutions operation ///</summary> public interface IListQueryExecutionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListQueryExecutionsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListSessions operation ///</summary> public interface IListSessionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListSessionsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListTableMetadata operation ///</summary> public interface IListTableMetadataPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTableMetadataResponse> Responses { get; } /// <summary> /// Enumerable containing all of the TableMetadataList /// </summary> IPaginatedEnumerable<TableMetadata> TableMetadataList { 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 athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListTagsForResource operation ///</summary> public interface IListTagsForResourcePaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTagsForResourceResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Tags /// </summary> IPaginatedEnumerable<Tag> Tags { 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 athena-2017-05-18.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Athena.Model { /// <summary> /// Paginator for the ListWorkGroups operation ///</summary> public interface IListWorkGroupsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListWorkGroupsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListApplicationDPUSizes paginators. /// </summary> internal sealed partial class ListApplicationDPUSizesPaginator : IPaginator<ListApplicationDPUSizesResponse>, IListApplicationDPUSizesPaginator { private readonly IAmazonAthena _client; private readonly ListApplicationDPUSizesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListApplicationDPUSizesResponse> Responses => new PaginatedResponse<ListApplicationDPUSizesResponse>(this); internal ListApplicationDPUSizesPaginator(IAmazonAthena client, ListApplicationDPUSizesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListApplicationDPUSizesResponse> IPaginator<ListApplicationDPUSizesResponse>.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; ListApplicationDPUSizesResponse response; do { _request.NextToken = nextToken; response = _client.ListApplicationDPUSizes(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListApplicationDPUSizesResponse> IPaginator<ListApplicationDPUSizesResponse>.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; ListApplicationDPUSizesResponse response; do { _request.NextToken = nextToken; response = await _client.ListApplicationDPUSizesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListCalculationExecutions paginators. /// </summary> internal sealed partial class ListCalculationExecutionsPaginator : IPaginator<ListCalculationExecutionsResponse>, IListCalculationExecutionsPaginator { private readonly IAmazonAthena _client; private readonly ListCalculationExecutionsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListCalculationExecutionsResponse> Responses => new PaginatedResponse<ListCalculationExecutionsResponse>(this); internal ListCalculationExecutionsPaginator(IAmazonAthena client, ListCalculationExecutionsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListCalculationExecutionsResponse> IPaginator<ListCalculationExecutionsResponse>.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; ListCalculationExecutionsResponse response; do { _request.NextToken = nextToken; response = _client.ListCalculationExecutions(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListCalculationExecutionsResponse> IPaginator<ListCalculationExecutionsResponse>.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; ListCalculationExecutionsResponse response; do { _request.NextToken = nextToken; response = await _client.ListCalculationExecutionsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListCapacityReservations paginators. /// </summary> internal sealed partial class ListCapacityReservationsPaginator : IPaginator<ListCapacityReservationsResponse>, IListCapacityReservationsPaginator { private readonly IAmazonAthena _client; private readonly ListCapacityReservationsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListCapacityReservationsResponse> Responses => new PaginatedResponse<ListCapacityReservationsResponse>(this); internal ListCapacityReservationsPaginator(IAmazonAthena client, ListCapacityReservationsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListCapacityReservationsResponse> IPaginator<ListCapacityReservationsResponse>.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; ListCapacityReservationsResponse response; do { _request.NextToken = nextToken; response = _client.ListCapacityReservations(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListCapacityReservationsResponse> IPaginator<ListCapacityReservationsResponse>.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; ListCapacityReservationsResponse response; do { _request.NextToken = nextToken; response = await _client.ListCapacityReservationsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListDatabases paginators. /// </summary> internal sealed partial class ListDatabasesPaginator : IPaginator<ListDatabasesResponse>, IListDatabasesPaginator { private readonly IAmazonAthena _client; private readonly ListDatabasesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListDatabasesResponse> Responses => new PaginatedResponse<ListDatabasesResponse>(this); /// <summary> /// Enumerable containing all of the DatabaseList /// </summary> public IPaginatedEnumerable<Database> DatabaseList => new PaginatedResultKeyResponse<ListDatabasesResponse, Database>(this, (i) => i.DatabaseList); internal ListDatabasesPaginator(IAmazonAthena client, ListDatabasesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListDatabasesResponse> IPaginator<ListDatabasesResponse>.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; ListDatabasesResponse response; do { _request.NextToken = nextToken; response = _client.ListDatabases(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListDatabasesResponse> IPaginator<ListDatabasesResponse>.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; ListDatabasesResponse response; do { _request.NextToken = nextToken; response = await _client.ListDatabasesAsync(_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 athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListDataCatalogs paginators. /// </summary> internal sealed partial class ListDataCatalogsPaginator : IPaginator<ListDataCatalogsResponse>, IListDataCatalogsPaginator { private readonly IAmazonAthena _client; private readonly ListDataCatalogsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListDataCatalogsResponse> Responses => new PaginatedResponse<ListDataCatalogsResponse>(this); /// <summary> /// Enumerable containing all of the DataCatalogsSummary /// </summary> public IPaginatedEnumerable<DataCatalogSummary> DataCatalogsSummary => new PaginatedResultKeyResponse<ListDataCatalogsResponse, DataCatalogSummary>(this, (i) => i.DataCatalogsSummary); internal ListDataCatalogsPaginator(IAmazonAthena client, ListDataCatalogsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListDataCatalogsResponse> IPaginator<ListDataCatalogsResponse>.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; ListDataCatalogsResponse response; do { _request.NextToken = nextToken; response = _client.ListDataCatalogs(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListDataCatalogsResponse> IPaginator<ListDataCatalogsResponse>.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; ListDataCatalogsResponse response; do { _request.NextToken = nextToken; response = await _client.ListDataCatalogsAsync(_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 athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListEngineVersions paginators. /// </summary> internal sealed partial class ListEngineVersionsPaginator : IPaginator<ListEngineVersionsResponse>, IListEngineVersionsPaginator { private readonly IAmazonAthena _client; private readonly ListEngineVersionsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListEngineVersionsResponse> Responses => new PaginatedResponse<ListEngineVersionsResponse>(this); internal ListEngineVersionsPaginator(IAmazonAthena client, ListEngineVersionsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListEngineVersionsResponse> IPaginator<ListEngineVersionsResponse>.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; ListEngineVersionsResponse response; do { _request.NextToken = nextToken; response = _client.ListEngineVersions(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListEngineVersionsResponse> IPaginator<ListEngineVersionsResponse>.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; ListEngineVersionsResponse response; do { _request.NextToken = nextToken; response = await _client.ListEngineVersionsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListExecutors paginators. /// </summary> internal sealed partial class ListExecutorsPaginator : IPaginator<ListExecutorsResponse>, IListExecutorsPaginator { private readonly IAmazonAthena _client; private readonly ListExecutorsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListExecutorsResponse> Responses => new PaginatedResponse<ListExecutorsResponse>(this); internal ListExecutorsPaginator(IAmazonAthena client, ListExecutorsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListExecutorsResponse> IPaginator<ListExecutorsResponse>.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; ListExecutorsResponse response; do { _request.NextToken = nextToken; response = _client.ListExecutors(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListExecutorsResponse> IPaginator<ListExecutorsResponse>.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; ListExecutorsResponse response; do { _request.NextToken = nextToken; response = await _client.ListExecutorsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListNamedQueries paginators. /// </summary> internal sealed partial class ListNamedQueriesPaginator : IPaginator<ListNamedQueriesResponse>, IListNamedQueriesPaginator { private readonly IAmazonAthena _client; private readonly ListNamedQueriesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListNamedQueriesResponse> Responses => new PaginatedResponse<ListNamedQueriesResponse>(this); internal ListNamedQueriesPaginator(IAmazonAthena client, ListNamedQueriesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListNamedQueriesResponse> IPaginator<ListNamedQueriesResponse>.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; ListNamedQueriesResponse response; do { _request.NextToken = nextToken; response = _client.ListNamedQueries(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListNamedQueriesResponse> IPaginator<ListNamedQueriesResponse>.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; ListNamedQueriesResponse response; do { _request.NextToken = nextToken; response = await _client.ListNamedQueriesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListPreparedStatements paginators. /// </summary> internal sealed partial class ListPreparedStatementsPaginator : IPaginator<ListPreparedStatementsResponse>, IListPreparedStatementsPaginator { private readonly IAmazonAthena _client; private readonly ListPreparedStatementsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListPreparedStatementsResponse> Responses => new PaginatedResponse<ListPreparedStatementsResponse>(this); internal ListPreparedStatementsPaginator(IAmazonAthena client, ListPreparedStatementsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListPreparedStatementsResponse> IPaginator<ListPreparedStatementsResponse>.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; ListPreparedStatementsResponse response; do { _request.NextToken = nextToken; response = _client.ListPreparedStatements(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListPreparedStatementsResponse> IPaginator<ListPreparedStatementsResponse>.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; ListPreparedStatementsResponse response; do { _request.NextToken = nextToken; response = await _client.ListPreparedStatementsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListQueryExecutions paginators. /// </summary> internal sealed partial class ListQueryExecutionsPaginator : IPaginator<ListQueryExecutionsResponse>, IListQueryExecutionsPaginator { private readonly IAmazonAthena _client; private readonly ListQueryExecutionsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListQueryExecutionsResponse> Responses => new PaginatedResponse<ListQueryExecutionsResponse>(this); internal ListQueryExecutionsPaginator(IAmazonAthena client, ListQueryExecutionsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListQueryExecutionsResponse> IPaginator<ListQueryExecutionsResponse>.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; ListQueryExecutionsResponse response; do { _request.NextToken = nextToken; response = _client.ListQueryExecutions(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListQueryExecutionsResponse> IPaginator<ListQueryExecutionsResponse>.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; ListQueryExecutionsResponse response; do { _request.NextToken = nextToken; response = await _client.ListQueryExecutionsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListSessions paginators. /// </summary> internal sealed partial class ListSessionsPaginator : IPaginator<ListSessionsResponse>, IListSessionsPaginator { private readonly IAmazonAthena _client; private readonly ListSessionsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListSessionsResponse> Responses => new PaginatedResponse<ListSessionsResponse>(this); internal ListSessionsPaginator(IAmazonAthena client, ListSessionsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListSessionsResponse> IPaginator<ListSessionsResponse>.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; ListSessionsResponse response; do { _request.NextToken = nextToken; response = _client.ListSessions(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListSessionsResponse> IPaginator<ListSessionsResponse>.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; ListSessionsResponse response; do { _request.NextToken = nextToken; response = await _client.ListSessionsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListTableMetadata paginators. /// </summary> internal sealed partial class ListTableMetadataPaginator : IPaginator<ListTableMetadataResponse>, IListTableMetadataPaginator { private readonly IAmazonAthena _client; private readonly ListTableMetadataRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTableMetadataResponse> Responses => new PaginatedResponse<ListTableMetadataResponse>(this); /// <summary> /// Enumerable containing all of the TableMetadataList /// </summary> public IPaginatedEnumerable<TableMetadata> TableMetadataList => new PaginatedResultKeyResponse<ListTableMetadataResponse, TableMetadata>(this, (i) => i.TableMetadataList); internal ListTableMetadataPaginator(IAmazonAthena client, ListTableMetadataRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTableMetadataResponse> IPaginator<ListTableMetadataResponse>.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; ListTableMetadataResponse response; do { _request.NextToken = nextToken; response = _client.ListTableMetadata(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTableMetadataResponse> IPaginator<ListTableMetadataResponse>.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; ListTableMetadataResponse response; do { _request.NextToken = nextToken; response = await _client.ListTableMetadataAsync(_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 athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListTagsForResource paginators. /// </summary> internal sealed partial class ListTagsForResourcePaginator : IPaginator<ListTagsForResourceResponse>, IListTagsForResourcePaginator { private readonly IAmazonAthena _client; private readonly ListTagsForResourceRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTagsForResourceResponse> Responses => new PaginatedResponse<ListTagsForResourceResponse>(this); /// <summary> /// Enumerable containing all of the Tags /// </summary> public IPaginatedEnumerable<Tag> Tags => new PaginatedResultKeyResponse<ListTagsForResourceResponse, Tag>(this, (i) => i.Tags); internal ListTagsForResourcePaginator(IAmazonAthena client, ListTagsForResourceRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTagsForResourceResponse> IPaginator<ListTagsForResourceResponse>.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; ListTagsForResourceResponse response; do { _request.NextToken = nextToken; response = _client.ListTagsForResource(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTagsForResourceResponse> IPaginator<ListTagsForResourceResponse>.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; ListTagsForResourceResponse response; do { _request.NextToken = nextToken; response = await _client.ListTagsForResourceAsync(_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 athena-2017-05-18.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.Athena.Model { /// <summary> /// Base class for ListWorkGroups paginators. /// </summary> internal sealed partial class ListWorkGroupsPaginator : IPaginator<ListWorkGroupsResponse>, IListWorkGroupsPaginator { private readonly IAmazonAthena _client; private readonly ListWorkGroupsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListWorkGroupsResponse> Responses => new PaginatedResponse<ListWorkGroupsResponse>(this); internal ListWorkGroupsPaginator(IAmazonAthena client, ListWorkGroupsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListWorkGroupsResponse> IPaginator<ListWorkGroupsResponse>.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; ListWorkGroupsResponse response; do { _request.NextToken = nextToken; response = _client.ListWorkGroups(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListWorkGroupsResponse> IPaginator<ListWorkGroupsResponse>.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; ListWorkGroupsResponse response; do { _request.NextToken = nextToken; response = await _client.ListWorkGroupsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Athena.Model; using Amazon.Athena.Model.Internal.MarshallTransformations; using Amazon.Athena.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Athena { /// <summary> /// Implementation for accessing Athena /// /// Amazon Athena is an interactive query service that lets you use standard SQL to analyze /// data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run /// ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure /// to set up or manage. You pay only for the queries you run. Athena scales automatically—executing /// queries in parallel—so results are fast, even with large datasets and complex queries. /// For more information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What /// is Amazon Athena</a> in the <i>Amazon Athena User Guide</i>. /// /// /// <para> /// If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or /// later with the Amazon Athena API. Earlier version drivers do not support the API. /// For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing /// Amazon Athena with JDBC</a>. /// </para> /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> public partial class AmazonAthenaClient : AmazonServiceClient, IAmazonAthena { private static IServiceMetadata serviceMetadata = new AmazonAthenaMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IAthenaPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAthenaPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AthenaPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(AmazonAthenaConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAthenaClient(AWSCredentials credentials) : this(credentials, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAthenaClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials and an /// AmazonAthenaClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(AWSCredentials credentials, AmazonAthenaConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAthenaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient 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 AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAthenaConfig 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 AmazonAthenaEndpointResolver()); } /// <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 BatchGetNamedQuery /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return Invoke<BatchGetNamedQueryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchGetNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public virtual IAsyncResult BeginBatchGetNamedQuery(BatchGetNamedQueryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchGetNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchGetNamedQuery.</param> /// /// <returns>Returns a BatchGetNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public virtual BatchGetNamedQueryResponse EndBatchGetNamedQuery(IAsyncResult asyncResult) { return EndInvoke<BatchGetNamedQueryResponse>(asyncResult); } #endregion #region BatchGetPreparedStatement /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> public virtual BatchGetPreparedStatementResponse BatchGetPreparedStatement(BatchGetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return Invoke<BatchGetPreparedStatementResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchGetPreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetPreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> public virtual IAsyncResult BeginBatchGetPreparedStatement(BatchGetPreparedStatementRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchGetPreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchGetPreparedStatement.</param> /// /// <returns>Returns a BatchGetPreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> public virtual BatchGetPreparedStatementResponse EndBatchGetPreparedStatement(IAsyncResult asyncResult) { return EndInvoke<BatchGetPreparedStatementResponse>(asyncResult); } #endregion #region BatchGetQueryExecution /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> public virtual BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return Invoke<BatchGetQueryExecutionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchGetQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> public virtual IAsyncResult BeginBatchGetQueryExecution(BatchGetQueryExecutionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchGetQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchGetQueryExecution.</param> /// /// <returns>Returns a BatchGetQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> public virtual BatchGetQueryExecutionResponse EndBatchGetQueryExecution(IAsyncResult asyncResult) { return EndInvoke<BatchGetQueryExecutionResponse>(asyncResult); } #endregion #region CancelCapacityReservation /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> public virtual CancelCapacityReservationResponse CancelCapacityReservation(CancelCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return Invoke<CancelCapacityReservationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> public virtual IAsyncResult BeginCancelCapacityReservation(CancelCapacityReservationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelCapacityReservation.</param> /// /// <returns>Returns a CancelCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> public virtual CancelCapacityReservationResponse EndCancelCapacityReservation(IAsyncResult asyncResult) { return EndInvoke<CancelCapacityReservationResponse>(asyncResult); } #endregion #region CreateCapacityReservation /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> public virtual CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return Invoke<CreateCapacityReservationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> public virtual IAsyncResult BeginCreateCapacityReservation(CreateCapacityReservationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCapacityReservation.</param> /// /// <returns>Returns a CreateCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> public virtual CreateCapacityReservationResponse EndCreateCapacityReservation(IAsyncResult asyncResult) { return EndInvoke<CreateCapacityReservationResponse>(asyncResult); } #endregion #region CreateDataCatalog /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> public virtual CreateDataCatalogResponse CreateDataCatalog(CreateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return Invoke<CreateDataCatalogResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> public virtual IAsyncResult BeginCreateDataCatalog(CreateDataCatalogRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDataCatalog.</param> /// /// <returns>Returns a CreateDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> public virtual CreateDataCatalogResponse EndCreateDataCatalog(IAsyncResult asyncResult) { return EndInvoke<CreateDataCatalogResponse>(asyncResult); } #endregion #region CreateNamedQuery /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> public virtual CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return Invoke<CreateNamedQueryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> public virtual IAsyncResult BeginCreateNamedQuery(CreateNamedQueryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateNamedQuery.</param> /// /// <returns>Returns a CreateNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> public virtual CreateNamedQueryResponse EndCreateNamedQuery(IAsyncResult asyncResult) { return EndInvoke<CreateNamedQueryResponse>(asyncResult); } #endregion #region CreateNotebook /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> public virtual CreateNotebookResponse CreateNotebook(CreateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return Invoke<CreateNotebookResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> public virtual IAsyncResult BeginCreateNotebook(CreateNotebookRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateNotebook.</param> /// /// <returns>Returns a CreateNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> public virtual CreateNotebookResponse EndCreateNotebook(IAsyncResult asyncResult) { return EndInvoke<CreateNotebookResponse>(asyncResult); } #endregion #region CreatePreparedStatement /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> public virtual CreatePreparedStatementResponse CreatePreparedStatement(CreatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return Invoke<CreatePreparedStatementResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreatePreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> public virtual IAsyncResult BeginCreatePreparedStatement(CreatePreparedStatementRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreatePreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePreparedStatement.</param> /// /// <returns>Returns a CreatePreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> public virtual CreatePreparedStatementResponse EndCreatePreparedStatement(IAsyncResult asyncResult) { return EndInvoke<CreatePreparedStatementResponse>(asyncResult); } #endregion #region CreatePresignedNotebookUrl /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> public virtual CreatePresignedNotebookUrlResponse CreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return Invoke<CreatePresignedNotebookUrlResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreatePresignedNotebookUrl operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePresignedNotebookUrl /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> public virtual IAsyncResult BeginCreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreatePresignedNotebookUrl operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePresignedNotebookUrl.</param> /// /// <returns>Returns a CreatePresignedNotebookUrlResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> public virtual CreatePresignedNotebookUrlResponse EndCreatePresignedNotebookUrl(IAsyncResult asyncResult) { return EndInvoke<CreatePresignedNotebookUrlResponse>(asyncResult); } #endregion #region CreateWorkGroup /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> public virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return Invoke<CreateWorkGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> public virtual IAsyncResult BeginCreateWorkGroup(CreateWorkGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateWorkGroup.</param> /// /// <returns>Returns a CreateWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> public virtual CreateWorkGroupResponse EndCreateWorkGroup(IAsyncResult asyncResult) { return EndInvoke<CreateWorkGroupResponse>(asyncResult); } #endregion #region DeleteCapacityReservation /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> public virtual DeleteCapacityReservationResponse DeleteCapacityReservation(DeleteCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return Invoke<DeleteCapacityReservationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> public virtual IAsyncResult BeginDeleteCapacityReservation(DeleteCapacityReservationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCapacityReservation.</param> /// /// <returns>Returns a DeleteCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> public virtual DeleteCapacityReservationResponse EndDeleteCapacityReservation(IAsyncResult asyncResult) { return EndInvoke<DeleteCapacityReservationResponse>(asyncResult); } #endregion #region DeleteDataCatalog /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> public virtual DeleteDataCatalogResponse DeleteDataCatalog(DeleteDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return Invoke<DeleteDataCatalogResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> public virtual IAsyncResult BeginDeleteDataCatalog(DeleteDataCatalogRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDataCatalog.</param> /// /// <returns>Returns a DeleteDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> public virtual DeleteDataCatalogResponse EndDeleteDataCatalog(IAsyncResult asyncResult) { return EndInvoke<DeleteDataCatalogResponse>(asyncResult); } #endregion #region DeleteNamedQuery /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> public virtual DeleteNamedQueryResponse DeleteNamedQuery(DeleteNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return Invoke<DeleteNamedQueryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> public virtual IAsyncResult BeginDeleteNamedQuery(DeleteNamedQueryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNamedQuery.</param> /// /// <returns>Returns a DeleteNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> public virtual DeleteNamedQueryResponse EndDeleteNamedQuery(IAsyncResult asyncResult) { return EndInvoke<DeleteNamedQueryResponse>(asyncResult); } #endregion #region DeleteNotebook /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> public virtual DeleteNotebookResponse DeleteNotebook(DeleteNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return Invoke<DeleteNotebookResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> public virtual IAsyncResult BeginDeleteNotebook(DeleteNotebookRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNotebook.</param> /// /// <returns>Returns a DeleteNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> public virtual DeleteNotebookResponse EndDeleteNotebook(IAsyncResult asyncResult) { return EndInvoke<DeleteNotebookResponse>(asyncResult); } #endregion #region DeletePreparedStatement /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> public virtual DeletePreparedStatementResponse DeletePreparedStatement(DeletePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return Invoke<DeletePreparedStatementResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeletePreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> public virtual IAsyncResult BeginDeletePreparedStatement(DeletePreparedStatementRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeletePreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePreparedStatement.</param> /// /// <returns>Returns a DeletePreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> public virtual DeletePreparedStatementResponse EndDeletePreparedStatement(IAsyncResult asyncResult) { return EndInvoke<DeletePreparedStatementResponse>(asyncResult); } #endregion #region DeleteWorkGroup /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> public virtual DeleteWorkGroupResponse DeleteWorkGroup(DeleteWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return Invoke<DeleteWorkGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> public virtual IAsyncResult BeginDeleteWorkGroup(DeleteWorkGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteWorkGroup.</param> /// /// <returns>Returns a DeleteWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> public virtual DeleteWorkGroupResponse EndDeleteWorkGroup(IAsyncResult asyncResult) { return EndInvoke<DeleteWorkGroupResponse>(asyncResult); } #endregion #region ExportNotebook /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> public virtual ExportNotebookResponse ExportNotebook(ExportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return Invoke<ExportNotebookResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ExportNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExportNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> public virtual IAsyncResult BeginExportNotebook(ExportNotebookRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ExportNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportNotebook.</param> /// /// <returns>Returns a ExportNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> public virtual ExportNotebookResponse EndExportNotebook(IAsyncResult asyncResult) { return EndInvoke<ExportNotebookResponse>(asyncResult); } #endregion #region GetCalculationExecution /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> public virtual GetCalculationExecutionResponse GetCalculationExecution(GetCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetCalculationExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCalculationExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> public virtual IAsyncResult BeginGetCalculationExecution(GetCalculationExecutionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetCalculationExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCalculationExecution.</param> /// /// <returns>Returns a GetCalculationExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> public virtual GetCalculationExecutionResponse EndGetCalculationExecution(IAsyncResult asyncResult) { return EndInvoke<GetCalculationExecutionResponse>(asyncResult); } #endregion #region GetCalculationExecutionCode /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> public virtual GetCalculationExecutionCodeResponse GetCalculationExecutionCode(GetCalculationExecutionCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionCodeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetCalculationExecutionCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCalculationExecutionCode /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> public virtual IAsyncResult BeginGetCalculationExecutionCode(GetCalculationExecutionCodeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetCalculationExecutionCode operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCalculationExecutionCode.</param> /// /// <returns>Returns a GetCalculationExecutionCodeResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> public virtual GetCalculationExecutionCodeResponse EndGetCalculationExecutionCode(IAsyncResult asyncResult) { return EndInvoke<GetCalculationExecutionCodeResponse>(asyncResult); } #endregion #region GetCalculationExecutionStatus /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> public virtual GetCalculationExecutionStatusResponse GetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionStatusResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetCalculationExecutionStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCalculationExecutionStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> public virtual IAsyncResult BeginGetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetCalculationExecutionStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCalculationExecutionStatus.</param> /// /// <returns>Returns a GetCalculationExecutionStatusResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> public virtual GetCalculationExecutionStatusResponse EndGetCalculationExecutionStatus(IAsyncResult asyncResult) { return EndInvoke<GetCalculationExecutionStatusResponse>(asyncResult); } #endregion #region GetCapacityAssignmentConfiguration /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> public virtual GetCapacityAssignmentConfigurationResponse GetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke<GetCapacityAssignmentConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCapacityAssignmentConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> public virtual IAsyncResult BeginGetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCapacityAssignmentConfiguration.</param> /// /// <returns>Returns a GetCapacityAssignmentConfigurationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> public virtual GetCapacityAssignmentConfigurationResponse EndGetCapacityAssignmentConfiguration(IAsyncResult asyncResult) { return EndInvoke<GetCapacityAssignmentConfigurationResponse>(asyncResult); } #endregion #region GetCapacityReservation /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> public virtual GetCapacityReservationResponse GetCapacityReservation(GetCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return Invoke<GetCapacityReservationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> public virtual IAsyncResult BeginGetCapacityReservation(GetCapacityReservationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCapacityReservation.</param> /// /// <returns>Returns a GetCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> public virtual GetCapacityReservationResponse EndGetCapacityReservation(IAsyncResult asyncResult) { return EndInvoke<GetCapacityReservationResponse>(asyncResult); } #endregion #region GetDatabase /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> public virtual GetDatabaseResponse GetDatabase(GetDatabaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return Invoke<GetDatabaseResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetDatabase operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDatabase operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDatabase /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> public virtual IAsyncResult BeginGetDatabase(GetDatabaseRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetDatabase operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDatabase.</param> /// /// <returns>Returns a GetDatabaseResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> public virtual GetDatabaseResponse EndGetDatabase(IAsyncResult asyncResult) { return EndInvoke<GetDatabaseResponse>(asyncResult); } #endregion #region GetDataCatalog /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> public virtual GetDataCatalogResponse GetDataCatalog(GetDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return Invoke<GetDataCatalogResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> public virtual IAsyncResult BeginGetDataCatalog(GetDataCatalogRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDataCatalog.</param> /// /// <returns>Returns a GetDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> public virtual GetDataCatalogResponse EndGetDataCatalog(IAsyncResult asyncResult) { return EndInvoke<GetDataCatalogResponse>(asyncResult); } #endregion #region GetNamedQuery /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> public virtual GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return Invoke<GetNamedQueryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> public virtual IAsyncResult BeginGetNamedQuery(GetNamedQueryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetNamedQuery.</param> /// /// <returns>Returns a GetNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> public virtual GetNamedQueryResponse EndGetNamedQuery(IAsyncResult asyncResult) { return EndInvoke<GetNamedQueryResponse>(asyncResult); } #endregion #region GetNotebookMetadata /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> public virtual GetNotebookMetadataResponse GetNotebookMetadata(GetNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return Invoke<GetNotebookMetadataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetNotebookMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetNotebookMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> public virtual IAsyncResult BeginGetNotebookMetadata(GetNotebookMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetNotebookMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetNotebookMetadata.</param> /// /// <returns>Returns a GetNotebookMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> public virtual GetNotebookMetadataResponse EndGetNotebookMetadata(IAsyncResult asyncResult) { return EndInvoke<GetNotebookMetadataResponse>(asyncResult); } #endregion #region GetPreparedStatement /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> public virtual GetPreparedStatementResponse GetPreparedStatement(GetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return Invoke<GetPreparedStatementResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetPreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> public virtual IAsyncResult BeginGetPreparedStatement(GetPreparedStatementRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetPreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetPreparedStatement.</param> /// /// <returns>Returns a GetPreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> public virtual GetPreparedStatementResponse EndGetPreparedStatement(IAsyncResult asyncResult) { return EndInvoke<GetPreparedStatementResponse>(asyncResult); } #endregion #region GetQueryExecution /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> public virtual GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return Invoke<GetQueryExecutionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> public virtual IAsyncResult BeginGetQueryExecution(GetQueryExecutionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQueryExecution.</param> /// /// <returns>Returns a GetQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> public virtual GetQueryExecutionResponse EndGetQueryExecution(IAsyncResult asyncResult) { return EndInvoke<GetQueryExecutionResponse>(asyncResult); } #endregion #region GetQueryResults /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> public virtual GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return Invoke<GetQueryResultsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetQueryResults operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQueryResults operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQueryResults /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> public virtual IAsyncResult BeginGetQueryResults(GetQueryResultsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetQueryResults operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQueryResults.</param> /// /// <returns>Returns a GetQueryResultsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> public virtual GetQueryResultsResponse EndGetQueryResults(IAsyncResult asyncResult) { return EndInvoke<GetQueryResultsResponse>(asyncResult); } #endregion #region GetQueryRuntimeStatistics /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> public virtual GetQueryRuntimeStatisticsResponse GetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return Invoke<GetQueryRuntimeStatisticsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetQueryRuntimeStatistics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQueryRuntimeStatistics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> public virtual IAsyncResult BeginGetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetQueryRuntimeStatistics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQueryRuntimeStatistics.</param> /// /// <returns>Returns a GetQueryRuntimeStatisticsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> public virtual GetQueryRuntimeStatisticsResponse EndGetQueryRuntimeStatistics(IAsyncResult asyncResult) { return EndInvoke<GetQueryRuntimeStatisticsResponse>(asyncResult); } #endregion #region GetSession /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> public virtual GetSessionResponse GetSession(GetSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return Invoke<GetSessionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSession operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> public virtual IAsyncResult BeginGetSession(GetSessionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSession.</param> /// /// <returns>Returns a GetSessionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> public virtual GetSessionResponse EndGetSession(IAsyncResult asyncResult) { return EndInvoke<GetSessionResponse>(asyncResult); } #endregion #region GetSessionStatus /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> public virtual GetSessionStatusResponse GetSessionStatus(GetSessionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return Invoke<GetSessionStatusResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetSessionStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSessionStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> public virtual IAsyncResult BeginGetSessionStatus(GetSessionStatusRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetSessionStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSessionStatus.</param> /// /// <returns>Returns a GetSessionStatusResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> public virtual GetSessionStatusResponse EndGetSessionStatus(IAsyncResult asyncResult) { return EndInvoke<GetSessionStatusResponse>(asyncResult); } #endregion #region GetTableMetadata /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> public virtual GetTableMetadataResponse GetTableMetadata(GetTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return Invoke<GetTableMetadataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetTableMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTableMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> public virtual IAsyncResult BeginGetTableMetadata(GetTableMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetTableMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTableMetadata.</param> /// /// <returns>Returns a GetTableMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> public virtual GetTableMetadataResponse EndGetTableMetadata(IAsyncResult asyncResult) { return EndInvoke<GetTableMetadataResponse>(asyncResult); } #endregion #region GetWorkGroup /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> public virtual GetWorkGroupResponse GetWorkGroup(GetWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return Invoke<GetWorkGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> public virtual IAsyncResult BeginGetWorkGroup(GetWorkGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetWorkGroup.</param> /// /// <returns>Returns a GetWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> public virtual GetWorkGroupResponse EndGetWorkGroup(IAsyncResult asyncResult) { return EndInvoke<GetWorkGroupResponse>(asyncResult); } #endregion #region ImportNotebook /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> public virtual ImportNotebookResponse ImportNotebook(ImportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return Invoke<ImportNotebookResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ImportNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> public virtual IAsyncResult BeginImportNotebook(ImportNotebookRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ImportNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportNotebook.</param> /// /// <returns>Returns a ImportNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> public virtual ImportNotebookResponse EndImportNotebook(IAsyncResult asyncResult) { return EndInvoke<ImportNotebookResponse>(asyncResult); } #endregion #region ListApplicationDPUSizes /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> public virtual ListApplicationDPUSizesResponse ListApplicationDPUSizes(ListApplicationDPUSizesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return Invoke<ListApplicationDPUSizesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListApplicationDPUSizes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApplicationDPUSizes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> public virtual IAsyncResult BeginListApplicationDPUSizes(ListApplicationDPUSizesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListApplicationDPUSizes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApplicationDPUSizes.</param> /// /// <returns>Returns a ListApplicationDPUSizesResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> public virtual ListApplicationDPUSizesResponse EndListApplicationDPUSizes(IAsyncResult asyncResult) { return EndInvoke<ListApplicationDPUSizesResponse>(asyncResult); } #endregion #region ListCalculationExecutions /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> public virtual ListCalculationExecutionsResponse ListCalculationExecutions(ListCalculationExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return Invoke<ListCalculationExecutionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListCalculationExecutions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCalculationExecutions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> public virtual IAsyncResult BeginListCalculationExecutions(ListCalculationExecutionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListCalculationExecutions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCalculationExecutions.</param> /// /// <returns>Returns a ListCalculationExecutionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> public virtual ListCalculationExecutionsResponse EndListCalculationExecutions(IAsyncResult asyncResult) { return EndInvoke<ListCalculationExecutionsResponse>(asyncResult); } #endregion #region ListCapacityReservations /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> public virtual ListCapacityReservationsResponse ListCapacityReservations(ListCapacityReservationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return Invoke<ListCapacityReservationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListCapacityReservations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCapacityReservations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> public virtual IAsyncResult BeginListCapacityReservations(ListCapacityReservationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListCapacityReservations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCapacityReservations.</param> /// /// <returns>Returns a ListCapacityReservationsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> public virtual ListCapacityReservationsResponse EndListCapacityReservations(IAsyncResult asyncResult) { return EndInvoke<ListCapacityReservationsResponse>(asyncResult); } #endregion #region ListDatabases /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> public virtual ListDatabasesResponse ListDatabases(ListDatabasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return Invoke<ListDatabasesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListDatabases operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDatabases operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDatabases /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> public virtual IAsyncResult BeginListDatabases(ListDatabasesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListDatabases operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDatabases.</param> /// /// <returns>Returns a ListDatabasesResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> public virtual ListDatabasesResponse EndListDatabases(IAsyncResult asyncResult) { return EndInvoke<ListDatabasesResponse>(asyncResult); } #endregion #region ListDataCatalogs /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> public virtual ListDataCatalogsResponse ListDataCatalogs(ListDataCatalogsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return Invoke<ListDataCatalogsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListDataCatalogs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDataCatalogs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> public virtual IAsyncResult BeginListDataCatalogs(ListDataCatalogsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListDataCatalogs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataCatalogs.</param> /// /// <returns>Returns a ListDataCatalogsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> public virtual ListDataCatalogsResponse EndListDataCatalogs(IAsyncResult asyncResult) { return EndInvoke<ListDataCatalogsResponse>(asyncResult); } #endregion #region ListEngineVersions /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> public virtual ListEngineVersionsResponse ListEngineVersions(ListEngineVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return Invoke<ListEngineVersionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListEngineVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEngineVersions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> public virtual IAsyncResult BeginListEngineVersions(ListEngineVersionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListEngineVersions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEngineVersions.</param> /// /// <returns>Returns a ListEngineVersionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> public virtual ListEngineVersionsResponse EndListEngineVersions(IAsyncResult asyncResult) { return EndInvoke<ListEngineVersionsResponse>(asyncResult); } #endregion #region ListExecutors /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> public virtual ListExecutorsResponse ListExecutors(ListExecutorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return Invoke<ListExecutorsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListExecutors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListExecutors operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListExecutors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> public virtual IAsyncResult BeginListExecutors(ListExecutorsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListExecutors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListExecutors.</param> /// /// <returns>Returns a ListExecutorsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> public virtual ListExecutorsResponse EndListExecutors(IAsyncResult asyncResult) { return EndInvoke<ListExecutorsResponse>(asyncResult); } #endregion #region ListNamedQueries /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> public virtual ListNamedQueriesResponse ListNamedQueries(ListNamedQueriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return Invoke<ListNamedQueriesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListNamedQueries operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNamedQueries /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> public virtual IAsyncResult BeginListNamedQueries(ListNamedQueriesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListNamedQueries operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListNamedQueries.</param> /// /// <returns>Returns a ListNamedQueriesResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> public virtual ListNamedQueriesResponse EndListNamedQueries(IAsyncResult asyncResult) { return EndInvoke<ListNamedQueriesResponse>(asyncResult); } #endregion #region ListNotebookMetadata /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> public virtual ListNotebookMetadataResponse ListNotebookMetadata(ListNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return Invoke<ListNotebookMetadataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListNotebookMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNotebookMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> public virtual IAsyncResult BeginListNotebookMetadata(ListNotebookMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListNotebookMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListNotebookMetadata.</param> /// /// <returns>Returns a ListNotebookMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> public virtual ListNotebookMetadataResponse EndListNotebookMetadata(IAsyncResult asyncResult) { return EndInvoke<ListNotebookMetadataResponse>(asyncResult); } #endregion #region ListNotebookSessions /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> public virtual ListNotebookSessionsResponse ListNotebookSessions(ListNotebookSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return Invoke<ListNotebookSessionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListNotebookSessions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNotebookSessions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> public virtual IAsyncResult BeginListNotebookSessions(ListNotebookSessionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListNotebookSessions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListNotebookSessions.</param> /// /// <returns>Returns a ListNotebookSessionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> public virtual ListNotebookSessionsResponse EndListNotebookSessions(IAsyncResult asyncResult) { return EndInvoke<ListNotebookSessionsResponse>(asyncResult); } #endregion #region ListPreparedStatements /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> public virtual ListPreparedStatementsResponse ListPreparedStatements(ListPreparedStatementsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return Invoke<ListPreparedStatementsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListPreparedStatements operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPreparedStatements /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> public virtual IAsyncResult BeginListPreparedStatements(ListPreparedStatementsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListPreparedStatements operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPreparedStatements.</param> /// /// <returns>Returns a ListPreparedStatementsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> public virtual ListPreparedStatementsResponse EndListPreparedStatements(IAsyncResult asyncResult) { return EndInvoke<ListPreparedStatementsResponse>(asyncResult); } #endregion #region ListQueryExecutions /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public virtual ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return Invoke<ListQueryExecutionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListQueryExecutions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListQueryExecutions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public virtual IAsyncResult BeginListQueryExecutions(ListQueryExecutionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListQueryExecutions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListQueryExecutions.</param> /// /// <returns>Returns a ListQueryExecutionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public virtual ListQueryExecutionsResponse EndListQueryExecutions(IAsyncResult asyncResult) { return EndInvoke<ListQueryExecutionsResponse>(asyncResult); } #endregion #region ListSessions /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> public virtual ListSessionsResponse ListSessions(ListSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return Invoke<ListSessionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListSessions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSessions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSessions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> public virtual IAsyncResult BeginListSessions(ListSessionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListSessions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListSessions.</param> /// /// <returns>Returns a ListSessionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> public virtual ListSessionsResponse EndListSessions(IAsyncResult asyncResult) { return EndInvoke<ListSessionsResponse>(asyncResult); } #endregion #region ListTableMetadata /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> public virtual ListTableMetadataResponse ListTableMetadata(ListTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return Invoke<ListTableMetadataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTableMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTableMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> public virtual IAsyncResult BeginListTableMetadata(ListTableMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTableMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTableMetadata.</param> /// /// <returns>Returns a ListTableMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> public virtual ListTableMetadataResponse EndListTableMetadata(IAsyncResult asyncResult) { return EndInvoke<ListTableMetadataResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/athena-2017-05-18/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 Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region ListWorkGroups /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> public virtual ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return Invoke<ListWorkGroupsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListWorkGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListWorkGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> public virtual IAsyncResult BeginListWorkGroups(ListWorkGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListWorkGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListWorkGroups.</param> /// /// <returns>Returns a ListWorkGroupsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> public virtual ListWorkGroupsResponse EndListWorkGroups(IAsyncResult asyncResult) { return EndInvoke<ListWorkGroupsResponse>(asyncResult); } #endregion #region PutCapacityAssignmentConfiguration /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> public virtual PutCapacityAssignmentConfigurationResponse PutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke<PutCapacityAssignmentConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutCapacityAssignmentConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> public virtual IAsyncResult BeginPutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutCapacityAssignmentConfiguration.</param> /// /// <returns>Returns a PutCapacityAssignmentConfigurationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> public virtual PutCapacityAssignmentConfigurationResponse EndPutCapacityAssignmentConfiguration(IAsyncResult asyncResult) { return EndInvoke<PutCapacityAssignmentConfigurationResponse>(asyncResult); } #endregion #region StartCalculationExecution /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> public virtual StartCalculationExecutionResponse StartCalculationExecution(StartCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return Invoke<StartCalculationExecutionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartCalculationExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartCalculationExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> public virtual IAsyncResult BeginStartCalculationExecution(StartCalculationExecutionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartCalculationExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartCalculationExecution.</param> /// /// <returns>Returns a StartCalculationExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> public virtual StartCalculationExecutionResponse EndStartCalculationExecution(IAsyncResult asyncResult) { return EndInvoke<StartCalculationExecutionResponse>(asyncResult); } #endregion #region StartQueryExecution /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> public virtual StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return Invoke<StartQueryExecutionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> public virtual IAsyncResult BeginStartQueryExecution(StartQueryExecutionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartQueryExecution.</param> /// /// <returns>Returns a StartQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> public virtual StartQueryExecutionResponse EndStartQueryExecution(IAsyncResult asyncResult) { return EndInvoke<StartQueryExecutionResponse>(asyncResult); } #endregion #region StartSession /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> public virtual StartSessionResponse StartSession(StartSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return Invoke<StartSessionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartSession operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> public virtual IAsyncResult BeginStartSession(StartSessionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSession.</param> /// /// <returns>Returns a StartSessionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> public virtual StartSessionResponse EndStartSession(IAsyncResult asyncResult) { return EndInvoke<StartSessionResponse>(asyncResult); } #endregion #region StopCalculationExecution /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> public virtual StopCalculationExecutionResponse StopCalculationExecution(StopCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return Invoke<StopCalculationExecutionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StopCalculationExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopCalculationExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> public virtual IAsyncResult BeginStopCalculationExecution(StopCalculationExecutionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StopCalculationExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopCalculationExecution.</param> /// /// <returns>Returns a StopCalculationExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> public virtual StopCalculationExecutionResponse EndStopCalculationExecution(IAsyncResult asyncResult) { return EndInvoke<StopCalculationExecutionResponse>(asyncResult); } #endregion #region StopQueryExecution /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> public virtual StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return Invoke<StopQueryExecutionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StopQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> public virtual IAsyncResult BeginStopQueryExecution(StopQueryExecutionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StopQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopQueryExecution.</param> /// /// <returns>Returns a StopQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> public virtual StopQueryExecutionResponse EndStopQueryExecution(IAsyncResult asyncResult) { return EndInvoke<StopQueryExecutionResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/athena-2017-05-18/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 Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region TerminateSession /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> public virtual TerminateSessionResponse TerminateSession(TerminateSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return Invoke<TerminateSessionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TerminateSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TerminateSession operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTerminateSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> public virtual IAsyncResult BeginTerminateSession(TerminateSessionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TerminateSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTerminateSession.</param> /// /// <returns>Returns a TerminateSessionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> public virtual TerminateSessionResponse EndTerminateSession(IAsyncResult asyncResult) { return EndInvoke<TerminateSessionResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/athena-2017-05-18/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 Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion #region UpdateCapacityReservation /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> public virtual UpdateCapacityReservationResponse UpdateCapacityReservation(UpdateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return Invoke<UpdateCapacityReservationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> public virtual IAsyncResult BeginUpdateCapacityReservation(UpdateCapacityReservationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCapacityReservation.</param> /// /// <returns>Returns a UpdateCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> public virtual UpdateCapacityReservationResponse EndUpdateCapacityReservation(IAsyncResult asyncResult) { return EndInvoke<UpdateCapacityReservationResponse>(asyncResult); } #endregion #region UpdateDataCatalog /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> public virtual UpdateDataCatalogResponse UpdateDataCatalog(UpdateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return Invoke<UpdateDataCatalogResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> public virtual IAsyncResult BeginUpdateDataCatalog(UpdateDataCatalogRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDataCatalog.</param> /// /// <returns>Returns a UpdateDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> public virtual UpdateDataCatalogResponse EndUpdateDataCatalog(IAsyncResult asyncResult) { return EndInvoke<UpdateDataCatalogResponse>(asyncResult); } #endregion #region UpdateNamedQuery /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> public virtual UpdateNamedQueryResponse UpdateNamedQuery(UpdateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return Invoke<UpdateNamedQueryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> public virtual IAsyncResult BeginUpdateNamedQuery(UpdateNamedQueryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNamedQuery.</param> /// /// <returns>Returns a UpdateNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> public virtual UpdateNamedQueryResponse EndUpdateNamedQuery(IAsyncResult asyncResult) { return EndInvoke<UpdateNamedQueryResponse>(asyncResult); } #endregion #region UpdateNotebook /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> public virtual UpdateNotebookResponse UpdateNotebook(UpdateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return Invoke<UpdateNotebookResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> public virtual IAsyncResult BeginUpdateNotebook(UpdateNotebookRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNotebook.</param> /// /// <returns>Returns a UpdateNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> public virtual UpdateNotebookResponse EndUpdateNotebook(IAsyncResult asyncResult) { return EndInvoke<UpdateNotebookResponse>(asyncResult); } #endregion #region UpdateNotebookMetadata /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> public virtual UpdateNotebookMetadataResponse UpdateNotebookMetadata(UpdateNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return Invoke<UpdateNotebookMetadataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateNotebookMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNotebookMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> public virtual IAsyncResult BeginUpdateNotebookMetadata(UpdateNotebookMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateNotebookMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNotebookMetadata.</param> /// /// <returns>Returns a UpdateNotebookMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> public virtual UpdateNotebookMetadataResponse EndUpdateNotebookMetadata(IAsyncResult asyncResult) { return EndInvoke<UpdateNotebookMetadataResponse>(asyncResult); } #endregion #region UpdatePreparedStatement /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> public virtual UpdatePreparedStatementResponse UpdatePreparedStatement(UpdatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return Invoke<UpdatePreparedStatementResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdatePreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdatePreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> public virtual IAsyncResult BeginUpdatePreparedStatement(UpdatePreparedStatementRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdatePreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdatePreparedStatement.</param> /// /// <returns>Returns a UpdatePreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> public virtual UpdatePreparedStatementResponse EndUpdatePreparedStatement(IAsyncResult asyncResult) { return EndInvoke<UpdatePreparedStatementResponse>(asyncResult); } #endregion #region UpdateWorkGroup /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> public virtual UpdateWorkGroupResponse UpdateWorkGroup(UpdateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return Invoke<UpdateWorkGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> public virtual IAsyncResult BeginUpdateWorkGroup(UpdateWorkGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateWorkGroup.</param> /// /// <returns>Returns a UpdateWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> public virtual UpdateWorkGroupResponse EndUpdateWorkGroup(IAsyncResult asyncResult) { return EndInvoke<UpdateWorkGroupResponse>(asyncResult); } #endregion } }
4,711
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Athena.Model; namespace Amazon.Athena { /// <summary> /// Interface for accessing Athena /// /// Amazon Athena is an interactive query service that lets you use standard SQL to analyze /// data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run /// ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure /// to set up or manage. You pay only for the queries you run. Athena scales automatically—executing /// queries in parallel—so results are fast, even with large datasets and complex queries. /// For more information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What /// is Amazon Athena</a> in the <i>Amazon Athena User Guide</i>. /// /// /// <para> /// If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or /// later with the Amazon Athena API. Earlier version drivers do not support the API. /// For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing /// Amazon Athena with JDBC</a>. /// </para> /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> public partial interface IAmazonAthena : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IAthenaPaginatorFactory Paginators { get; } #endif #region BatchGetNamedQuery /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchGetNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> IAsyncResult BeginBatchGetNamedQuery(BatchGetNamedQueryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchGetNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchGetNamedQuery.</param> /// /// <returns>Returns a BatchGetNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> BatchGetNamedQueryResponse EndBatchGetNamedQuery(IAsyncResult asyncResult); #endregion #region BatchGetPreparedStatement /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> BatchGetPreparedStatementResponse BatchGetPreparedStatement(BatchGetPreparedStatementRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchGetPreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetPreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> IAsyncResult BeginBatchGetPreparedStatement(BatchGetPreparedStatementRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchGetPreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchGetPreparedStatement.</param> /// /// <returns>Returns a BatchGetPreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> BatchGetPreparedStatementResponse EndBatchGetPreparedStatement(IAsyncResult asyncResult); #endregion #region BatchGetQueryExecution /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchGetQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> IAsyncResult BeginBatchGetQueryExecution(BatchGetQueryExecutionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchGetQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchGetQueryExecution.</param> /// /// <returns>Returns a BatchGetQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> BatchGetQueryExecutionResponse EndBatchGetQueryExecution(IAsyncResult asyncResult); #endregion #region CancelCapacityReservation /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> CancelCapacityReservationResponse CancelCapacityReservation(CancelCapacityReservationRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> IAsyncResult BeginCancelCapacityReservation(CancelCapacityReservationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelCapacityReservation.</param> /// /// <returns>Returns a CancelCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> CancelCapacityReservationResponse EndCancelCapacityReservation(IAsyncResult asyncResult); #endregion #region CreateCapacityReservation /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> IAsyncResult BeginCreateCapacityReservation(CreateCapacityReservationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCapacityReservation.</param> /// /// <returns>Returns a CreateCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> CreateCapacityReservationResponse EndCreateCapacityReservation(IAsyncResult asyncResult); #endregion #region CreateDataCatalog /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> CreateDataCatalogResponse CreateDataCatalog(CreateDataCatalogRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> IAsyncResult BeginCreateDataCatalog(CreateDataCatalogRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDataCatalog.</param> /// /// <returns>Returns a CreateDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> CreateDataCatalogResponse EndCreateDataCatalog(IAsyncResult asyncResult); #endregion #region CreateNamedQuery /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> IAsyncResult BeginCreateNamedQuery(CreateNamedQueryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateNamedQuery.</param> /// /// <returns>Returns a CreateNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> CreateNamedQueryResponse EndCreateNamedQuery(IAsyncResult asyncResult); #endregion #region CreateNotebook /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> CreateNotebookResponse CreateNotebook(CreateNotebookRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> IAsyncResult BeginCreateNotebook(CreateNotebookRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateNotebook.</param> /// /// <returns>Returns a CreateNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> CreateNotebookResponse EndCreateNotebook(IAsyncResult asyncResult); #endregion #region CreatePreparedStatement /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> CreatePreparedStatementResponse CreatePreparedStatement(CreatePreparedStatementRequest request); /// <summary> /// Initiates the asynchronous execution of the CreatePreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> IAsyncResult BeginCreatePreparedStatement(CreatePreparedStatementRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreatePreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePreparedStatement.</param> /// /// <returns>Returns a CreatePreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> CreatePreparedStatementResponse EndCreatePreparedStatement(IAsyncResult asyncResult); #endregion #region CreatePresignedNotebookUrl /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> CreatePresignedNotebookUrlResponse CreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request); /// <summary> /// Initiates the asynchronous execution of the CreatePresignedNotebookUrl operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePresignedNotebookUrl /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> IAsyncResult BeginCreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreatePresignedNotebookUrl operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePresignedNotebookUrl.</param> /// /// <returns>Returns a CreatePresignedNotebookUrlResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> CreatePresignedNotebookUrlResponse EndCreatePresignedNotebookUrl(IAsyncResult asyncResult); #endregion #region CreateWorkGroup /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> IAsyncResult BeginCreateWorkGroup(CreateWorkGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateWorkGroup.</param> /// /// <returns>Returns a CreateWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> CreateWorkGroupResponse EndCreateWorkGroup(IAsyncResult asyncResult); #endregion #region DeleteCapacityReservation /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> DeleteCapacityReservationResponse DeleteCapacityReservation(DeleteCapacityReservationRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> IAsyncResult BeginDeleteCapacityReservation(DeleteCapacityReservationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCapacityReservation.</param> /// /// <returns>Returns a DeleteCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> DeleteCapacityReservationResponse EndDeleteCapacityReservation(IAsyncResult asyncResult); #endregion #region DeleteDataCatalog /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> DeleteDataCatalogResponse DeleteDataCatalog(DeleteDataCatalogRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> IAsyncResult BeginDeleteDataCatalog(DeleteDataCatalogRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDataCatalog.</param> /// /// <returns>Returns a DeleteDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> DeleteDataCatalogResponse EndDeleteDataCatalog(IAsyncResult asyncResult); #endregion #region DeleteNamedQuery /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> DeleteNamedQueryResponse DeleteNamedQuery(DeleteNamedQueryRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> IAsyncResult BeginDeleteNamedQuery(DeleteNamedQueryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNamedQuery.</param> /// /// <returns>Returns a DeleteNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> DeleteNamedQueryResponse EndDeleteNamedQuery(IAsyncResult asyncResult); #endregion #region DeleteNotebook /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> DeleteNotebookResponse DeleteNotebook(DeleteNotebookRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> IAsyncResult BeginDeleteNotebook(DeleteNotebookRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNotebook.</param> /// /// <returns>Returns a DeleteNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> DeleteNotebookResponse EndDeleteNotebook(IAsyncResult asyncResult); #endregion #region DeletePreparedStatement /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> DeletePreparedStatementResponse DeletePreparedStatement(DeletePreparedStatementRequest request); /// <summary> /// Initiates the asynchronous execution of the DeletePreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> IAsyncResult BeginDeletePreparedStatement(DeletePreparedStatementRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeletePreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePreparedStatement.</param> /// /// <returns>Returns a DeletePreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> DeletePreparedStatementResponse EndDeletePreparedStatement(IAsyncResult asyncResult); #endregion #region DeleteWorkGroup /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> DeleteWorkGroupResponse DeleteWorkGroup(DeleteWorkGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> IAsyncResult BeginDeleteWorkGroup(DeleteWorkGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteWorkGroup.</param> /// /// <returns>Returns a DeleteWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> DeleteWorkGroupResponse EndDeleteWorkGroup(IAsyncResult asyncResult); #endregion #region ExportNotebook /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> ExportNotebookResponse ExportNotebook(ExportNotebookRequest request); /// <summary> /// Initiates the asynchronous execution of the ExportNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExportNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> IAsyncResult BeginExportNotebook(ExportNotebookRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ExportNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportNotebook.</param> /// /// <returns>Returns a ExportNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> ExportNotebookResponse EndExportNotebook(IAsyncResult asyncResult); #endregion #region GetCalculationExecution /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> GetCalculationExecutionResponse GetCalculationExecution(GetCalculationExecutionRequest request); /// <summary> /// Initiates the asynchronous execution of the GetCalculationExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCalculationExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> IAsyncResult BeginGetCalculationExecution(GetCalculationExecutionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetCalculationExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCalculationExecution.</param> /// /// <returns>Returns a GetCalculationExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> GetCalculationExecutionResponse EndGetCalculationExecution(IAsyncResult asyncResult); #endregion #region GetCalculationExecutionCode /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> GetCalculationExecutionCodeResponse GetCalculationExecutionCode(GetCalculationExecutionCodeRequest request); /// <summary> /// Initiates the asynchronous execution of the GetCalculationExecutionCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCalculationExecutionCode /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> IAsyncResult BeginGetCalculationExecutionCode(GetCalculationExecutionCodeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetCalculationExecutionCode operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCalculationExecutionCode.</param> /// /// <returns>Returns a GetCalculationExecutionCodeResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> GetCalculationExecutionCodeResponse EndGetCalculationExecutionCode(IAsyncResult asyncResult); #endregion #region GetCalculationExecutionStatus /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> GetCalculationExecutionStatusResponse GetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request); /// <summary> /// Initiates the asynchronous execution of the GetCalculationExecutionStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCalculationExecutionStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> IAsyncResult BeginGetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetCalculationExecutionStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCalculationExecutionStatus.</param> /// /// <returns>Returns a GetCalculationExecutionStatusResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> GetCalculationExecutionStatusResponse EndGetCalculationExecutionStatus(IAsyncResult asyncResult); #endregion #region GetCapacityAssignmentConfiguration /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> GetCapacityAssignmentConfigurationResponse GetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the GetCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCapacityAssignmentConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> IAsyncResult BeginGetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCapacityAssignmentConfiguration.</param> /// /// <returns>Returns a GetCapacityAssignmentConfigurationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> GetCapacityAssignmentConfigurationResponse EndGetCapacityAssignmentConfiguration(IAsyncResult asyncResult); #endregion #region GetCapacityReservation /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> GetCapacityReservationResponse GetCapacityReservation(GetCapacityReservationRequest request); /// <summary> /// Initiates the asynchronous execution of the GetCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> IAsyncResult BeginGetCapacityReservation(GetCapacityReservationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCapacityReservation.</param> /// /// <returns>Returns a GetCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> GetCapacityReservationResponse EndGetCapacityReservation(IAsyncResult asyncResult); #endregion #region GetDatabase /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> GetDatabaseResponse GetDatabase(GetDatabaseRequest request); /// <summary> /// Initiates the asynchronous execution of the GetDatabase operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDatabase operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDatabase /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> IAsyncResult BeginGetDatabase(GetDatabaseRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetDatabase operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDatabase.</param> /// /// <returns>Returns a GetDatabaseResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> GetDatabaseResponse EndGetDatabase(IAsyncResult asyncResult); #endregion #region GetDataCatalog /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> GetDataCatalogResponse GetDataCatalog(GetDataCatalogRequest request); /// <summary> /// Initiates the asynchronous execution of the GetDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> IAsyncResult BeginGetDataCatalog(GetDataCatalogRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDataCatalog.</param> /// /// <returns>Returns a GetDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> GetDataCatalogResponse EndGetDataCatalog(IAsyncResult asyncResult); #endregion #region GetNamedQuery /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request); /// <summary> /// Initiates the asynchronous execution of the GetNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> IAsyncResult BeginGetNamedQuery(GetNamedQueryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetNamedQuery.</param> /// /// <returns>Returns a GetNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> GetNamedQueryResponse EndGetNamedQuery(IAsyncResult asyncResult); #endregion #region GetNotebookMetadata /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> GetNotebookMetadataResponse GetNotebookMetadata(GetNotebookMetadataRequest request); /// <summary> /// Initiates the asynchronous execution of the GetNotebookMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetNotebookMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> IAsyncResult BeginGetNotebookMetadata(GetNotebookMetadataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetNotebookMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetNotebookMetadata.</param> /// /// <returns>Returns a GetNotebookMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> GetNotebookMetadataResponse EndGetNotebookMetadata(IAsyncResult asyncResult); #endregion #region GetPreparedStatement /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> GetPreparedStatementResponse GetPreparedStatement(GetPreparedStatementRequest request); /// <summary> /// Initiates the asynchronous execution of the GetPreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> IAsyncResult BeginGetPreparedStatement(GetPreparedStatementRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetPreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetPreparedStatement.</param> /// /// <returns>Returns a GetPreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> GetPreparedStatementResponse EndGetPreparedStatement(IAsyncResult asyncResult); #endregion #region GetQueryExecution /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request); /// <summary> /// Initiates the asynchronous execution of the GetQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> IAsyncResult BeginGetQueryExecution(GetQueryExecutionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQueryExecution.</param> /// /// <returns>Returns a GetQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> GetQueryExecutionResponse EndGetQueryExecution(IAsyncResult asyncResult); #endregion #region GetQueryResults /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetQueryResults operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQueryResults operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQueryResults /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> IAsyncResult BeginGetQueryResults(GetQueryResultsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetQueryResults operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQueryResults.</param> /// /// <returns>Returns a GetQueryResultsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> GetQueryResultsResponse EndGetQueryResults(IAsyncResult asyncResult); #endregion #region GetQueryRuntimeStatistics /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> GetQueryRuntimeStatisticsResponse GetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetQueryRuntimeStatistics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQueryRuntimeStatistics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> IAsyncResult BeginGetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetQueryRuntimeStatistics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQueryRuntimeStatistics.</param> /// /// <returns>Returns a GetQueryRuntimeStatisticsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> GetQueryRuntimeStatisticsResponse EndGetQueryRuntimeStatistics(IAsyncResult asyncResult); #endregion #region GetSession /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> GetSessionResponse GetSession(GetSessionRequest request); /// <summary> /// Initiates the asynchronous execution of the GetSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSession operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> IAsyncResult BeginGetSession(GetSessionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSession.</param> /// /// <returns>Returns a GetSessionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> GetSessionResponse EndGetSession(IAsyncResult asyncResult); #endregion #region GetSessionStatus /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> GetSessionStatusResponse GetSessionStatus(GetSessionStatusRequest request); /// <summary> /// Initiates the asynchronous execution of the GetSessionStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSessionStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> IAsyncResult BeginGetSessionStatus(GetSessionStatusRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetSessionStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetSessionStatus.</param> /// /// <returns>Returns a GetSessionStatusResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> GetSessionStatusResponse EndGetSessionStatus(IAsyncResult asyncResult); #endregion #region GetTableMetadata /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> GetTableMetadataResponse GetTableMetadata(GetTableMetadataRequest request); /// <summary> /// Initiates the asynchronous execution of the GetTableMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTableMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> IAsyncResult BeginGetTableMetadata(GetTableMetadataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetTableMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTableMetadata.</param> /// /// <returns>Returns a GetTableMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> GetTableMetadataResponse EndGetTableMetadata(IAsyncResult asyncResult); #endregion #region GetWorkGroup /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> GetWorkGroupResponse GetWorkGroup(GetWorkGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the GetWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> IAsyncResult BeginGetWorkGroup(GetWorkGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetWorkGroup.</param> /// /// <returns>Returns a GetWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> GetWorkGroupResponse EndGetWorkGroup(IAsyncResult asyncResult); #endregion #region ImportNotebook /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> ImportNotebookResponse ImportNotebook(ImportNotebookRequest request); /// <summary> /// Initiates the asynchronous execution of the ImportNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> IAsyncResult BeginImportNotebook(ImportNotebookRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ImportNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportNotebook.</param> /// /// <returns>Returns a ImportNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> ImportNotebookResponse EndImportNotebook(IAsyncResult asyncResult); #endregion #region ListApplicationDPUSizes /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> ListApplicationDPUSizesResponse ListApplicationDPUSizes(ListApplicationDPUSizesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListApplicationDPUSizes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApplicationDPUSizes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> IAsyncResult BeginListApplicationDPUSizes(ListApplicationDPUSizesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListApplicationDPUSizes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApplicationDPUSizes.</param> /// /// <returns>Returns a ListApplicationDPUSizesResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> ListApplicationDPUSizesResponse EndListApplicationDPUSizes(IAsyncResult asyncResult); #endregion #region ListCalculationExecutions /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> ListCalculationExecutionsResponse ListCalculationExecutions(ListCalculationExecutionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListCalculationExecutions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCalculationExecutions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> IAsyncResult BeginListCalculationExecutions(ListCalculationExecutionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListCalculationExecutions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCalculationExecutions.</param> /// /// <returns>Returns a ListCalculationExecutionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> ListCalculationExecutionsResponse EndListCalculationExecutions(IAsyncResult asyncResult); #endregion #region ListCapacityReservations /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> ListCapacityReservationsResponse ListCapacityReservations(ListCapacityReservationsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListCapacityReservations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCapacityReservations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> IAsyncResult BeginListCapacityReservations(ListCapacityReservationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListCapacityReservations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCapacityReservations.</param> /// /// <returns>Returns a ListCapacityReservationsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> ListCapacityReservationsResponse EndListCapacityReservations(IAsyncResult asyncResult); #endregion #region ListDatabases /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> ListDatabasesResponse ListDatabases(ListDatabasesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListDatabases operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDatabases operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDatabases /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> IAsyncResult BeginListDatabases(ListDatabasesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListDatabases operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDatabases.</param> /// /// <returns>Returns a ListDatabasesResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> ListDatabasesResponse EndListDatabases(IAsyncResult asyncResult); #endregion #region ListDataCatalogs /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> ListDataCatalogsResponse ListDataCatalogs(ListDataCatalogsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListDataCatalogs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDataCatalogs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> IAsyncResult BeginListDataCatalogs(ListDataCatalogsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListDataCatalogs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataCatalogs.</param> /// /// <returns>Returns a ListDataCatalogsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> ListDataCatalogsResponse EndListDataCatalogs(IAsyncResult asyncResult); #endregion #region ListEngineVersions /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> ListEngineVersionsResponse ListEngineVersions(ListEngineVersionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListEngineVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEngineVersions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> IAsyncResult BeginListEngineVersions(ListEngineVersionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListEngineVersions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEngineVersions.</param> /// /// <returns>Returns a ListEngineVersionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> ListEngineVersionsResponse EndListEngineVersions(IAsyncResult asyncResult); #endregion #region ListExecutors /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> ListExecutorsResponse ListExecutors(ListExecutorsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListExecutors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListExecutors operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListExecutors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> IAsyncResult BeginListExecutors(ListExecutorsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListExecutors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListExecutors.</param> /// /// <returns>Returns a ListExecutorsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> ListExecutorsResponse EndListExecutors(IAsyncResult asyncResult); #endregion #region ListNamedQueries /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> ListNamedQueriesResponse ListNamedQueries(ListNamedQueriesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListNamedQueries operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNamedQueries /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> IAsyncResult BeginListNamedQueries(ListNamedQueriesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListNamedQueries operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListNamedQueries.</param> /// /// <returns>Returns a ListNamedQueriesResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> ListNamedQueriesResponse EndListNamedQueries(IAsyncResult asyncResult); #endregion #region ListNotebookMetadata /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> ListNotebookMetadataResponse ListNotebookMetadata(ListNotebookMetadataRequest request); /// <summary> /// Initiates the asynchronous execution of the ListNotebookMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNotebookMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> IAsyncResult BeginListNotebookMetadata(ListNotebookMetadataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListNotebookMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListNotebookMetadata.</param> /// /// <returns>Returns a ListNotebookMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> ListNotebookMetadataResponse EndListNotebookMetadata(IAsyncResult asyncResult); #endregion #region ListNotebookSessions /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> ListNotebookSessionsResponse ListNotebookSessions(ListNotebookSessionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListNotebookSessions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNotebookSessions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> IAsyncResult BeginListNotebookSessions(ListNotebookSessionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListNotebookSessions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListNotebookSessions.</param> /// /// <returns>Returns a ListNotebookSessionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> ListNotebookSessionsResponse EndListNotebookSessions(IAsyncResult asyncResult); #endregion #region ListPreparedStatements /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> ListPreparedStatementsResponse ListPreparedStatements(ListPreparedStatementsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListPreparedStatements operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPreparedStatements /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> IAsyncResult BeginListPreparedStatements(ListPreparedStatementsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListPreparedStatements operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPreparedStatements.</param> /// /// <returns>Returns a ListPreparedStatementsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> ListPreparedStatementsResponse EndListPreparedStatements(IAsyncResult asyncResult); #endregion #region ListQueryExecutions /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListQueryExecutions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListQueryExecutions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> IAsyncResult BeginListQueryExecutions(ListQueryExecutionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListQueryExecutions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListQueryExecutions.</param> /// /// <returns>Returns a ListQueryExecutionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> ListQueryExecutionsResponse EndListQueryExecutions(IAsyncResult asyncResult); #endregion #region ListSessions /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> ListSessionsResponse ListSessions(ListSessionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListSessions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSessions operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSessions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> IAsyncResult BeginListSessions(ListSessionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListSessions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListSessions.</param> /// /// <returns>Returns a ListSessionsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> ListSessionsResponse EndListSessions(IAsyncResult asyncResult); #endregion #region ListTableMetadata /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> ListTableMetadataResponse ListTableMetadata(ListTableMetadataRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTableMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTableMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> IAsyncResult BeginListTableMetadata(ListTableMetadataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTableMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTableMetadata.</param> /// /// <returns>Returns a ListTableMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> ListTableMetadataResponse EndListTableMetadata(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Lists the tags associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/athena-2017-05-18/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 Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region ListWorkGroups /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListWorkGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListWorkGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> IAsyncResult BeginListWorkGroups(ListWorkGroupsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListWorkGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListWorkGroups.</param> /// /// <returns>Returns a ListWorkGroupsResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> ListWorkGroupsResponse EndListWorkGroups(IAsyncResult asyncResult); #endregion #region PutCapacityAssignmentConfiguration /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> PutCapacityAssignmentConfigurationResponse PutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the PutCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutCapacityAssignmentConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> IAsyncResult BeginPutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutCapacityAssignmentConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutCapacityAssignmentConfiguration.</param> /// /// <returns>Returns a PutCapacityAssignmentConfigurationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> PutCapacityAssignmentConfigurationResponse EndPutCapacityAssignmentConfiguration(IAsyncResult asyncResult); #endregion #region StartCalculationExecution /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> StartCalculationExecutionResponse StartCalculationExecution(StartCalculationExecutionRequest request); /// <summary> /// Initiates the asynchronous execution of the StartCalculationExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartCalculationExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> IAsyncResult BeginStartCalculationExecution(StartCalculationExecutionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartCalculationExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartCalculationExecution.</param> /// /// <returns>Returns a StartCalculationExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> StartCalculationExecutionResponse EndStartCalculationExecution(IAsyncResult asyncResult); #endregion #region StartQueryExecution /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request); /// <summary> /// Initiates the asynchronous execution of the StartQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> IAsyncResult BeginStartQueryExecution(StartQueryExecutionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartQueryExecution.</param> /// /// <returns>Returns a StartQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> StartQueryExecutionResponse EndStartQueryExecution(IAsyncResult asyncResult); #endregion #region StartSession /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> StartSessionResponse StartSession(StartSessionRequest request); /// <summary> /// Initiates the asynchronous execution of the StartSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartSession operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> IAsyncResult BeginStartSession(StartSessionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSession.</param> /// /// <returns>Returns a StartSessionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> StartSessionResponse EndStartSession(IAsyncResult asyncResult); #endregion #region StopCalculationExecution /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> StopCalculationExecutionResponse StopCalculationExecution(StopCalculationExecutionRequest request); /// <summary> /// Initiates the asynchronous execution of the StopCalculationExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopCalculationExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> IAsyncResult BeginStopCalculationExecution(StopCalculationExecutionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StopCalculationExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopCalculationExecution.</param> /// /// <returns>Returns a StopCalculationExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> StopCalculationExecutionResponse EndStopCalculationExecution(IAsyncResult asyncResult); #endregion #region StopQueryExecution /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request); /// <summary> /// Initiates the asynchronous execution of the StopQueryExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopQueryExecution /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> IAsyncResult BeginStopQueryExecution(StopQueryExecutionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StopQueryExecution operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopQueryExecution.</param> /// /// <returns>Returns a StopQueryExecutionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> StopQueryExecutionResponse EndStopQueryExecution(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/athena-2017-05-18/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 Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region TerminateSession /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> TerminateSessionResponse TerminateSession(TerminateSessionRequest request); /// <summary> /// Initiates the asynchronous execution of the TerminateSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TerminateSession operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTerminateSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> IAsyncResult BeginTerminateSession(TerminateSessionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TerminateSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTerminateSession.</param> /// /// <returns>Returns a TerminateSessionResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> TerminateSessionResponse EndTerminateSession(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/athena-2017-05-18/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 Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateCapacityReservation /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> UpdateCapacityReservationResponse UpdateCapacityReservation(UpdateCapacityReservationRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateCapacityReservation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCapacityReservation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> IAsyncResult BeginUpdateCapacityReservation(UpdateCapacityReservationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateCapacityReservation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCapacityReservation.</param> /// /// <returns>Returns a UpdateCapacityReservationResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> UpdateCapacityReservationResponse EndUpdateCapacityReservation(IAsyncResult asyncResult); #endregion #region UpdateDataCatalog /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> UpdateDataCatalogResponse UpdateDataCatalog(UpdateDataCatalogRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateDataCatalog operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDataCatalog /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> IAsyncResult BeginUpdateDataCatalog(UpdateDataCatalogRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateDataCatalog operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDataCatalog.</param> /// /// <returns>Returns a UpdateDataCatalogResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> UpdateDataCatalogResponse EndUpdateDataCatalog(IAsyncResult asyncResult); #endregion #region UpdateNamedQuery /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> UpdateNamedQueryResponse UpdateNamedQuery(UpdateNamedQueryRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNamedQuery /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> IAsyncResult BeginUpdateNamedQuery(UpdateNamedQueryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateNamedQuery operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNamedQuery.</param> /// /// <returns>Returns a UpdateNamedQueryResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> UpdateNamedQueryResponse EndUpdateNamedQuery(IAsyncResult asyncResult); #endregion #region UpdateNotebook /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> UpdateNotebookResponse UpdateNotebook(UpdateNotebookRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateNotebook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNotebook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> IAsyncResult BeginUpdateNotebook(UpdateNotebookRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateNotebook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNotebook.</param> /// /// <returns>Returns a UpdateNotebookResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> UpdateNotebookResponse EndUpdateNotebook(IAsyncResult asyncResult); #endregion #region UpdateNotebookMetadata /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> UpdateNotebookMetadataResponse UpdateNotebookMetadata(UpdateNotebookMetadataRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateNotebookMetadata operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNotebookMetadata /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> IAsyncResult BeginUpdateNotebookMetadata(UpdateNotebookMetadataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateNotebookMetadata operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateNotebookMetadata.</param> /// /// <returns>Returns a UpdateNotebookMetadataResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> UpdateNotebookMetadataResponse EndUpdateNotebookMetadata(IAsyncResult asyncResult); #endregion #region UpdatePreparedStatement /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> UpdatePreparedStatementResponse UpdatePreparedStatement(UpdatePreparedStatementRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdatePreparedStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdatePreparedStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> IAsyncResult BeginUpdatePreparedStatement(UpdatePreparedStatementRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdatePreparedStatement operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdatePreparedStatement.</param> /// /// <returns>Returns a UpdatePreparedStatementResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> UpdatePreparedStatementResponse EndUpdatePreparedStatement(IAsyncResult asyncResult); #endregion #region UpdateWorkGroup /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> UpdateWorkGroupResponse UpdateWorkGroup(UpdateWorkGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup operation on AmazonAthenaClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateWorkGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> IAsyncResult BeginUpdateWorkGroup(UpdateWorkGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateWorkGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateWorkGroup.</param> /// /// <returns>Returns a UpdateWorkGroupResult from Athena.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> UpdateWorkGroupResponse EndUpdateWorkGroup(IAsyncResult asyncResult); #endregion } }
3,539
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Athena.Model.Internal.MarshallTransformations; using Amazon.Athena.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Athena { /// <summary> /// Implementation for accessing Athena /// /// Amazon Athena is an interactive query service that lets you use standard SQL to analyze /// data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run /// ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure /// to set up or manage. You pay only for the queries you run. Athena scales automatically—executing /// queries in parallel—so results are fast, even with large datasets and complex queries. /// For more information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What /// is Amazon Athena</a> in the <i>Amazon Athena User Guide</i>. /// /// /// <para> /// If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or /// later with the Amazon Athena API. Earlier version drivers do not support the API. /// For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing /// Amazon Athena with JDBC</a>. /// </para> /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> public partial class AmazonAthenaClient : AmazonServiceClient, IAmazonAthena { private static IServiceMetadata serviceMetadata = new AmazonAthenaMetadata(); private IAthenaPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAthenaPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AthenaPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(AmazonAthenaConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAthenaClient(AWSCredentials credentials) : this(credentials, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAthenaClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials and an /// AmazonAthenaClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(AWSCredentials credentials, AmazonAthenaConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAthenaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient 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 AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAthenaConfig 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 AmazonAthenaEndpointResolver()); } /// <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 BatchGetNamedQuery /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return Invoke<BatchGetNamedQueryResponse>(request, options); } /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public virtual Task<BatchGetNamedQueryResponse> BatchGetNamedQueryAsync(BatchGetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<BatchGetNamedQueryResponse>(request, options, cancellationToken); } #endregion #region BatchGetPreparedStatement /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> public virtual BatchGetPreparedStatementResponse BatchGetPreparedStatement(BatchGetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return Invoke<BatchGetPreparedStatementResponse>(request, options); } /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> public virtual Task<BatchGetPreparedStatementResponse> BatchGetPreparedStatementAsync(BatchGetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<BatchGetPreparedStatementResponse>(request, options, cancellationToken); } #endregion #region BatchGetQueryExecution /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> public virtual BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return Invoke<BatchGetQueryExecutionResponse>(request, options); } /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> public virtual Task<BatchGetQueryExecutionResponse> BatchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<BatchGetQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region CancelCapacityReservation /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> public virtual CancelCapacityReservationResponse CancelCapacityReservation(CancelCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return Invoke<CancelCapacityReservationResponse>(request, options); } /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> public virtual Task<CancelCapacityReservationResponse> CancelCapacityReservationAsync(CancelCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<CancelCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region CreateCapacityReservation /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> public virtual CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return Invoke<CreateCapacityReservationResponse>(request, options); } /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> public virtual Task<CreateCapacityReservationResponse> CreateCapacityReservationAsync(CreateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<CreateCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region CreateDataCatalog /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> public virtual CreateDataCatalogResponse CreateDataCatalog(CreateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return Invoke<CreateDataCatalogResponse>(request, options); } /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> public virtual Task<CreateDataCatalogResponse> CreateDataCatalogAsync(CreateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<CreateDataCatalogResponse>(request, options, cancellationToken); } #endregion #region CreateNamedQuery /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> public virtual CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return Invoke<CreateNamedQueryResponse>(request, options); } /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> public virtual Task<CreateNamedQueryResponse> CreateNamedQueryAsync(CreateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<CreateNamedQueryResponse>(request, options, cancellationToken); } #endregion #region CreateNotebook /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> public virtual CreateNotebookResponse CreateNotebook(CreateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return Invoke<CreateNotebookResponse>(request, options); } /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> public virtual Task<CreateNotebookResponse> CreateNotebookAsync(CreateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return InvokeAsync<CreateNotebookResponse>(request, options, cancellationToken); } #endregion #region CreatePreparedStatement /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> public virtual CreatePreparedStatementResponse CreatePreparedStatement(CreatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return Invoke<CreatePreparedStatementResponse>(request, options); } /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> public virtual Task<CreatePreparedStatementResponse> CreatePreparedStatementAsync(CreatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<CreatePreparedStatementResponse>(request, options, cancellationToken); } #endregion #region CreatePresignedNotebookUrl /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> public virtual CreatePresignedNotebookUrlResponse CreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return Invoke<CreatePresignedNotebookUrlResponse>(request, options); } /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> public virtual Task<CreatePresignedNotebookUrlResponse> CreatePresignedNotebookUrlAsync(CreatePresignedNotebookUrlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return InvokeAsync<CreatePresignedNotebookUrlResponse>(request, options, cancellationToken); } #endregion #region CreateWorkGroup /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> public virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return Invoke<CreateWorkGroupResponse>(request, options); } /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> public virtual Task<CreateWorkGroupResponse> CreateWorkGroupAsync(CreateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<CreateWorkGroupResponse>(request, options, cancellationToken); } #endregion #region DeleteCapacityReservation /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> public virtual DeleteCapacityReservationResponse DeleteCapacityReservation(DeleteCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return Invoke<DeleteCapacityReservationResponse>(request, options); } /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> public virtual Task<DeleteCapacityReservationResponse> DeleteCapacityReservationAsync(DeleteCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<DeleteCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region DeleteDataCatalog /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> public virtual DeleteDataCatalogResponse DeleteDataCatalog(DeleteDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return Invoke<DeleteDataCatalogResponse>(request, options); } /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> public virtual Task<DeleteDataCatalogResponse> DeleteDataCatalogAsync(DeleteDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<DeleteDataCatalogResponse>(request, options, cancellationToken); } #endregion #region DeleteNamedQuery /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> public virtual DeleteNamedQueryResponse DeleteNamedQuery(DeleteNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return Invoke<DeleteNamedQueryResponse>(request, options); } /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> public virtual Task<DeleteNamedQueryResponse> DeleteNamedQueryAsync(DeleteNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<DeleteNamedQueryResponse>(request, options, cancellationToken); } #endregion #region DeleteNotebook /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> public virtual DeleteNotebookResponse DeleteNotebook(DeleteNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return Invoke<DeleteNotebookResponse>(request, options); } /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> public virtual Task<DeleteNotebookResponse> DeleteNotebookAsync(DeleteNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return InvokeAsync<DeleteNotebookResponse>(request, options, cancellationToken); } #endregion #region DeletePreparedStatement /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> public virtual DeletePreparedStatementResponse DeletePreparedStatement(DeletePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return Invoke<DeletePreparedStatementResponse>(request, options); } /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> public virtual Task<DeletePreparedStatementResponse> DeletePreparedStatementAsync(DeletePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<DeletePreparedStatementResponse>(request, options, cancellationToken); } #endregion #region DeleteWorkGroup /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> public virtual DeleteWorkGroupResponse DeleteWorkGroup(DeleteWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return Invoke<DeleteWorkGroupResponse>(request, options); } /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> public virtual Task<DeleteWorkGroupResponse> DeleteWorkGroupAsync(DeleteWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteWorkGroupResponse>(request, options, cancellationToken); } #endregion #region ExportNotebook /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> public virtual ExportNotebookResponse ExportNotebook(ExportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return Invoke<ExportNotebookResponse>(request, options); } /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> public virtual Task<ExportNotebookResponse> ExportNotebookAsync(ExportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return InvokeAsync<ExportNotebookResponse>(request, options, cancellationToken); } #endregion #region GetCalculationExecution /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> public virtual GetCalculationExecutionResponse GetCalculationExecution(GetCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionResponse>(request, options); } /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> public virtual Task<GetCalculationExecutionResponse> GetCalculationExecutionAsync(GetCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync<GetCalculationExecutionResponse>(request, options, cancellationToken); } #endregion #region GetCalculationExecutionCode /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> public virtual GetCalculationExecutionCodeResponse GetCalculationExecutionCode(GetCalculationExecutionCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionCodeResponse>(request, options); } /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> public virtual Task<GetCalculationExecutionCodeResponse> GetCalculationExecutionCodeAsync(GetCalculationExecutionCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return InvokeAsync<GetCalculationExecutionCodeResponse>(request, options, cancellationToken); } #endregion #region GetCalculationExecutionStatus /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> public virtual GetCalculationExecutionStatusResponse GetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionStatusResponse>(request, options); } /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> public virtual Task<GetCalculationExecutionStatusResponse> GetCalculationExecutionStatusAsync(GetCalculationExecutionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return InvokeAsync<GetCalculationExecutionStatusResponse>(request, options, cancellationToken); } #endregion #region GetCapacityAssignmentConfiguration /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> public virtual GetCapacityAssignmentConfigurationResponse GetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke<GetCapacityAssignmentConfigurationResponse>(request, options); } /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> public virtual Task<GetCapacityAssignmentConfigurationResponse> GetCapacityAssignmentConfigurationAsync(GetCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return InvokeAsync<GetCapacityAssignmentConfigurationResponse>(request, options, cancellationToken); } #endregion #region GetCapacityReservation /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> public virtual GetCapacityReservationResponse GetCapacityReservation(GetCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return Invoke<GetCapacityReservationResponse>(request, options); } /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> public virtual Task<GetCapacityReservationResponse> GetCapacityReservationAsync(GetCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<GetCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region GetDatabase /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> public virtual GetDatabaseResponse GetDatabase(GetDatabaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return Invoke<GetDatabaseResponse>(request, options); } /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> public virtual Task<GetDatabaseResponse> GetDatabaseAsync(GetDatabaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return InvokeAsync<GetDatabaseResponse>(request, options, cancellationToken); } #endregion #region GetDataCatalog /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> public virtual GetDataCatalogResponse GetDataCatalog(GetDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return Invoke<GetDataCatalogResponse>(request, options); } /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> public virtual Task<GetDataCatalogResponse> GetDataCatalogAsync(GetDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<GetDataCatalogResponse>(request, options, cancellationToken); } #endregion #region GetNamedQuery /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> public virtual GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return Invoke<GetNamedQueryResponse>(request, options); } /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> public virtual Task<GetNamedQueryResponse> GetNamedQueryAsync(GetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<GetNamedQueryResponse>(request, options, cancellationToken); } #endregion #region GetNotebookMetadata /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> public virtual GetNotebookMetadataResponse GetNotebookMetadata(GetNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return Invoke<GetNotebookMetadataResponse>(request, options); } /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> public virtual Task<GetNotebookMetadataResponse> GetNotebookMetadataAsync(GetNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync<GetNotebookMetadataResponse>(request, options, cancellationToken); } #endregion #region GetPreparedStatement /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> public virtual GetPreparedStatementResponse GetPreparedStatement(GetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return Invoke<GetPreparedStatementResponse>(request, options); } /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> public virtual Task<GetPreparedStatementResponse> GetPreparedStatementAsync(GetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<GetPreparedStatementResponse>(request, options, cancellationToken); } #endregion #region GetQueryExecution /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> public virtual GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return Invoke<GetQueryExecutionResponse>(request, options); } /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> public virtual Task<GetQueryExecutionResponse> GetQueryExecutionAsync(GetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<GetQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region GetQueryResults /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> public virtual GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return Invoke<GetQueryResultsResponse>(request, options); } /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> public virtual Task<GetQueryResultsResponse> GetQueryResultsAsync(GetQueryResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return InvokeAsync<GetQueryResultsResponse>(request, options, cancellationToken); } #endregion #region GetQueryRuntimeStatistics /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> public virtual GetQueryRuntimeStatisticsResponse GetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return Invoke<GetQueryRuntimeStatisticsResponse>(request, options); } /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> public virtual Task<GetQueryRuntimeStatisticsResponse> GetQueryRuntimeStatisticsAsync(GetQueryRuntimeStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return InvokeAsync<GetQueryRuntimeStatisticsResponse>(request, options, cancellationToken); } #endregion #region GetSession /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> public virtual GetSessionResponse GetSession(GetSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return Invoke<GetSessionResponse>(request, options); } /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> public virtual Task<GetSessionResponse> GetSessionAsync(GetSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return InvokeAsync<GetSessionResponse>(request, options, cancellationToken); } #endregion #region GetSessionStatus /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> public virtual GetSessionStatusResponse GetSessionStatus(GetSessionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return Invoke<GetSessionStatusResponse>(request, options); } /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> public virtual Task<GetSessionStatusResponse> GetSessionStatusAsync(GetSessionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return InvokeAsync<GetSessionStatusResponse>(request, options, cancellationToken); } #endregion #region GetTableMetadata /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> public virtual GetTableMetadataResponse GetTableMetadata(GetTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return Invoke<GetTableMetadataResponse>(request, options); } /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> public virtual Task<GetTableMetadataResponse> GetTableMetadataAsync(GetTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return InvokeAsync<GetTableMetadataResponse>(request, options, cancellationToken); } #endregion #region GetWorkGroup /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> public virtual GetWorkGroupResponse GetWorkGroup(GetWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return Invoke<GetWorkGroupResponse>(request, options); } /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> public virtual Task<GetWorkGroupResponse> GetWorkGroupAsync(GetWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<GetWorkGroupResponse>(request, options, cancellationToken); } #endregion #region ImportNotebook /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> public virtual ImportNotebookResponse ImportNotebook(ImportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return Invoke<ImportNotebookResponse>(request, options); } /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> public virtual Task<ImportNotebookResponse> ImportNotebookAsync(ImportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return InvokeAsync<ImportNotebookResponse>(request, options, cancellationToken); } #endregion #region ListApplicationDPUSizes /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> public virtual ListApplicationDPUSizesResponse ListApplicationDPUSizes(ListApplicationDPUSizesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return Invoke<ListApplicationDPUSizesResponse>(request, options); } /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> public virtual Task<ListApplicationDPUSizesResponse> ListApplicationDPUSizesAsync(ListApplicationDPUSizesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return InvokeAsync<ListApplicationDPUSizesResponse>(request, options, cancellationToken); } #endregion #region ListCalculationExecutions /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> public virtual ListCalculationExecutionsResponse ListCalculationExecutions(ListCalculationExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return Invoke<ListCalculationExecutionsResponse>(request, options); } /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> public virtual Task<ListCalculationExecutionsResponse> ListCalculationExecutionsAsync(ListCalculationExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return InvokeAsync<ListCalculationExecutionsResponse>(request, options, cancellationToken); } #endregion #region ListCapacityReservations /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> public virtual ListCapacityReservationsResponse ListCapacityReservations(ListCapacityReservationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return Invoke<ListCapacityReservationsResponse>(request, options); } /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> public virtual Task<ListCapacityReservationsResponse> ListCapacityReservationsAsync(ListCapacityReservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return InvokeAsync<ListCapacityReservationsResponse>(request, options, cancellationToken); } #endregion #region ListDatabases /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> public virtual ListDatabasesResponse ListDatabases(ListDatabasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return Invoke<ListDatabasesResponse>(request, options); } /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> public virtual Task<ListDatabasesResponse> ListDatabasesAsync(ListDatabasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return InvokeAsync<ListDatabasesResponse>(request, options, cancellationToken); } #endregion #region ListDataCatalogs /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> public virtual ListDataCatalogsResponse ListDataCatalogs(ListDataCatalogsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return Invoke<ListDataCatalogsResponse>(request, options); } /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> public virtual Task<ListDataCatalogsResponse> ListDataCatalogsAsync(ListDataCatalogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return InvokeAsync<ListDataCatalogsResponse>(request, options, cancellationToken); } #endregion #region ListEngineVersions /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> public virtual ListEngineVersionsResponse ListEngineVersions(ListEngineVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return Invoke<ListEngineVersionsResponse>(request, options); } /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> public virtual Task<ListEngineVersionsResponse> ListEngineVersionsAsync(ListEngineVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return InvokeAsync<ListEngineVersionsResponse>(request, options, cancellationToken); } #endregion #region ListExecutors /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> public virtual ListExecutorsResponse ListExecutors(ListExecutorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return Invoke<ListExecutorsResponse>(request, options); } /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> public virtual Task<ListExecutorsResponse> ListExecutorsAsync(ListExecutorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return InvokeAsync<ListExecutorsResponse>(request, options, cancellationToken); } #endregion #region ListNamedQueries /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> public virtual ListNamedQueriesResponse ListNamedQueries(ListNamedQueriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return Invoke<ListNamedQueriesResponse>(request, options); } /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> public virtual Task<ListNamedQueriesResponse> ListNamedQueriesAsync(ListNamedQueriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return InvokeAsync<ListNamedQueriesResponse>(request, options, cancellationToken); } #endregion #region ListNotebookMetadata /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> public virtual ListNotebookMetadataResponse ListNotebookMetadata(ListNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return Invoke<ListNotebookMetadataResponse>(request, options); } /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> public virtual Task<ListNotebookMetadataResponse> ListNotebookMetadataAsync(ListNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync<ListNotebookMetadataResponse>(request, options, cancellationToken); } #endregion #region ListNotebookSessions /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> public virtual ListNotebookSessionsResponse ListNotebookSessions(ListNotebookSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return Invoke<ListNotebookSessionsResponse>(request, options); } /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> public virtual Task<ListNotebookSessionsResponse> ListNotebookSessionsAsync(ListNotebookSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return InvokeAsync<ListNotebookSessionsResponse>(request, options, cancellationToken); } #endregion #region ListPreparedStatements /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> public virtual ListPreparedStatementsResponse ListPreparedStatements(ListPreparedStatementsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return Invoke<ListPreparedStatementsResponse>(request, options); } /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> public virtual Task<ListPreparedStatementsResponse> ListPreparedStatementsAsync(ListPreparedStatementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return InvokeAsync<ListPreparedStatementsResponse>(request, options, cancellationToken); } #endregion #region ListQueryExecutions /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public virtual ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return Invoke<ListQueryExecutionsResponse>(request, options); } /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public virtual Task<ListQueryExecutionsResponse> ListQueryExecutionsAsync(ListQueryExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return InvokeAsync<ListQueryExecutionsResponse>(request, options, cancellationToken); } #endregion #region ListSessions /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> public virtual ListSessionsResponse ListSessions(ListSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return Invoke<ListSessionsResponse>(request, options); } /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> public virtual Task<ListSessionsResponse> ListSessionsAsync(ListSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return InvokeAsync<ListSessionsResponse>(request, options, cancellationToken); } #endregion #region ListTableMetadata /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> public virtual ListTableMetadataResponse ListTableMetadata(ListTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return Invoke<ListTableMetadataResponse>(request, options); } /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> public virtual Task<ListTableMetadataResponse> ListTableMetadataAsync(ListTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return InvokeAsync<ListTableMetadataResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 ListWorkGroups /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> public virtual ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return Invoke<ListWorkGroupsResponse>(request, options); } /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> public virtual Task<ListWorkGroupsResponse> ListWorkGroupsAsync(ListWorkGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return InvokeAsync<ListWorkGroupsResponse>(request, options, cancellationToken); } #endregion #region PutCapacityAssignmentConfiguration /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> public virtual PutCapacityAssignmentConfigurationResponse PutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke<PutCapacityAssignmentConfigurationResponse>(request, options); } /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> public virtual Task<PutCapacityAssignmentConfigurationResponse> PutCapacityAssignmentConfigurationAsync(PutCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return InvokeAsync<PutCapacityAssignmentConfigurationResponse>(request, options, cancellationToken); } #endregion #region StartCalculationExecution /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> public virtual StartCalculationExecutionResponse StartCalculationExecution(StartCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return Invoke<StartCalculationExecutionResponse>(request, options); } /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> public virtual Task<StartCalculationExecutionResponse> StartCalculationExecutionAsync(StartCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync<StartCalculationExecutionResponse>(request, options, cancellationToken); } #endregion #region StartQueryExecution /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> public virtual StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return Invoke<StartQueryExecutionResponse>(request, options); } /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> public virtual Task<StartQueryExecutionResponse> StartQueryExecutionAsync(StartQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<StartQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region StartSession /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> public virtual StartSessionResponse StartSession(StartSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return Invoke<StartSessionResponse>(request, options); } /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> public virtual Task<StartSessionResponse> StartSessionAsync(StartSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return InvokeAsync<StartSessionResponse>(request, options, cancellationToken); } #endregion #region StopCalculationExecution /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> public virtual StopCalculationExecutionResponse StopCalculationExecution(StopCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return Invoke<StopCalculationExecutionResponse>(request, options); } /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> public virtual Task<StopCalculationExecutionResponse> StopCalculationExecutionAsync(StopCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync<StopCalculationExecutionResponse>(request, options, cancellationToken); } #endregion #region StopQueryExecution /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> public virtual StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return Invoke<StopQueryExecutionResponse>(request, options); } /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> public virtual Task<StopQueryExecutionResponse> StopQueryExecutionAsync(StopQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<StopQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 TerminateSession /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> public virtual TerminateSessionResponse TerminateSession(TerminateSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return Invoke<TerminateSessionResponse>(request, options); } /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> public virtual Task<TerminateSessionResponse> TerminateSessionAsync(TerminateSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return InvokeAsync<TerminateSessionResponse>(request, options, cancellationToken); } #endregion #region UntagResource /// <summary> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 UpdateCapacityReservation /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> public virtual UpdateCapacityReservationResponse UpdateCapacityReservation(UpdateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return Invoke<UpdateCapacityReservationResponse>(request, options); } /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> public virtual Task<UpdateCapacityReservationResponse> UpdateCapacityReservationAsync(UpdateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<UpdateCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region UpdateDataCatalog /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> public virtual UpdateDataCatalogResponse UpdateDataCatalog(UpdateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return Invoke<UpdateDataCatalogResponse>(request, options); } /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> public virtual Task<UpdateDataCatalogResponse> UpdateDataCatalogAsync(UpdateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<UpdateDataCatalogResponse>(request, options, cancellationToken); } #endregion #region UpdateNamedQuery /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> public virtual UpdateNamedQueryResponse UpdateNamedQuery(UpdateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return Invoke<UpdateNamedQueryResponse>(request, options); } /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> public virtual Task<UpdateNamedQueryResponse> UpdateNamedQueryAsync(UpdateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<UpdateNamedQueryResponse>(request, options, cancellationToken); } #endregion #region UpdateNotebook /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> public virtual UpdateNotebookResponse UpdateNotebook(UpdateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return Invoke<UpdateNotebookResponse>(request, options); } /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> public virtual Task<UpdateNotebookResponse> UpdateNotebookAsync(UpdateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return InvokeAsync<UpdateNotebookResponse>(request, options, cancellationToken); } #endregion #region UpdateNotebookMetadata /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> public virtual UpdateNotebookMetadataResponse UpdateNotebookMetadata(UpdateNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return Invoke<UpdateNotebookMetadataResponse>(request, options); } /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> public virtual Task<UpdateNotebookMetadataResponse> UpdateNotebookMetadataAsync(UpdateNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync<UpdateNotebookMetadataResponse>(request, options, cancellationToken); } #endregion #region UpdatePreparedStatement /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> public virtual UpdatePreparedStatementResponse UpdatePreparedStatement(UpdatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return Invoke<UpdatePreparedStatementResponse>(request, options); } /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> public virtual Task<UpdatePreparedStatementResponse> UpdatePreparedStatementAsync(UpdatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<UpdatePreparedStatementResponse>(request, options, cancellationToken); } #endregion #region UpdateWorkGroup /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> public virtual UpdateWorkGroupResponse UpdateWorkGroup(UpdateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return Invoke<UpdateWorkGroupResponse>(request, options); } /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> public virtual Task<UpdateWorkGroupResponse> UpdateWorkGroupAsync(UpdateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<UpdateWorkGroupResponse>(request, options, cancellationToken); } #endregion } }
4,578
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Athena.Model; namespace Amazon.Athena { /// <summary> /// Interface for accessing Athena /// /// Amazon Athena is an interactive query service that lets you use standard SQL to analyze /// data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run /// ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure /// to set up or manage. You pay only for the queries you run. Athena scales automatically—executing /// queries in parallel—so results are fast, even with large datasets and complex queries. /// For more information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What /// is Amazon Athena</a> in the <i>Amazon Athena User Guide</i>. /// /// /// <para> /// If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or /// later with the Amazon Athena API. Earlier version drivers do not support the API. /// For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing /// Amazon Athena with JDBC</a>. /// </para> /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> public partial interface IAmazonAthena : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IAthenaPaginatorFactory Paginators { get; } #region BatchGetNamedQuery /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request); /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> Task<BatchGetNamedQueryResponse> BatchGetNamedQueryAsync(BatchGetNamedQueryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchGetPreparedStatement /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> BatchGetPreparedStatementResponse BatchGetPreparedStatement(BatchGetPreparedStatementRequest request); /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> Task<BatchGetPreparedStatementResponse> BatchGetPreparedStatementAsync(BatchGetPreparedStatementRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchGetQueryExecution /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request); /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> Task<BatchGetQueryExecutionResponse> BatchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelCapacityReservation /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> CancelCapacityReservationResponse CancelCapacityReservation(CancelCapacityReservationRequest request); /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> Task<CancelCapacityReservationResponse> CancelCapacityReservationAsync(CancelCapacityReservationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateCapacityReservation /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request); /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> Task<CreateCapacityReservationResponse> CreateCapacityReservationAsync(CreateCapacityReservationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDataCatalog /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> CreateDataCatalogResponse CreateDataCatalog(CreateDataCatalogRequest request); /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> Task<CreateDataCatalogResponse> CreateDataCatalogAsync(CreateDataCatalogRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateNamedQuery /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request); /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> Task<CreateNamedQueryResponse> CreateNamedQueryAsync(CreateNamedQueryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateNotebook /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> CreateNotebookResponse CreateNotebook(CreateNotebookRequest request); /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> Task<CreateNotebookResponse> CreateNotebookAsync(CreateNotebookRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePreparedStatement /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> CreatePreparedStatementResponse CreatePreparedStatement(CreatePreparedStatementRequest request); /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> Task<CreatePreparedStatementResponse> CreatePreparedStatementAsync(CreatePreparedStatementRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePresignedNotebookUrl /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> CreatePresignedNotebookUrlResponse CreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request); /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> Task<CreatePresignedNotebookUrlResponse> CreatePresignedNotebookUrlAsync(CreatePresignedNotebookUrlRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateWorkGroup /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request); /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> Task<CreateWorkGroupResponse> CreateWorkGroupAsync(CreateWorkGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteCapacityReservation /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> DeleteCapacityReservationResponse DeleteCapacityReservation(DeleteCapacityReservationRequest request); /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> Task<DeleteCapacityReservationResponse> DeleteCapacityReservationAsync(DeleteCapacityReservationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDataCatalog /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> DeleteDataCatalogResponse DeleteDataCatalog(DeleteDataCatalogRequest request); /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> Task<DeleteDataCatalogResponse> DeleteDataCatalogAsync(DeleteDataCatalogRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNamedQuery /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> DeleteNamedQueryResponse DeleteNamedQuery(DeleteNamedQueryRequest request); /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> Task<DeleteNamedQueryResponse> DeleteNamedQueryAsync(DeleteNamedQueryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNotebook /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> DeleteNotebookResponse DeleteNotebook(DeleteNotebookRequest request); /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> Task<DeleteNotebookResponse> DeleteNotebookAsync(DeleteNotebookRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePreparedStatement /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> DeletePreparedStatementResponse DeletePreparedStatement(DeletePreparedStatementRequest request); /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> Task<DeletePreparedStatementResponse> DeletePreparedStatementAsync(DeletePreparedStatementRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteWorkGroup /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> DeleteWorkGroupResponse DeleteWorkGroup(DeleteWorkGroupRequest request); /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> Task<DeleteWorkGroupResponse> DeleteWorkGroupAsync(DeleteWorkGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExportNotebook /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> ExportNotebookResponse ExportNotebook(ExportNotebookRequest request); /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> Task<ExportNotebookResponse> ExportNotebookAsync(ExportNotebookRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCalculationExecution /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> GetCalculationExecutionResponse GetCalculationExecution(GetCalculationExecutionRequest request); /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> Task<GetCalculationExecutionResponse> GetCalculationExecutionAsync(GetCalculationExecutionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCalculationExecutionCode /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> GetCalculationExecutionCodeResponse GetCalculationExecutionCode(GetCalculationExecutionCodeRequest request); /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> Task<GetCalculationExecutionCodeResponse> GetCalculationExecutionCodeAsync(GetCalculationExecutionCodeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCalculationExecutionStatus /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> GetCalculationExecutionStatusResponse GetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request); /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> Task<GetCalculationExecutionStatusResponse> GetCalculationExecutionStatusAsync(GetCalculationExecutionStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCapacityAssignmentConfiguration /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> GetCapacityAssignmentConfigurationResponse GetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request); /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> Task<GetCapacityAssignmentConfigurationResponse> GetCapacityAssignmentConfigurationAsync(GetCapacityAssignmentConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCapacityReservation /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> GetCapacityReservationResponse GetCapacityReservation(GetCapacityReservationRequest request); /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> Task<GetCapacityReservationResponse> GetCapacityReservationAsync(GetCapacityReservationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDatabase /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> GetDatabaseResponse GetDatabase(GetDatabaseRequest request); /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> Task<GetDatabaseResponse> GetDatabaseAsync(GetDatabaseRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDataCatalog /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> GetDataCatalogResponse GetDataCatalog(GetDataCatalogRequest request); /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> Task<GetDataCatalogResponse> GetDataCatalogAsync(GetDataCatalogRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetNamedQuery /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request); /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> Task<GetNamedQueryResponse> GetNamedQueryAsync(GetNamedQueryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetNotebookMetadata /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> GetNotebookMetadataResponse GetNotebookMetadata(GetNotebookMetadataRequest request); /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> Task<GetNotebookMetadataResponse> GetNotebookMetadataAsync(GetNotebookMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetPreparedStatement /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> GetPreparedStatementResponse GetPreparedStatement(GetPreparedStatementRequest request); /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> Task<GetPreparedStatementResponse> GetPreparedStatementAsync(GetPreparedStatementRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQueryExecution /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request); /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> Task<GetQueryExecutionResponse> GetQueryExecutionAsync(GetQueryExecutionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQueryResults /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request); /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> Task<GetQueryResultsResponse> GetQueryResultsAsync(GetQueryResultsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQueryRuntimeStatistics /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> GetQueryRuntimeStatisticsResponse GetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request); /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> Task<GetQueryRuntimeStatisticsResponse> GetQueryRuntimeStatisticsAsync(GetQueryRuntimeStatisticsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSession /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> GetSessionResponse GetSession(GetSessionRequest request); /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> Task<GetSessionResponse> GetSessionAsync(GetSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSessionStatus /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> GetSessionStatusResponse GetSessionStatus(GetSessionStatusRequest request); /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> Task<GetSessionStatusResponse> GetSessionStatusAsync(GetSessionStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetTableMetadata /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> GetTableMetadataResponse GetTableMetadata(GetTableMetadataRequest request); /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> Task<GetTableMetadataResponse> GetTableMetadataAsync(GetTableMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetWorkGroup /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> GetWorkGroupResponse GetWorkGroup(GetWorkGroupRequest request); /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> Task<GetWorkGroupResponse> GetWorkGroupAsync(GetWorkGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportNotebook /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> ImportNotebookResponse ImportNotebook(ImportNotebookRequest request); /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> Task<ImportNotebookResponse> ImportNotebookAsync(ImportNotebookRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListApplicationDPUSizes /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> ListApplicationDPUSizesResponse ListApplicationDPUSizes(ListApplicationDPUSizesRequest request); /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> Task<ListApplicationDPUSizesResponse> ListApplicationDPUSizesAsync(ListApplicationDPUSizesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCalculationExecutions /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> ListCalculationExecutionsResponse ListCalculationExecutions(ListCalculationExecutionsRequest request); /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> Task<ListCalculationExecutionsResponse> ListCalculationExecutionsAsync(ListCalculationExecutionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCapacityReservations /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> ListCapacityReservationsResponse ListCapacityReservations(ListCapacityReservationsRequest request); /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> Task<ListCapacityReservationsResponse> ListCapacityReservationsAsync(ListCapacityReservationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDatabases /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> ListDatabasesResponse ListDatabases(ListDatabasesRequest request); /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> Task<ListDatabasesResponse> ListDatabasesAsync(ListDatabasesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDataCatalogs /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> ListDataCatalogsResponse ListDataCatalogs(ListDataCatalogsRequest request); /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> Task<ListDataCatalogsResponse> ListDataCatalogsAsync(ListDataCatalogsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListEngineVersions /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> ListEngineVersionsResponse ListEngineVersions(ListEngineVersionsRequest request); /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> Task<ListEngineVersionsResponse> ListEngineVersionsAsync(ListEngineVersionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListExecutors /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> ListExecutorsResponse ListExecutors(ListExecutorsRequest request); /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> Task<ListExecutorsResponse> ListExecutorsAsync(ListExecutorsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListNamedQueries /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> ListNamedQueriesResponse ListNamedQueries(ListNamedQueriesRequest request); /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> Task<ListNamedQueriesResponse> ListNamedQueriesAsync(ListNamedQueriesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListNotebookMetadata /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> ListNotebookMetadataResponse ListNotebookMetadata(ListNotebookMetadataRequest request); /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> Task<ListNotebookMetadataResponse> ListNotebookMetadataAsync(ListNotebookMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListNotebookSessions /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> ListNotebookSessionsResponse ListNotebookSessions(ListNotebookSessionsRequest request); /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> Task<ListNotebookSessionsResponse> ListNotebookSessionsAsync(ListNotebookSessionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPreparedStatements /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> ListPreparedStatementsResponse ListPreparedStatements(ListPreparedStatementsRequest request); /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> Task<ListPreparedStatementsResponse> ListPreparedStatementsAsync(ListPreparedStatementsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListQueryExecutions /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request); /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> Task<ListQueryExecutionsResponse> ListQueryExecutionsAsync(ListQueryExecutionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListSessions /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> ListSessionsResponse ListSessions(ListSessionsRequest request); /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> Task<ListSessionsResponse> ListSessionsAsync(ListSessionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTableMetadata /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> ListTableMetadataResponse ListTableMetadata(ListTableMetadataRequest request); /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> Task<ListTableMetadataResponse> ListTableMetadataAsync(ListTableMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Lists the tags associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListWorkGroups /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request); /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> Task<ListWorkGroupsResponse> ListWorkGroupsAsync(ListWorkGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutCapacityAssignmentConfiguration /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> PutCapacityAssignmentConfigurationResponse PutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request); /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> Task<PutCapacityAssignmentConfigurationResponse> PutCapacityAssignmentConfigurationAsync(PutCapacityAssignmentConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartCalculationExecution /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> StartCalculationExecutionResponse StartCalculationExecution(StartCalculationExecutionRequest request); /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> Task<StartCalculationExecutionResponse> StartCalculationExecutionAsync(StartCalculationExecutionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartQueryExecution /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request); /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> Task<StartQueryExecutionResponse> StartQueryExecutionAsync(StartQueryExecutionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartSession /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> StartSessionResponse StartSession(StartSessionRequest request); /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> Task<StartSessionResponse> StartSessionAsync(StartSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopCalculationExecution /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> StopCalculationExecutionResponse StopCalculationExecution(StopCalculationExecutionRequest request); /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> Task<StopCalculationExecutionResponse> StopCalculationExecutionAsync(StopCalculationExecutionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopQueryExecution /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request); /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> Task<StopQueryExecutionResponse> StopQueryExecutionAsync(StopQueryExecutionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TerminateSession /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> TerminateSessionResponse TerminateSession(TerminateSessionRequest request); /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> Task<TerminateSessionResponse> TerminateSessionAsync(TerminateSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateCapacityReservation /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> UpdateCapacityReservationResponse UpdateCapacityReservation(UpdateCapacityReservationRequest request); /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> Task<UpdateCapacityReservationResponse> UpdateCapacityReservationAsync(UpdateCapacityReservationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDataCatalog /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> UpdateDataCatalogResponse UpdateDataCatalog(UpdateDataCatalogRequest request); /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> Task<UpdateDataCatalogResponse> UpdateDataCatalogAsync(UpdateDataCatalogRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNamedQuery /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> UpdateNamedQueryResponse UpdateNamedQuery(UpdateNamedQueryRequest request); /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> Task<UpdateNamedQueryResponse> UpdateNamedQueryAsync(UpdateNamedQueryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNotebook /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> UpdateNotebookResponse UpdateNotebook(UpdateNotebookRequest request); /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> Task<UpdateNotebookResponse> UpdateNotebookAsync(UpdateNotebookRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNotebookMetadata /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> UpdateNotebookMetadataResponse UpdateNotebookMetadata(UpdateNotebookMetadataRequest request); /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> Task<UpdateNotebookMetadataResponse> UpdateNotebookMetadataAsync(UpdateNotebookMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdatePreparedStatement /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> UpdatePreparedStatementResponse UpdatePreparedStatement(UpdatePreparedStatementRequest request); /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> Task<UpdatePreparedStatementResponse> UpdatePreparedStatementAsync(UpdatePreparedStatementRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateWorkGroup /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> UpdateWorkGroupResponse UpdateWorkGroup(UpdateWorkGroupRequest request); /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> Task<UpdateWorkGroupResponse> UpdateWorkGroupAsync(UpdateWorkGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
3,473
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.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.Athena.Model; using Amazon.Athena.Model.Internal.MarshallTransformations; using Amazon.Athena.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Athena { /// <summary> /// Implementation for accessing Athena /// /// Amazon Athena is an interactive query service that lets you use standard SQL to analyze /// data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run /// ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure /// to set up or manage. You pay only for the queries you run. Athena scales automatically—executing /// queries in parallel—so results are fast, even with large datasets and complex queries. /// For more information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What /// is Amazon Athena</a> in the <i>Amazon Athena User Guide</i>. /// /// /// <para> /// If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or /// later with the Amazon Athena API. Earlier version drivers do not support the API. /// For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing /// Amazon Athena with JDBC</a>. /// </para> /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> public partial class AmazonAthenaClient : AmazonServiceClient, IAmazonAthena { private static IServiceMetadata serviceMetadata = new AmazonAthenaMetadata(); #region Constructors /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(AmazonAthenaConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAthenaClient(AWSCredentials credentials) : this(credentials, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAthenaClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Credentials and an /// AmazonAthenaClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(AWSCredentials credentials, AmazonAthenaConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAthenaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig()) { } /// <summary> /// Constructs AmazonAthenaClient 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 AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient 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 AmazonAthenaClient Configuration Object</param> public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAthenaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IAthenaPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAthenaPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AthenaPaginatorFactory(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 AmazonAthenaEndpointResolver()); } /// <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 BatchGetNamedQuery internal virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return Invoke<BatchGetNamedQueryResponse>(request, options); } /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public virtual Task<BatchGetNamedQueryResponse> BatchGetNamedQueryAsync(BatchGetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<BatchGetNamedQueryResponse>(request, options, cancellationToken); } #endregion #region BatchGetPreparedStatement internal virtual BatchGetPreparedStatementResponse BatchGetPreparedStatement(BatchGetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return Invoke<BatchGetPreparedStatementResponse>(request, options); } /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> public virtual Task<BatchGetPreparedStatementResponse> BatchGetPreparedStatementAsync(BatchGetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<BatchGetPreparedStatementResponse>(request, options, cancellationToken); } #endregion #region BatchGetQueryExecution internal virtual BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return Invoke<BatchGetQueryExecutionResponse>(request, options); } /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> public virtual Task<BatchGetQueryExecutionResponse> BatchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<BatchGetQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region CancelCapacityReservation internal virtual CancelCapacityReservationResponse CancelCapacityReservation(CancelCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return Invoke<CancelCapacityReservationResponse>(request, options); } /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> public virtual Task<CancelCapacityReservationResponse> CancelCapacityReservationAsync(CancelCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<CancelCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region CreateCapacityReservation internal virtual CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return Invoke<CreateCapacityReservationResponse>(request, options); } /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> public virtual Task<CreateCapacityReservationResponse> CreateCapacityReservationAsync(CreateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<CreateCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region CreateDataCatalog internal virtual CreateDataCatalogResponse CreateDataCatalog(CreateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return Invoke<CreateDataCatalogResponse>(request, options); } /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> public virtual Task<CreateDataCatalogResponse> CreateDataCatalogAsync(CreateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<CreateDataCatalogResponse>(request, options, cancellationToken); } #endregion #region CreateNamedQuery internal virtual CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return Invoke<CreateNamedQueryResponse>(request, options); } /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> public virtual Task<CreateNamedQueryResponse> CreateNamedQueryAsync(CreateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<CreateNamedQueryResponse>(request, options, cancellationToken); } #endregion #region CreateNotebook internal virtual CreateNotebookResponse CreateNotebook(CreateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return Invoke<CreateNotebookResponse>(request, options); } /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> public virtual Task<CreateNotebookResponse> CreateNotebookAsync(CreateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return InvokeAsync<CreateNotebookResponse>(request, options, cancellationToken); } #endregion #region CreatePreparedStatement internal virtual CreatePreparedStatementResponse CreatePreparedStatement(CreatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return Invoke<CreatePreparedStatementResponse>(request, options); } /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> public virtual Task<CreatePreparedStatementResponse> CreatePreparedStatementAsync(CreatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<CreatePreparedStatementResponse>(request, options, cancellationToken); } #endregion #region CreatePresignedNotebookUrl internal virtual CreatePresignedNotebookUrlResponse CreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return Invoke<CreatePresignedNotebookUrlResponse>(request, options); } /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> public virtual Task<CreatePresignedNotebookUrlResponse> CreatePresignedNotebookUrlAsync(CreatePresignedNotebookUrlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return InvokeAsync<CreatePresignedNotebookUrlResponse>(request, options, cancellationToken); } #endregion #region CreateWorkGroup internal virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return Invoke<CreateWorkGroupResponse>(request, options); } /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> public virtual Task<CreateWorkGroupResponse> CreateWorkGroupAsync(CreateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<CreateWorkGroupResponse>(request, options, cancellationToken); } #endregion #region DeleteCapacityReservation internal virtual DeleteCapacityReservationResponse DeleteCapacityReservation(DeleteCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return Invoke<DeleteCapacityReservationResponse>(request, options); } /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> public virtual Task<DeleteCapacityReservationResponse> DeleteCapacityReservationAsync(DeleteCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<DeleteCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region DeleteDataCatalog internal virtual DeleteDataCatalogResponse DeleteDataCatalog(DeleteDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return Invoke<DeleteDataCatalogResponse>(request, options); } /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> public virtual Task<DeleteDataCatalogResponse> DeleteDataCatalogAsync(DeleteDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<DeleteDataCatalogResponse>(request, options, cancellationToken); } #endregion #region DeleteNamedQuery internal virtual DeleteNamedQueryResponse DeleteNamedQuery(DeleteNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return Invoke<DeleteNamedQueryResponse>(request, options); } /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> public virtual Task<DeleteNamedQueryResponse> DeleteNamedQueryAsync(DeleteNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<DeleteNamedQueryResponse>(request, options, cancellationToken); } #endregion #region DeleteNotebook internal virtual DeleteNotebookResponse DeleteNotebook(DeleteNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return Invoke<DeleteNotebookResponse>(request, options); } /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> public virtual Task<DeleteNotebookResponse> DeleteNotebookAsync(DeleteNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return InvokeAsync<DeleteNotebookResponse>(request, options, cancellationToken); } #endregion #region DeletePreparedStatement internal virtual DeletePreparedStatementResponse DeletePreparedStatement(DeletePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return Invoke<DeletePreparedStatementResponse>(request, options); } /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> public virtual Task<DeletePreparedStatementResponse> DeletePreparedStatementAsync(DeletePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<DeletePreparedStatementResponse>(request, options, cancellationToken); } #endregion #region DeleteWorkGroup internal virtual DeleteWorkGroupResponse DeleteWorkGroup(DeleteWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return Invoke<DeleteWorkGroupResponse>(request, options); } /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> public virtual Task<DeleteWorkGroupResponse> DeleteWorkGroupAsync(DeleteWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteWorkGroupResponse>(request, options, cancellationToken); } #endregion #region ExportNotebook internal virtual ExportNotebookResponse ExportNotebook(ExportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return Invoke<ExportNotebookResponse>(request, options); } /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> public virtual Task<ExportNotebookResponse> ExportNotebookAsync(ExportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return InvokeAsync<ExportNotebookResponse>(request, options, cancellationToken); } #endregion #region GetCalculationExecution internal virtual GetCalculationExecutionResponse GetCalculationExecution(GetCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionResponse>(request, options); } /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> public virtual Task<GetCalculationExecutionResponse> GetCalculationExecutionAsync(GetCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync<GetCalculationExecutionResponse>(request, options, cancellationToken); } #endregion #region GetCalculationExecutionCode internal virtual GetCalculationExecutionCodeResponse GetCalculationExecutionCode(GetCalculationExecutionCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionCodeResponse>(request, options); } /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> public virtual Task<GetCalculationExecutionCodeResponse> GetCalculationExecutionCodeAsync(GetCalculationExecutionCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return InvokeAsync<GetCalculationExecutionCodeResponse>(request, options, cancellationToken); } #endregion #region GetCalculationExecutionStatus internal virtual GetCalculationExecutionStatusResponse GetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return Invoke<GetCalculationExecutionStatusResponse>(request, options); } /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> public virtual Task<GetCalculationExecutionStatusResponse> GetCalculationExecutionStatusAsync(GetCalculationExecutionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return InvokeAsync<GetCalculationExecutionStatusResponse>(request, options, cancellationToken); } #endregion #region GetCapacityAssignmentConfiguration internal virtual GetCapacityAssignmentConfigurationResponse GetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke<GetCapacityAssignmentConfigurationResponse>(request, options); } /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> public virtual Task<GetCapacityAssignmentConfigurationResponse> GetCapacityAssignmentConfigurationAsync(GetCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return InvokeAsync<GetCapacityAssignmentConfigurationResponse>(request, options, cancellationToken); } #endregion #region GetCapacityReservation internal virtual GetCapacityReservationResponse GetCapacityReservation(GetCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return Invoke<GetCapacityReservationResponse>(request, options); } /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> public virtual Task<GetCapacityReservationResponse> GetCapacityReservationAsync(GetCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<GetCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region GetDatabase internal virtual GetDatabaseResponse GetDatabase(GetDatabaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return Invoke<GetDatabaseResponse>(request, options); } /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> public virtual Task<GetDatabaseResponse> GetDatabaseAsync(GetDatabaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return InvokeAsync<GetDatabaseResponse>(request, options, cancellationToken); } #endregion #region GetDataCatalog internal virtual GetDataCatalogResponse GetDataCatalog(GetDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return Invoke<GetDataCatalogResponse>(request, options); } /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> public virtual Task<GetDataCatalogResponse> GetDataCatalogAsync(GetDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<GetDataCatalogResponse>(request, options, cancellationToken); } #endregion #region GetNamedQuery internal virtual GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return Invoke<GetNamedQueryResponse>(request, options); } /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> public virtual Task<GetNamedQueryResponse> GetNamedQueryAsync(GetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<GetNamedQueryResponse>(request, options, cancellationToken); } #endregion #region GetNotebookMetadata internal virtual GetNotebookMetadataResponse GetNotebookMetadata(GetNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return Invoke<GetNotebookMetadataResponse>(request, options); } /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> public virtual Task<GetNotebookMetadataResponse> GetNotebookMetadataAsync(GetNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync<GetNotebookMetadataResponse>(request, options, cancellationToken); } #endregion #region GetPreparedStatement internal virtual GetPreparedStatementResponse GetPreparedStatement(GetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return Invoke<GetPreparedStatementResponse>(request, options); } /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> public virtual Task<GetPreparedStatementResponse> GetPreparedStatementAsync(GetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<GetPreparedStatementResponse>(request, options, cancellationToken); } #endregion #region GetQueryExecution internal virtual GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return Invoke<GetQueryExecutionResponse>(request, options); } /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> public virtual Task<GetQueryExecutionResponse> GetQueryExecutionAsync(GetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<GetQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region GetQueryResults internal virtual GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return Invoke<GetQueryResultsResponse>(request, options); } /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> public virtual Task<GetQueryResultsResponse> GetQueryResultsAsync(GetQueryResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return InvokeAsync<GetQueryResultsResponse>(request, options, cancellationToken); } #endregion #region GetQueryRuntimeStatistics internal virtual GetQueryRuntimeStatisticsResponse GetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return Invoke<GetQueryRuntimeStatisticsResponse>(request, options); } /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> public virtual Task<GetQueryRuntimeStatisticsResponse> GetQueryRuntimeStatisticsAsync(GetQueryRuntimeStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return InvokeAsync<GetQueryRuntimeStatisticsResponse>(request, options, cancellationToken); } #endregion #region GetSession internal virtual GetSessionResponse GetSession(GetSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return Invoke<GetSessionResponse>(request, options); } /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> public virtual Task<GetSessionResponse> GetSessionAsync(GetSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return InvokeAsync<GetSessionResponse>(request, options, cancellationToken); } #endregion #region GetSessionStatus internal virtual GetSessionStatusResponse GetSessionStatus(GetSessionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return Invoke<GetSessionStatusResponse>(request, options); } /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> public virtual Task<GetSessionStatusResponse> GetSessionStatusAsync(GetSessionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return InvokeAsync<GetSessionStatusResponse>(request, options, cancellationToken); } #endregion #region GetTableMetadata internal virtual GetTableMetadataResponse GetTableMetadata(GetTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return Invoke<GetTableMetadataResponse>(request, options); } /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> public virtual Task<GetTableMetadataResponse> GetTableMetadataAsync(GetTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return InvokeAsync<GetTableMetadataResponse>(request, options, cancellationToken); } #endregion #region GetWorkGroup internal virtual GetWorkGroupResponse GetWorkGroup(GetWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return Invoke<GetWorkGroupResponse>(request, options); } /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> public virtual Task<GetWorkGroupResponse> GetWorkGroupAsync(GetWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<GetWorkGroupResponse>(request, options, cancellationToken); } #endregion #region ImportNotebook internal virtual ImportNotebookResponse ImportNotebook(ImportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return Invoke<ImportNotebookResponse>(request, options); } /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> public virtual Task<ImportNotebookResponse> ImportNotebookAsync(ImportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return InvokeAsync<ImportNotebookResponse>(request, options, cancellationToken); } #endregion #region ListApplicationDPUSizes internal virtual ListApplicationDPUSizesResponse ListApplicationDPUSizes(ListApplicationDPUSizesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return Invoke<ListApplicationDPUSizesResponse>(request, options); } /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> public virtual Task<ListApplicationDPUSizesResponse> ListApplicationDPUSizesAsync(ListApplicationDPUSizesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return InvokeAsync<ListApplicationDPUSizesResponse>(request, options, cancellationToken); } #endregion #region ListCalculationExecutions internal virtual ListCalculationExecutionsResponse ListCalculationExecutions(ListCalculationExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return Invoke<ListCalculationExecutionsResponse>(request, options); } /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> public virtual Task<ListCalculationExecutionsResponse> ListCalculationExecutionsAsync(ListCalculationExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return InvokeAsync<ListCalculationExecutionsResponse>(request, options, cancellationToken); } #endregion #region ListCapacityReservations internal virtual ListCapacityReservationsResponse ListCapacityReservations(ListCapacityReservationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return Invoke<ListCapacityReservationsResponse>(request, options); } /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> public virtual Task<ListCapacityReservationsResponse> ListCapacityReservationsAsync(ListCapacityReservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return InvokeAsync<ListCapacityReservationsResponse>(request, options, cancellationToken); } #endregion #region ListDatabases internal virtual ListDatabasesResponse ListDatabases(ListDatabasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return Invoke<ListDatabasesResponse>(request, options); } /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> public virtual Task<ListDatabasesResponse> ListDatabasesAsync(ListDatabasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return InvokeAsync<ListDatabasesResponse>(request, options, cancellationToken); } #endregion #region ListDataCatalogs internal virtual ListDataCatalogsResponse ListDataCatalogs(ListDataCatalogsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return Invoke<ListDataCatalogsResponse>(request, options); } /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> public virtual Task<ListDataCatalogsResponse> ListDataCatalogsAsync(ListDataCatalogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return InvokeAsync<ListDataCatalogsResponse>(request, options, cancellationToken); } #endregion #region ListEngineVersions internal virtual ListEngineVersionsResponse ListEngineVersions(ListEngineVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return Invoke<ListEngineVersionsResponse>(request, options); } /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> public virtual Task<ListEngineVersionsResponse> ListEngineVersionsAsync(ListEngineVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return InvokeAsync<ListEngineVersionsResponse>(request, options, cancellationToken); } #endregion #region ListExecutors internal virtual ListExecutorsResponse ListExecutors(ListExecutorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return Invoke<ListExecutorsResponse>(request, options); } /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> public virtual Task<ListExecutorsResponse> ListExecutorsAsync(ListExecutorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return InvokeAsync<ListExecutorsResponse>(request, options, cancellationToken); } #endregion #region ListNamedQueries internal virtual ListNamedQueriesResponse ListNamedQueries(ListNamedQueriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return Invoke<ListNamedQueriesResponse>(request, options); } /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> public virtual Task<ListNamedQueriesResponse> ListNamedQueriesAsync(ListNamedQueriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return InvokeAsync<ListNamedQueriesResponse>(request, options, cancellationToken); } #endregion #region ListNotebookMetadata internal virtual ListNotebookMetadataResponse ListNotebookMetadata(ListNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return Invoke<ListNotebookMetadataResponse>(request, options); } /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> public virtual Task<ListNotebookMetadataResponse> ListNotebookMetadataAsync(ListNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync<ListNotebookMetadataResponse>(request, options, cancellationToken); } #endregion #region ListNotebookSessions internal virtual ListNotebookSessionsResponse ListNotebookSessions(ListNotebookSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return Invoke<ListNotebookSessionsResponse>(request, options); } /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> public virtual Task<ListNotebookSessionsResponse> ListNotebookSessionsAsync(ListNotebookSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return InvokeAsync<ListNotebookSessionsResponse>(request, options, cancellationToken); } #endregion #region ListPreparedStatements internal virtual ListPreparedStatementsResponse ListPreparedStatements(ListPreparedStatementsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return Invoke<ListPreparedStatementsResponse>(request, options); } /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> public virtual Task<ListPreparedStatementsResponse> ListPreparedStatementsAsync(ListPreparedStatementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return InvokeAsync<ListPreparedStatementsResponse>(request, options, cancellationToken); } #endregion #region ListQueryExecutions internal virtual ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return Invoke<ListQueryExecutionsResponse>(request, options); } /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public virtual Task<ListQueryExecutionsResponse> ListQueryExecutionsAsync(ListQueryExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return InvokeAsync<ListQueryExecutionsResponse>(request, options, cancellationToken); } #endregion #region ListSessions internal virtual ListSessionsResponse ListSessions(ListSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return Invoke<ListSessionsResponse>(request, options); } /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> public virtual Task<ListSessionsResponse> ListSessionsAsync(ListSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return InvokeAsync<ListSessionsResponse>(request, options, cancellationToken); } #endregion #region ListTableMetadata internal virtual ListTableMetadataResponse ListTableMetadata(ListTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return Invoke<ListTableMetadataResponse>(request, options); } /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> public virtual Task<ListTableMetadataResponse> ListTableMetadataAsync(ListTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return InvokeAsync<ListTableMetadataResponse>(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 associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 ListWorkGroups internal virtual ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return Invoke<ListWorkGroupsResponse>(request, options); } /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> public virtual Task<ListWorkGroupsResponse> ListWorkGroupsAsync(ListWorkGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return InvokeAsync<ListWorkGroupsResponse>(request, options, cancellationToken); } #endregion #region PutCapacityAssignmentConfiguration internal virtual PutCapacityAssignmentConfigurationResponse PutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke<PutCapacityAssignmentConfigurationResponse>(request, options); } /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> public virtual Task<PutCapacityAssignmentConfigurationResponse> PutCapacityAssignmentConfigurationAsync(PutCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return InvokeAsync<PutCapacityAssignmentConfigurationResponse>(request, options, cancellationToken); } #endregion #region StartCalculationExecution internal virtual StartCalculationExecutionResponse StartCalculationExecution(StartCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return Invoke<StartCalculationExecutionResponse>(request, options); } /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> public virtual Task<StartCalculationExecutionResponse> StartCalculationExecutionAsync(StartCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync<StartCalculationExecutionResponse>(request, options, cancellationToken); } #endregion #region StartQueryExecution internal virtual StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return Invoke<StartQueryExecutionResponse>(request, options); } /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> public virtual Task<StartQueryExecutionResponse> StartQueryExecutionAsync(StartQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<StartQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region StartSession internal virtual StartSessionResponse StartSession(StartSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return Invoke<StartSessionResponse>(request, options); } /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> public virtual Task<StartSessionResponse> StartSessionAsync(StartSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return InvokeAsync<StartSessionResponse>(request, options, cancellationToken); } #endregion #region StopCalculationExecution internal virtual StopCalculationExecutionResponse StopCalculationExecution(StopCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return Invoke<StopCalculationExecutionResponse>(request, options); } /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> public virtual Task<StopCalculationExecutionResponse> StopCalculationExecutionAsync(StopCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync<StopCalculationExecutionResponse>(request, options, cancellationToken); } #endregion #region StopQueryExecution internal virtual StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return Invoke<StopQueryExecutionResponse>(request, options); } /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> public virtual Task<StopQueryExecutionResponse> StopQueryExecutionAsync(StopQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync<StopQueryExecutionResponse>(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 TerminateSession internal virtual TerminateSessionResponse TerminateSession(TerminateSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return Invoke<TerminateSessionResponse>(request, options); } /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> public virtual Task<TerminateSessionResponse> TerminateSessionAsync(TerminateSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return InvokeAsync<TerminateSessionResponse>(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> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/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 UpdateCapacityReservation internal virtual UpdateCapacityReservationResponse UpdateCapacityReservation(UpdateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return Invoke<UpdateCapacityReservationResponse>(request, options); } /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> public virtual Task<UpdateCapacityReservationResponse> UpdateCapacityReservationAsync(UpdateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync<UpdateCapacityReservationResponse>(request, options, cancellationToken); } #endregion #region UpdateDataCatalog internal virtual UpdateDataCatalogResponse UpdateDataCatalog(UpdateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return Invoke<UpdateDataCatalogResponse>(request, options); } /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> public virtual Task<UpdateDataCatalogResponse> UpdateDataCatalogAsync(UpdateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return InvokeAsync<UpdateDataCatalogResponse>(request, options, cancellationToken); } #endregion #region UpdateNamedQuery internal virtual UpdateNamedQueryResponse UpdateNamedQuery(UpdateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return Invoke<UpdateNamedQueryResponse>(request, options); } /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> public virtual Task<UpdateNamedQueryResponse> UpdateNamedQueryAsync(UpdateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return InvokeAsync<UpdateNamedQueryResponse>(request, options, cancellationToken); } #endregion #region UpdateNotebook internal virtual UpdateNotebookResponse UpdateNotebook(UpdateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return Invoke<UpdateNotebookResponse>(request, options); } /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> public virtual Task<UpdateNotebookResponse> UpdateNotebookAsync(UpdateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return InvokeAsync<UpdateNotebookResponse>(request, options, cancellationToken); } #endregion #region UpdateNotebookMetadata internal virtual UpdateNotebookMetadataResponse UpdateNotebookMetadata(UpdateNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return Invoke<UpdateNotebookMetadataResponse>(request, options); } /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> public virtual Task<UpdateNotebookMetadataResponse> UpdateNotebookMetadataAsync(UpdateNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync<UpdateNotebookMetadataResponse>(request, options, cancellationToken); } #endregion #region UpdatePreparedStatement internal virtual UpdatePreparedStatementResponse UpdatePreparedStatement(UpdatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return Invoke<UpdatePreparedStatementResponse>(request, options); } /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> public virtual Task<UpdatePreparedStatementResponse> UpdatePreparedStatementAsync(UpdatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync<UpdatePreparedStatementResponse>(request, options, cancellationToken); } #endregion #region UpdateWorkGroup internal virtual UpdateWorkGroupResponse UpdateWorkGroup(UpdateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return Invoke<UpdateWorkGroupResponse>(request, options); } /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> public virtual Task<UpdateWorkGroupResponse> UpdateWorkGroupAsync(UpdateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return InvokeAsync<UpdateWorkGroupResponse>(request, options, cancellationToken); } #endregion } }
3,354
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Athena.Model; namespace Amazon.Athena { /// <summary> /// Interface for accessing Athena /// /// Amazon Athena is an interactive query service that lets you use standard SQL to analyze /// data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run /// ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure /// to set up or manage. You pay only for the queries you run. Athena scales automatically—executing /// queries in parallel—so results are fast, even with large datasets and complex queries. /// For more information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What /// is Amazon Athena</a> in the <i>Amazon Athena User Guide</i>. /// /// /// <para> /// If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or /// later with the Amazon Athena API. Earlier version drivers do not support the API. /// For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing /// Amazon Athena with JDBC</a>. /// </para> /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> public partial interface IAmazonAthena : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IAthenaPaginatorFactory Paginators { get; } #endif #region BatchGetNamedQuery /// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use <a>ListNamedQueriesInput</a> to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// <a>UnprocessedNamedQueryId</a>. Named queries differ from executed queries. Use <a>BatchGetQueryExecutionInput</a> /// to get details about each unique query execution, and <a>ListQueryExecutionsInput</a> /// to get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> Task<BatchGetNamedQueryResponse> BatchGetNamedQueryAsync(BatchGetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchGetPreparedStatement /// <summary> /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement">REST API Reference for BatchGetPreparedStatement Operation</seealso> Task<BatchGetPreparedStatementResponse> BatchGetPreparedStatementAsync(BatchGetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchGetQueryExecution /// <summary> /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use <a>ListQueryExecutionsInput$WorkGroup</a>. Query executions differ from named /// (saved) queries. Use <a>BatchGetNamedQueryInput</a> to get details about named queries. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchGetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution">REST API Reference for BatchGetQueryExecution Operation</seealso> Task<BatchGetQueryExecutionResponse> BatchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelCapacityReservation /// <summary> /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation">REST API Reference for CancelCapacityReservation Operation</seealso> Task<CancelCapacityReservationResponse> CancelCapacityReservationAsync(CancelCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateCapacityReservation /// <summary> /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation">REST API Reference for CreateCapacityReservation Operation</seealso> Task<CreateCapacityReservationResponse> CreateCapacityReservationAsync(CreateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDataCatalog /// <summary> /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog">REST API Reference for CreateDataCatalog Operation</seealso> Task<CreateDataCatalogResponse> CreateDataCatalogAsync(CreateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateNamedQuery /// <summary> /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery">REST API Reference for CreateNamedQuery Operation</seealso> Task<CreateNamedQueryResponse> CreateNamedQueryAsync(CreateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateNotebook /// <summary> /// Creates an empty <code>ipynb</code> file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNotebook">REST API Reference for CreateNotebook Operation</seealso> Task<CreateNotebookResponse> CreateNotebookAsync(CreateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePreparedStatement /// <summary> /// Creates a prepared statement for use with SQL queries in Athena. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement">REST API Reference for CreatePreparedStatement Operation</seealso> Task<CreatePreparedStatementResponse> CreatePreparedStatementAsync(CreatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePresignedNotebookUrl /// <summary> /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant /// programmatic access</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePresignedNotebookUrl service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl">REST API Reference for CreatePresignedNotebookUrl Operation</seealso> Task<CreatePresignedNotebookUrlResponse> CreatePresignedNotebookUrlAsync(CreatePresignedNotebookUrlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateWorkGroup /// <summary> /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> Task<CreateWorkGroupResponse> CreateWorkGroupAsync(CreateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteCapacityReservation /// <summary> /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by <code>GetCapacityReservation</code>, and deleted reservations do not appear /// in the output of <code>ListCapacityReservations</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation">REST API Reference for DeleteCapacityReservation Operation</seealso> Task<DeleteCapacityReservationResponse> DeleteCapacityReservationAsync(DeleteCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDataCatalog /// <summary> /// Deletes a data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog">REST API Reference for DeleteDataCatalog Operation</seealso> Task<DeleteDataCatalogResponse> DeleteDataCatalogAsync(DeleteDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNamedQuery /// <summary> /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery">REST API Reference for DeleteNamedQuery Operation</seealso> Task<DeleteNamedQueryResponse> DeleteNamedQueryAsync(DeleteNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNotebook /// <summary> /// Deletes the specified notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNotebook">REST API Reference for DeleteNotebook Operation</seealso> Task<DeleteNotebookResponse> DeleteNotebookAsync(DeleteNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePreparedStatement /// <summary> /// Deletes the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement">REST API Reference for DeletePreparedStatement Operation</seealso> Task<DeletePreparedStatementResponse> DeletePreparedStatementAsync(DeletePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteWorkGroup /// <summary> /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup">REST API Reference for DeleteWorkGroup Operation</seealso> Task<DeleteWorkGroupResponse> DeleteWorkGroupAsync(DeleteWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExportNotebook /// <summary> /// Exports the specified notebook and its metadata. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ExportNotebook">REST API Reference for ExportNotebook Operation</seealso> Task<ExportNotebookResponse> ExportNotebookAsync(ExportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCalculationExecution /// <summary> /// Describes a previously submitted calculation execution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecution">REST API Reference for GetCalculationExecution Operation</seealso> Task<GetCalculationExecutionResponse> GetCalculationExecutionAsync(GetCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCalculationExecutionCode /// <summary> /// Retrieves the unencrypted code that was executed for the calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionCode service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionCode service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode">REST API Reference for GetCalculationExecutionCode Operation</seealso> Task<GetCalculationExecutionCodeResponse> GetCalculationExecutionCodeAsync(GetCalculationExecutionCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCalculationExecutionStatus /// <summary> /// Gets the status of a current calculation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCalculationExecutionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCalculationExecutionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionStatus">REST API Reference for GetCalculationExecutionStatus Operation</seealso> Task<GetCalculationExecutionStatusResponse> GetCalculationExecutionStatusAsync(GetCalculationExecutionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCapacityAssignmentConfiguration /// <summary> /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration">REST API Reference for GetCapacityAssignmentConfiguration Operation</seealso> Task<GetCapacityAssignmentConfigurationResponse> GetCapacityAssignmentConfigurationAsync(GetCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCapacityReservation /// <summary> /// Returns information about the capacity reservation with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation">REST API Reference for GetCapacityReservation Operation</seealso> Task<GetCapacityReservationResponse> GetCapacityReservationAsync(GetCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDatabase /// <summary> /// Returns a database object for the specified database and data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDatabase service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDatabase service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase">REST API Reference for GetDatabase Operation</seealso> Task<GetDatabaseResponse> GetDatabaseAsync(GetDatabaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDataCatalog /// <summary> /// Returns the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog">REST API Reference for GetDataCatalog Operation</seealso> Task<GetDataCatalogResponse> GetDataCatalogAsync(GetDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetNamedQuery /// <summary> /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery">REST API Reference for GetNamedQuery Operation</seealso> Task<GetNamedQueryResponse> GetNamedQueryAsync(GetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetNotebookMetadata /// <summary> /// Retrieves notebook metadata for the specified notebook ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNotebookMetadata">REST API Reference for GetNotebookMetadata Operation</seealso> Task<GetNotebookMetadataResponse> GetNotebookMetadataAsync(GetNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetPreparedStatement /// <summary> /// Retrieves the prepared statement with the specified name from the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement">REST API Reference for GetPreparedStatement Operation</seealso> Task<GetPreparedStatementResponse> GetPreparedStatementAsync(GetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQueryExecution /// <summary> /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution">REST API Reference for GetQueryExecution Operation</seealso> Task<GetQueryExecutionResponse> GetQueryExecutionAsync(GetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQueryResults /// <summary> /// Streams the results of a single query execution specified by <code>QueryExecutionId</code> /// from the Athena query results location in Amazon S3. For more information, see <a /// href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Working with query /// results, recent queries, and output files</a> in the <i>Amazon Athena User Guide</i>. /// This request does not execute the query but returns results. Use <a>StartQueryExecution</a> /// to run a query. /// /// /// <para> /// To stream query results successfully, the IAM principal with permission to call <code>GetQueryResults</code> /// also must have permissions to the Amazon S3 <code>GetObject</code> action for the /// Athena query results location. /// </para> /// <important> /// <para> /// IAM principals with permission to the Amazon S3 <code>GetObject</code> action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the <code>GetQueryResults</code> action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryResults service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults">REST API Reference for GetQueryResults Operation</seealso> Task<GetQueryResultsResponse> GetQueryResultsAsync(GetQueryResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQueryRuntimeStatistics /// <summary> /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when <a>QueryExecutionStatus$State</a> is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQueryRuntimeStatistics service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryRuntimeStatistics">REST API Reference for GetQueryRuntimeStatistics Operation</seealso> Task<GetQueryRuntimeStatisticsResponse> GetQueryRuntimeStatisticsAsync(GetQueryRuntimeStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSession /// <summary> /// Gets the full details of a previously created session, including the session status /// and configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSession">REST API Reference for GetSession Operation</seealso> Task<GetSessionResponse> GetSessionAsync(GetSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetSessionStatus /// <summary> /// Gets the current status of a session. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetSessionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetSessionStatus service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetSessionStatus">REST API Reference for GetSessionStatus Operation</seealso> Task<GetSessionStatusResponse> GetSessionStatusAsync(GetSessionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetTableMetadata /// <summary> /// Returns table metadata for the specified catalog, database, and table. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata">REST API Reference for GetTableMetadata Operation</seealso> Task<GetTableMetadataResponse> GetTableMetadataAsync(GetTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetWorkGroup /// <summary> /// Returns information about the workgroup with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup">REST API Reference for GetWorkGroup Operation</seealso> Task<GetWorkGroupResponse> GetWorkGroupAsync(GetWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportNotebook /// <summary> /// Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with /// the same name already exists in the workgroup, throws an error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ImportNotebook">REST API Reference for ImportNotebook Operation</seealso> Task<ImportNotebookResponse> ImportNotebookAsync(ImportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListApplicationDPUSizes /// <summary> /// Returns the supported DPU sizes for the supported application runtimes (for example, /// <code>Athena notebook version 1</code>). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplicationDPUSizes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListApplicationDPUSizes service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListApplicationDPUSizes">REST API Reference for ListApplicationDPUSizes Operation</seealso> Task<ListApplicationDPUSizesResponse> ListApplicationDPUSizesAsync(ListApplicationDPUSizesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCalculationExecutions /// <summary> /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCalculationExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCalculationExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCalculationExecutions">REST API Reference for ListCalculationExecutions Operation</seealso> Task<ListCalculationExecutionsResponse> ListCalculationExecutionsAsync(ListCalculationExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCapacityReservations /// <summary> /// Lists the capacity reservations for the current account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCapacityReservations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCapacityReservations service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations">REST API Reference for ListCapacityReservations Operation</seealso> Task<ListCapacityReservationsResponse> ListCapacityReservationsAsync(ListCapacityReservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDatabases /// <summary> /// Lists the databases in the specified data catalog. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDatabases service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDatabases service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases">REST API Reference for ListDatabases Operation</seealso> Task<ListDatabasesResponse> ListDatabasesAsync(ListDatabasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDataCatalogs /// <summary> /// Lists the data catalogs in the current Amazon Web Services account. /// /// <note> /// <para> /// In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> /// page under the <b>Data source name</b> column. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDataCatalogs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDataCatalogs service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs">REST API Reference for ListDataCatalogs Operation</seealso> Task<ListDataCatalogsResponse> ListDataCatalogsAsync(ListDataCatalogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListEngineVersions /// <summary> /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEngineVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListEngineVersions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions">REST API Reference for ListEngineVersions Operation</seealso> Task<ListEngineVersionsResponse> ListEngineVersionsAsync(ListEngineVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListExecutors /// <summary> /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExecutors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExecutors service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListExecutors">REST API Reference for ListExecutors Operation</seealso> Task<ListExecutorsResponse> ListExecutorsAsync(ListExecutorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListNamedQueries /// <summary> /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNamedQueries service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNamedQueries service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries">REST API Reference for ListNamedQueries Operation</seealso> Task<ListNamedQueriesResponse> ListNamedQueriesAsync(ListNamedQueriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListNotebookMetadata /// <summary> /// Displays the notebook files for the specified workgroup in paginated format. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookMetadata">REST API Reference for ListNotebookMetadata Operation</seealso> Task<ListNotebookMetadataResponse> ListNotebookMetadataAsync(ListNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListNotebookSessions /// <summary> /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like <code>CREATING</code>, <code>CREATED</code>, <code>IDLE</code> /// or <code>BUSY</code>. Newer sessions are listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListNotebookSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListNotebookSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNotebookSessions">REST API Reference for ListNotebookSessions Operation</seealso> Task<ListNotebookSessionsResponse> ListNotebookSessionsAsync(ListNotebookSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPreparedStatements /// <summary> /// Lists the prepared statements in the specified workgroup. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPreparedStatements service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPreparedStatements service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements">REST API Reference for ListPreparedStatements Operation</seealso> Task<ListPreparedStatementsResponse> ListPreparedStatementsAsync(ListPreparedStatementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListQueryExecutions /// <summary> /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListQueryExecutions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> Task<ListQueryExecutionsResponse> ListQueryExecutionsAsync(ListQueryExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListSessions /// <summary> /// Lists the sessions in a workgroup that are in an active state like <code>CREATING</code>, /// <code>CREATED</code>, <code>IDLE</code>, or <code>BUSY</code>. Newer sessions are /// listed first; older sessions are listed later. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSessions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListSessions service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListSessions">REST API Reference for ListSessions Operation</seealso> Task<ListSessionsResponse> ListSessionsAsync(ListSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTableMetadata /// <summary> /// Lists the metadata for the tables in the specified data catalog database. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTableMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTableMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.MetadataException"> /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (<code>InvalidRequestException</code>) or from the /// Athena platform (<code>InternalServerException</code>). For example, if a user-created /// Lambda function is missing permissions, the Lambda <code>4XX</code> exception is returned /// in a <code>MetadataException</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata">REST API Reference for ListTableMetadata Operation</seealso> Task<ListTableMetadataResponse> ListTableMetadataAsync(ListTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags associated with an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListWorkGroups /// <summary> /// Lists available workgroups for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListWorkGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListWorkGroups service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups">REST API Reference for ListWorkGroups Operation</seealso> Task<ListWorkGroupsResponse> ListWorkGroupsAsync(ListWorkGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutCapacityAssignmentConfiguration /// <summary> /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration">REST API Reference for PutCapacityAssignmentConfiguration Operation</seealso> Task<PutCapacityAssignmentConfigurationResponse> PutCapacityAssignmentConfigurationAsync(PutCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartCalculationExecution /// <summary> /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartCalculationExecution">REST API Reference for StartCalculationExecution Operation</seealso> Task<StartCalculationExecutionResponse> StartCalculationExecutionAsync(StartCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartQueryExecution /// <summary> /// Runs the SQL query statements contained in the <code>Query</code>. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires <a>GetDataCatalog</a> permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution">REST API Reference for StartQueryExecution Operation</seealso> Task<StartQueryExecutionResponse> StartQueryExecutionAsync(StartQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartSession /// <summary> /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an <code>IDLE</code> state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <exception cref="Amazon.Athena.Model.SessionAlreadyExistsException"> /// The specified session already exists. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartSession">REST API Reference for StartSession Operation</seealso> Task<StartSessionResponse> StartSessionAsync(StartSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopCalculationExecution /// <summary> /// Requests the cancellation of a calculation. A <code>StopCalculationExecution</code> /// call on a calculation that is already in a terminal state (for example, <code>STOPPED</code>, /// <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but has no effect. /// /// <note> /// <para> /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopCalculationExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopCalculationExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopCalculationExecution">REST API Reference for StopCalculationExecution Operation</seealso> Task<StopCalculationExecutionResponse> StopCalculationExecutionAsync(StopCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopQueryExecution /// <summary> /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// <para> /// For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopQueryExecution service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopQueryExecution service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution">REST API Reference for StopQueryExecution Operation</seealso> Task<StopQueryExecutionResponse> StopQueryExecutionAsync(StopQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging /// Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// </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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TerminateSession /// <summary> /// Terminates an active session. A <code>TerminateSession</code> call on a session that /// is already inactive (for example, in a <code>FAILED</code>, <code>TERMINATED</code> /// or <code>TERMINATING</code> state) succeeds but has no effect. Calculations running /// in the session when <code>TerminateSession</code> is called are forcefully stopped, /// but may display as <code>FAILED</code> instead of <code>STOPPED</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TerminateSession service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateSession service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TerminateSession">REST API Reference for TerminateSession Operation</seealso> Task<TerminateSessionResponse> TerminateSessionAsync(TerminateSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes one or more tags from an Athena 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 Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateCapacityReservation /// <summary> /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCapacityReservation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCapacityReservation service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation">REST API Reference for UpdateCapacityReservation Operation</seealso> Task<UpdateCapacityReservationResponse> UpdateCapacityReservationAsync(UpdateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDataCatalog /// <summary> /// Updates the data catalog that has the specified name. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDataCatalog service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDataCatalog service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog">REST API Reference for UpdateDataCatalog Operation</seealso> Task<UpdateDataCatalogResponse> UpdateDataCatalogAsync(UpdateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNamedQuery /// <summary> /// Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNamedQuery service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery">REST API Reference for UpdateNamedQuery Operation</seealso> Task<UpdateNamedQueryResponse> UpdateNamedQueryAsync(UpdateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNotebook /// <summary> /// Updates the contents of a Spark notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebook service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebook">REST API Reference for UpdateNotebook Operation</seealso> Task<UpdateNotebookResponse> UpdateNotebookAsync(UpdateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateNotebookMetadata /// <summary> /// Updates the metadata for a notebook. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateNotebookMetadata service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateNotebookMetadata service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.TooManyRequestsException"> /// Indicates that the request was throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNotebookMetadata">REST API Reference for UpdateNotebookMetadata Operation</seealso> Task<UpdateNotebookMetadataResponse> UpdateNotebookMetadataAsync(UpdateNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdatePreparedStatement /// <summary> /// Updates a prepared statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePreparedStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePreparedStatement service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <exception cref="Amazon.Athena.Model.ResourceNotFoundException"> /// A resource, such as a workgroup, was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement">REST API Reference for UpdatePreparedStatement Operation</seealso> Task<UpdatePreparedStatementResponse> UpdatePreparedStatementAsync(UpdatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateWorkGroup /// <summary> /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only <code>ConfigurationUpdates</code> can be specified. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateWorkGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateWorkGroup service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup">REST API Reference for UpdateWorkGroup Operation</seealso> Task<UpdateWorkGroupResponse> UpdateWorkGroupAsync(UpdateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
2,041
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.Athena")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon Athena. This release adds support for Amazon Athena. Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon Athena. This release adds support for Amazon Athena. Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon Athena. This release adds support for Amazon Athena. Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon Athena. This release adds support for Amazon Athena. Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run.")] #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.111.4")] [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 auditmanager-2017-07-25.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.AuditManager.Internal; namespace Amazon.AuditManager { /// <summary> /// Configuration for accessing Amazon AuditManager service /// </summary> [AWSSignerType("v4")] public partial class AmazonAuditManagerConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.104.1"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonAuditManagerConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAuditManagerDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "auditmanager"; this.EndpointProvider = new AmazonAuditManagerEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "auditmanager"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2017-07-25"; } } /// <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 auditmanager-2017-07-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.AuditManager { /// <summary> /// Configuration for accessing Amazon AuditManager service /// </summary> public static class AmazonAuditManagerDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// AuditManager /// </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 auditmanager-2017-07-25.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.AuditManager.Endpoints { /// <summary> /// Contains parameters used for resolving AuditManager endpoints /// Parameters can be sourced from client config and service operations /// Used by internal AuditManagerEndpointProvider and AuditManagerEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class AuditManagerEndpointParameters : EndpointParameters { /// <summary> /// AuditManagerEndpointParameters constructor /// </summary> public AuditManagerEndpointParameters() { 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 auditmanager-2017-07-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.AuditManager { ///<summary> /// Common exception for the AuditManager service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonAuditManagerException : AmazonServiceException { /// <summary> /// Construct instance of AmazonAuditManagerException /// </summary> /// <param name="message"></param> public AmazonAuditManagerException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonAuditManagerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonAuditManagerException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonAuditManagerException /// </summary> /// <param name="innerException"></param> public AmazonAuditManagerException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonAuditManagerException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonAuditManagerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonAuditManagerException /// </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 AmazonAuditManagerException(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 AmazonAuditManagerException 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 AmazonAuditManagerException(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 auditmanager-2017-07-25.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.AuditManager { /// <summary> /// Constants used for properties of type AccountStatus. /// </summary> public class AccountStatus : ConstantClass { /// <summary> /// Constant ACTIVE for AccountStatus /// </summary> public static readonly AccountStatus ACTIVE = new AccountStatus("ACTIVE"); /// <summary> /// Constant INACTIVE for AccountStatus /// </summary> public static readonly AccountStatus INACTIVE = new AccountStatus("INACTIVE"); /// <summary> /// Constant PENDING_ACTIVATION for AccountStatus /// </summary> public static readonly AccountStatus PENDING_ACTIVATION = new AccountStatus("PENDING_ACTIVATION"); /// <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 AccountStatus(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 AccountStatus FindValue(string value) { return FindValue<AccountStatus>(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 AccountStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ActionEnum. /// </summary> public class ActionEnum : ConstantClass { /// <summary> /// Constant ACTIVE for ActionEnum /// </summary> public static readonly ActionEnum ACTIVE = new ActionEnum("ACTIVE"); /// <summary> /// Constant CREATE for ActionEnum /// </summary> public static readonly ActionEnum CREATE = new ActionEnum("CREATE"); /// <summary> /// Constant DELETE for ActionEnum /// </summary> public static readonly ActionEnum DELETE = new ActionEnum("DELETE"); /// <summary> /// Constant IMPORT_EVIDENCE for ActionEnum /// </summary> public static readonly ActionEnum IMPORT_EVIDENCE = new ActionEnum("IMPORT_EVIDENCE"); /// <summary> /// Constant INACTIVE for ActionEnum /// </summary> public static readonly ActionEnum INACTIVE = new ActionEnum("INACTIVE"); /// <summary> /// Constant REVIEWED for ActionEnum /// </summary> public static readonly ActionEnum REVIEWED = new ActionEnum("REVIEWED"); /// <summary> /// Constant UNDER_REVIEW for ActionEnum /// </summary> public static readonly ActionEnum UNDER_REVIEW = new ActionEnum("UNDER_REVIEW"); /// <summary> /// Constant UPDATE_METADATA for ActionEnum /// </summary> public static readonly ActionEnum UPDATE_METADATA = new ActionEnum("UPDATE_METADATA"); /// <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 ActionEnum(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 ActionEnum FindValue(string value) { return FindValue<ActionEnum>(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 ActionEnum(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AssessmentReportDestinationType. /// </summary> public class AssessmentReportDestinationType : ConstantClass { /// <summary> /// Constant S3 for AssessmentReportDestinationType /// </summary> public static readonly AssessmentReportDestinationType S3 = new AssessmentReportDestinationType("S3"); /// <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 AssessmentReportDestinationType(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 AssessmentReportDestinationType FindValue(string value) { return FindValue<AssessmentReportDestinationType>(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 AssessmentReportDestinationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AssessmentReportStatus. /// </summary> public class AssessmentReportStatus : ConstantClass { /// <summary> /// Constant COMPLETE for AssessmentReportStatus /// </summary> public static readonly AssessmentReportStatus COMPLETE = new AssessmentReportStatus("COMPLETE"); /// <summary> /// Constant FAILED for AssessmentReportStatus /// </summary> public static readonly AssessmentReportStatus FAILED = new AssessmentReportStatus("FAILED"); /// <summary> /// Constant IN_PROGRESS for AssessmentReportStatus /// </summary> public static readonly AssessmentReportStatus IN_PROGRESS = new AssessmentReportStatus("IN_PROGRESS"); /// <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 AssessmentReportStatus(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 AssessmentReportStatus FindValue(string value) { return FindValue<AssessmentReportStatus>(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 AssessmentReportStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AssessmentStatus. /// </summary> public class AssessmentStatus : ConstantClass { /// <summary> /// Constant ACTIVE for AssessmentStatus /// </summary> public static readonly AssessmentStatus ACTIVE = new AssessmentStatus("ACTIVE"); /// <summary> /// Constant INACTIVE for AssessmentStatus /// </summary> public static readonly AssessmentStatus INACTIVE = new AssessmentStatus("INACTIVE"); /// <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 AssessmentStatus(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 AssessmentStatus FindValue(string value) { return FindValue<AssessmentStatus>(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 AssessmentStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ControlResponse. /// </summary> public class ControlResponse : ConstantClass { /// <summary> /// Constant AUTOMATE for ControlResponse /// </summary> public static readonly ControlResponse AUTOMATE = new ControlResponse("AUTOMATE"); /// <summary> /// Constant DEFER for ControlResponse /// </summary> public static readonly ControlResponse DEFER = new ControlResponse("DEFER"); /// <summary> /// Constant IGNORE for ControlResponse /// </summary> public static readonly ControlResponse IGNORE = new ControlResponse("IGNORE"); /// <summary> /// Constant MANUAL for ControlResponse /// </summary> public static readonly ControlResponse MANUAL = new ControlResponse("MANUAL"); /// <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 ControlResponse(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 ControlResponse FindValue(string value) { return FindValue<ControlResponse>(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 ControlResponse(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ControlSetStatus. /// </summary> public class ControlSetStatus : ConstantClass { /// <summary> /// Constant ACTIVE for ControlSetStatus /// </summary> public static readonly ControlSetStatus ACTIVE = new ControlSetStatus("ACTIVE"); /// <summary> /// Constant REVIEWED for ControlSetStatus /// </summary> public static readonly ControlSetStatus REVIEWED = new ControlSetStatus("REVIEWED"); /// <summary> /// Constant UNDER_REVIEW for ControlSetStatus /// </summary> public static readonly ControlSetStatus UNDER_REVIEW = new ControlSetStatus("UNDER_REVIEW"); /// <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 ControlSetStatus(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 ControlSetStatus FindValue(string value) { return FindValue<ControlSetStatus>(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 ControlSetStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ControlStatus. /// </summary> public class ControlStatus : ConstantClass { /// <summary> /// Constant INACTIVE for ControlStatus /// </summary> public static readonly ControlStatus INACTIVE = new ControlStatus("INACTIVE"); /// <summary> /// Constant REVIEWED for ControlStatus /// </summary> public static readonly ControlStatus REVIEWED = new ControlStatus("REVIEWED"); /// <summary> /// Constant UNDER_REVIEW for ControlStatus /// </summary> public static readonly ControlStatus UNDER_REVIEW = new ControlStatus("UNDER_REVIEW"); /// <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 ControlStatus(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 ControlStatus FindValue(string value) { return FindValue<ControlStatus>(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 ControlStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ControlType. /// </summary> public class ControlType : ConstantClass { /// <summary> /// Constant Custom for ControlType /// </summary> public static readonly ControlType Custom = new ControlType("Custom"); /// <summary> /// Constant Standard for ControlType /// </summary> public static readonly ControlType Standard = new ControlType("Standard"); /// <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 ControlType(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 ControlType FindValue(string value) { return FindValue<ControlType>(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 ControlType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DelegationStatus. /// </summary> public class DelegationStatus : ConstantClass { /// <summary> /// Constant COMPLETE for DelegationStatus /// </summary> public static readonly DelegationStatus COMPLETE = new DelegationStatus("COMPLETE"); /// <summary> /// Constant IN_PROGRESS for DelegationStatus /// </summary> public static readonly DelegationStatus IN_PROGRESS = new DelegationStatus("IN_PROGRESS"); /// <summary> /// Constant UNDER_REVIEW for DelegationStatus /// </summary> public static readonly DelegationStatus UNDER_REVIEW = new DelegationStatus("UNDER_REVIEW"); /// <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 DelegationStatus(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 DelegationStatus FindValue(string value) { return FindValue<DelegationStatus>(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 DelegationStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DeleteResources. /// </summary> public class DeleteResources : ConstantClass { /// <summary> /// Constant ALL for DeleteResources /// </summary> public static readonly DeleteResources ALL = new DeleteResources("ALL"); /// <summary> /// Constant DEFAULT for DeleteResources /// </summary> public static readonly DeleteResources DEFAULT = new DeleteResources("DEFAULT"); /// <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 DeleteResources(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 DeleteResources FindValue(string value) { return FindValue<DeleteResources>(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 DeleteResources(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EvidenceFinderBackfillStatus. /// </summary> public class EvidenceFinderBackfillStatus : ConstantClass { /// <summary> /// Constant COMPLETED for EvidenceFinderBackfillStatus /// </summary> public static readonly EvidenceFinderBackfillStatus COMPLETED = new EvidenceFinderBackfillStatus("COMPLETED"); /// <summary> /// Constant IN_PROGRESS for EvidenceFinderBackfillStatus /// </summary> public static readonly EvidenceFinderBackfillStatus IN_PROGRESS = new EvidenceFinderBackfillStatus("IN_PROGRESS"); /// <summary> /// Constant NOT_STARTED for EvidenceFinderBackfillStatus /// </summary> public static readonly EvidenceFinderBackfillStatus NOT_STARTED = new EvidenceFinderBackfillStatus("NOT_STARTED"); /// <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 EvidenceFinderBackfillStatus(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 EvidenceFinderBackfillStatus FindValue(string value) { return FindValue<EvidenceFinderBackfillStatus>(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 EvidenceFinderBackfillStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EvidenceFinderEnablementStatus. /// </summary> public class EvidenceFinderEnablementStatus : ConstantClass { /// <summary> /// Constant DISABLE_IN_PROGRESS for EvidenceFinderEnablementStatus /// </summary> public static readonly EvidenceFinderEnablementStatus DISABLE_IN_PROGRESS = new EvidenceFinderEnablementStatus("DISABLE_IN_PROGRESS"); /// <summary> /// Constant DISABLED for EvidenceFinderEnablementStatus /// </summary> public static readonly EvidenceFinderEnablementStatus DISABLED = new EvidenceFinderEnablementStatus("DISABLED"); /// <summary> /// Constant ENABLE_IN_PROGRESS for EvidenceFinderEnablementStatus /// </summary> public static readonly EvidenceFinderEnablementStatus ENABLE_IN_PROGRESS = new EvidenceFinderEnablementStatus("ENABLE_IN_PROGRESS"); /// <summary> /// Constant ENABLED for EvidenceFinderEnablementStatus /// </summary> public static readonly EvidenceFinderEnablementStatus ENABLED = new EvidenceFinderEnablementStatus("ENABLED"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public EvidenceFinderEnablementStatus(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 EvidenceFinderEnablementStatus FindValue(string value) { return FindValue<EvidenceFinderEnablementStatus>(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 EvidenceFinderEnablementStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ExportDestinationType. /// </summary> public class ExportDestinationType : ConstantClass { /// <summary> /// Constant S3 for ExportDestinationType /// </summary> public static readonly ExportDestinationType S3 = new ExportDestinationType("S3"); /// <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 ExportDestinationType(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 ExportDestinationType FindValue(string value) { return FindValue<ExportDestinationType>(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 ExportDestinationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type FrameworkType. /// </summary> public class FrameworkType : ConstantClass { /// <summary> /// Constant Custom for FrameworkType /// </summary> public static readonly FrameworkType Custom = new FrameworkType("Custom"); /// <summary> /// Constant Standard for FrameworkType /// </summary> public static readonly FrameworkType Standard = new FrameworkType("Standard"); /// <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 FrameworkType(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 FrameworkType FindValue(string value) { return FindValue<FrameworkType>(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 FrameworkType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type KeywordInputType. /// </summary> public class KeywordInputType : ConstantClass { /// <summary> /// Constant INPUT_TEXT for KeywordInputType /// </summary> public static readonly KeywordInputType INPUT_TEXT = new KeywordInputType("INPUT_TEXT"); /// <summary> /// Constant SELECT_FROM_LIST for KeywordInputType /// </summary> public static readonly KeywordInputType SELECT_FROM_LIST = new KeywordInputType("SELECT_FROM_LIST"); /// <summary> /// Constant UPLOAD_FILE for KeywordInputType /// </summary> public static readonly KeywordInputType UPLOAD_FILE = new KeywordInputType("UPLOAD_FILE"); /// <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 KeywordInputType(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 KeywordInputType FindValue(string value) { return FindValue<KeywordInputType>(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 KeywordInputType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ObjectTypeEnum. /// </summary> public class ObjectTypeEnum : ConstantClass { /// <summary> /// Constant ASSESSMENT for ObjectTypeEnum /// </summary> public static readonly ObjectTypeEnum ASSESSMENT = new ObjectTypeEnum("ASSESSMENT"); /// <summary> /// Constant ASSESSMENT_REPORT for ObjectTypeEnum /// </summary> public static readonly ObjectTypeEnum ASSESSMENT_REPORT = new ObjectTypeEnum("ASSESSMENT_REPORT"); /// <summary> /// Constant CONTROL for ObjectTypeEnum /// </summary> public static readonly ObjectTypeEnum CONTROL = new ObjectTypeEnum("CONTROL"); /// <summary> /// Constant CONTROL_SET for ObjectTypeEnum /// </summary> public static readonly ObjectTypeEnum CONTROL_SET = new ObjectTypeEnum("CONTROL_SET"); /// <summary> /// Constant DELEGATION for ObjectTypeEnum /// </summary> public static readonly ObjectTypeEnum DELEGATION = new ObjectTypeEnum("DELEGATION"); /// <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 ObjectTypeEnum(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 ObjectTypeEnum FindValue(string value) { return FindValue<ObjectTypeEnum>(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 ObjectTypeEnum(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RoleType. /// </summary> public class RoleType : ConstantClass { /// <summary> /// Constant PROCESS_OWNER for RoleType /// </summary> public static readonly RoleType PROCESS_OWNER = new RoleType("PROCESS_OWNER"); /// <summary> /// Constant RESOURCE_OWNER for RoleType /// </summary> public static readonly RoleType RESOURCE_OWNER = new RoleType("RESOURCE_OWNER"); /// <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 RoleType(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 RoleType FindValue(string value) { return FindValue<RoleType>(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 RoleType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SettingAttribute. /// </summary> public class SettingAttribute : ConstantClass { /// <summary> /// Constant ALL for SettingAttribute /// </summary> public static readonly SettingAttribute ALL = new SettingAttribute("ALL"); /// <summary> /// Constant DEFAULT_ASSESSMENT_REPORTS_DESTINATION for SettingAttribute /// </summary> public static readonly SettingAttribute DEFAULT_ASSESSMENT_REPORTS_DESTINATION = new SettingAttribute("DEFAULT_ASSESSMENT_REPORTS_DESTINATION"); /// <summary> /// Constant DEFAULT_EXPORT_DESTINATION for SettingAttribute /// </summary> public static readonly SettingAttribute DEFAULT_EXPORT_DESTINATION = new SettingAttribute("DEFAULT_EXPORT_DESTINATION"); /// <summary> /// Constant DEFAULT_PROCESS_OWNERS for SettingAttribute /// </summary> public static readonly SettingAttribute DEFAULT_PROCESS_OWNERS = new SettingAttribute("DEFAULT_PROCESS_OWNERS"); /// <summary> /// Constant DEREGISTRATION_POLICY for SettingAttribute /// </summary> public static readonly SettingAttribute DEREGISTRATION_POLICY = new SettingAttribute("DEREGISTRATION_POLICY"); /// <summary> /// Constant EVIDENCE_FINDER_ENABLEMENT for SettingAttribute /// </summary> public static readonly SettingAttribute EVIDENCE_FINDER_ENABLEMENT = new SettingAttribute("EVIDENCE_FINDER_ENABLEMENT"); /// <summary> /// Constant IS_AWS_ORG_ENABLED for SettingAttribute /// </summary> public static readonly SettingAttribute IS_AWS_ORG_ENABLED = new SettingAttribute("IS_AWS_ORG_ENABLED"); /// <summary> /// Constant SNS_TOPIC for SettingAttribute /// </summary> public static readonly SettingAttribute SNS_TOPIC = new SettingAttribute("SNS_TOPIC"); /// <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 SettingAttribute(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 SettingAttribute FindValue(string value) { return FindValue<SettingAttribute>(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 SettingAttribute(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ShareRequestAction. /// </summary> public class ShareRequestAction : ConstantClass { /// <summary> /// Constant ACCEPT for ShareRequestAction /// </summary> public static readonly ShareRequestAction ACCEPT = new ShareRequestAction("ACCEPT"); /// <summary> /// Constant DECLINE for ShareRequestAction /// </summary> public static readonly ShareRequestAction DECLINE = new ShareRequestAction("DECLINE"); /// <summary> /// Constant REVOKE for ShareRequestAction /// </summary> public static readonly ShareRequestAction REVOKE = new ShareRequestAction("REVOKE"); /// <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 ShareRequestAction(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 ShareRequestAction FindValue(string value) { return FindValue<ShareRequestAction>(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 ShareRequestAction(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ShareRequestStatus. /// </summary> public class ShareRequestStatus : ConstantClass { /// <summary> /// Constant ACTIVE for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus ACTIVE = new ShareRequestStatus("ACTIVE"); /// <summary> /// Constant DECLINED for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus DECLINED = new ShareRequestStatus("DECLINED"); /// <summary> /// Constant EXPIRED for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus EXPIRED = new ShareRequestStatus("EXPIRED"); /// <summary> /// Constant EXPIRING for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus EXPIRING = new ShareRequestStatus("EXPIRING"); /// <summary> /// Constant FAILED for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus FAILED = new ShareRequestStatus("FAILED"); /// <summary> /// Constant REPLICATING for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus REPLICATING = new ShareRequestStatus("REPLICATING"); /// <summary> /// Constant REVOKED for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus REVOKED = new ShareRequestStatus("REVOKED"); /// <summary> /// Constant SHARED for ShareRequestStatus /// </summary> public static readonly ShareRequestStatus SHARED = new ShareRequestStatus("SHARED"); /// <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 ShareRequestStatus(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 ShareRequestStatus FindValue(string value) { return FindValue<ShareRequestStatus>(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 ShareRequestStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ShareRequestType. /// </summary> public class ShareRequestType : ConstantClass { /// <summary> /// Constant RECEIVED for ShareRequestType /// </summary> public static readonly ShareRequestType RECEIVED = new ShareRequestType("RECEIVED"); /// <summary> /// Constant SENT for ShareRequestType /// </summary> public static readonly ShareRequestType SENT = new ShareRequestType("SENT"); /// <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 ShareRequestType(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 ShareRequestType FindValue(string value) { return FindValue<ShareRequestType>(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 ShareRequestType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SourceFrequency. /// </summary> public class SourceFrequency : ConstantClass { /// <summary> /// Constant DAILY for SourceFrequency /// </summary> public static readonly SourceFrequency DAILY = new SourceFrequency("DAILY"); /// <summary> /// Constant MONTHLY for SourceFrequency /// </summary> public static readonly SourceFrequency MONTHLY = new SourceFrequency("MONTHLY"); /// <summary> /// Constant WEEKLY for SourceFrequency /// </summary> public static readonly SourceFrequency WEEKLY = new SourceFrequency("WEEKLY"); /// <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 SourceFrequency(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 SourceFrequency FindValue(string value) { return FindValue<SourceFrequency>(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 SourceFrequency(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SourceSetUpOption. /// </summary> public class SourceSetUpOption : ConstantClass { /// <summary> /// Constant Procedural_Controls_Mapping for SourceSetUpOption /// </summary> public static readonly SourceSetUpOption Procedural_Controls_Mapping = new SourceSetUpOption("Procedural_Controls_Mapping"); /// <summary> /// Constant System_Controls_Mapping for SourceSetUpOption /// </summary> public static readonly SourceSetUpOption System_Controls_Mapping = new SourceSetUpOption("System_Controls_Mapping"); /// <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 SourceSetUpOption(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 SourceSetUpOption FindValue(string value) { return FindValue<SourceSetUpOption>(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 SourceSetUpOption(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SourceType. /// </summary> public class SourceType : ConstantClass { /// <summary> /// Constant AWS_API_Call for SourceType /// </summary> public static readonly SourceType AWS_API_Call = new SourceType("AWS_API_Call"); /// <summary> /// Constant AWS_Cloudtrail for SourceType /// </summary> public static readonly SourceType AWS_Cloudtrail = new SourceType("AWS_Cloudtrail"); /// <summary> /// Constant AWS_Config for SourceType /// </summary> public static readonly SourceType AWS_Config = new SourceType("AWS_Config"); /// <summary> /// Constant AWS_Security_Hub for SourceType /// </summary> public static readonly SourceType AWS_Security_Hub = new SourceType("AWS_Security_Hub"); /// <summary> /// Constant MANUAL for SourceType /// </summary> public static readonly SourceType MANUAL = new SourceType("MANUAL"); /// <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 SourceType(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 SourceType FindValue(string value) { return FindValue<SourceType>(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 SourceType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ValidationExceptionReason. /// </summary> public class ValidationExceptionReason : ConstantClass { /// <summary> /// Constant CannotParse for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason CannotParse = new ValidationExceptionReason("cannotParse"); /// <summary> /// Constant FieldValidationFailed for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason FieldValidationFailed = new ValidationExceptionReason("fieldValidationFailed"); /// <summary> /// Constant Other for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason Other = new ValidationExceptionReason("other"); /// <summary> /// Constant UnknownOperation for ValidationExceptionReason /// </summary> public static readonly ValidationExceptionReason UnknownOperation = new ValidationExceptionReason("unknownOperation"); /// <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); } } }
1,474
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Internal { /// <summary> /// Amazon AuditManager endpoint provider. /// Resolves endpoint for given set of AuditManagerEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonAuditManagerEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for AuditManagerEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if (IsSet(refs["Endpoint"])) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://auditmanager-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://auditmanager-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://auditmanager.{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://auditmanager.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.normal.json service model. */ using System; using Amazon.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.AuditManager.Endpoints; #pragma warning disable 1591 namespace Amazon.AuditManager.Internal { /// <summary> /// Amazon AuditManager endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AuditManager service requests. /// Collects values for AuditManagerEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AuditManagerEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonAuditManagerEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonAuditManagerConfig)requestContext.ClientConfig; var result = new AuditManagerEndpointParameters(); 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 auditmanager-2017-07-25.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.AuditManager.Internal { /// <summary> /// Service metadata for Amazon AuditManager service /// </summary> public partial class AmazonAuditManagerMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "AuditManager"; } } /// <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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Your account isn't registered with Audit Manager. Check the delegated administrator /// setup on the Audit Manager settings page, and try again. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonAuditManagerException { /// <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 } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.normal.json service model. */ using Amazon.Runtime; namespace Amazon.AuditManager { /// <summary> /// Base class for AuditManager operation requests. /// </summary> public partial class AmazonAuditManagerRequest : 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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// An entity that defines the scope of audit evidence collected by Audit Manager. An /// Audit Manager assessment is an implementation of an Audit Manager framework. /// </summary> public partial class Assessment { private string _arn; private AWSAccount _awsAccount; private AssessmentFramework _framework; private AssessmentMetadata _metadata; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the assessment. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] 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 AwsAccount. /// <para> /// The Amazon Web Services account that's associated with the assessment. /// </para> /// </summary> public AWSAccount AwsAccount { get { return this._awsAccount; } set { this._awsAccount = value; } } // Check to see if AwsAccount property is set internal bool IsSetAwsAccount() { return this._awsAccount != null; } /// <summary> /// Gets and sets the property Framework. /// <para> /// The framework that the assessment was created from. /// </para> /// </summary> public AssessmentFramework Framework { get { return this._framework; } set { this._framework = value; } } // Check to see if Framework property is set internal bool IsSetFramework() { return this._framework != null; } /// <summary> /// Gets and sets the property Metadata. /// <para> /// The metadata for the assessment. /// </para> /// </summary> public AssessmentMetadata Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags that are associated with the assessment. /// </para> /// </summary> [AWSProperty(Min=0, Max=50)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The control entity that represents a standard control or a custom control in an Audit /// Manager assessment. /// </summary> public partial class AssessmentControl { private int? _assessmentReportEvidenceCount; private List<ControlComment> _comments = new List<ControlComment>(); private string _description; private int? _evidenceCount; private List<string> _evidenceSources = new List<string>(); private string _id; private string _name; private ControlResponse _response; private ControlStatus _status; /// <summary> /// Gets and sets the property AssessmentReportEvidenceCount. /// <para> /// The amount of evidence in the assessment report. /// </para> /// </summary> public int AssessmentReportEvidenceCount { get { return this._assessmentReportEvidenceCount.GetValueOrDefault(); } set { this._assessmentReportEvidenceCount = value; } } // Check to see if AssessmentReportEvidenceCount property is set internal bool IsSetAssessmentReportEvidenceCount() { return this._assessmentReportEvidenceCount.HasValue; } /// <summary> /// Gets and sets the property Comments. /// <para> /// The list of comments that's attached to the control. /// </para> /// </summary> public List<ControlComment> Comments { get { return this._comments; } set { this._comments = value; } } // Check to see if Comments property is set internal bool IsSetComments() { return this._comments != null && this._comments.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the control. /// </para> /// </summary> [AWSProperty(Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property EvidenceCount. /// <para> /// The amount of evidence that's collected for the control. /// </para> /// </summary> public int EvidenceCount { get { return this._evidenceCount.GetValueOrDefault(); } set { this._evidenceCount = value; } } // Check to see if EvidenceCount property is set internal bool IsSetEvidenceCount() { return this._evidenceCount.HasValue; } /// <summary> /// Gets and sets the property EvidenceSources. /// <para> /// The list of data sources for the evidence. /// </para> /// </summary> public List<string> EvidenceSources { get { return this._evidenceSources; } set { this._evidenceSources = value; } } // Check to see if EvidenceSources property is set internal bool IsSetEvidenceSources() { return this._evidenceSources != null && this._evidenceSources.Count > 0; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the control. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the control. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 Response. /// <para> /// The response of the control. /// </para> /// </summary> public ControlResponse Response { get { return this._response; } set { this._response = value; } } // Check to see if Response property is set internal bool IsSetResponse() { return this._response != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the control. /// </para> /// </summary> public ControlStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
213
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Represents a set of controls in an Audit Manager assessment. /// </summary> public partial class AssessmentControlSet { private List<AssessmentControl> _controls = new List<AssessmentControl>(); private List<Delegation> _delegations = new List<Delegation>(); private string _description; private string _id; private int? _manualEvidenceCount; private List<Role> _roles = new List<Role>(); private ControlSetStatus _status; private int? _systemEvidenceCount; /// <summary> /// Gets and sets the property Controls. /// <para> /// The list of controls that's contained with the control set. /// </para> /// </summary> public List<AssessmentControl> Controls { get { return this._controls; } set { this._controls = value; } } // Check to see if Controls property is set internal bool IsSetControls() { return this._controls != null && this._controls.Count > 0; } /// <summary> /// Gets and sets the property Delegations. /// <para> /// The delegations that are associated with the control set. /// </para> /// </summary> public List<Delegation> Delegations { get { return this._delegations; } set { this._delegations = value; } } // Check to see if Delegations property is set internal bool IsSetDelegations() { return this._delegations != null && this._delegations.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description for the control set. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of the control set in the assessment. This is the control set name /// in a plain string format. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property ManualEvidenceCount. /// <para> /// The total number of evidence objects that are uploaded manually to the control set. /// /// </para> /// </summary> public int ManualEvidenceCount { get { return this._manualEvidenceCount.GetValueOrDefault(); } set { this._manualEvidenceCount = value; } } // Check to see if ManualEvidenceCount property is set internal bool IsSetManualEvidenceCount() { return this._manualEvidenceCount.HasValue; } /// <summary> /// Gets and sets the property Roles. /// <para> /// The roles that are associated with the control set. /// </para> /// </summary> public List<Role> Roles { get { return this._roles; } set { this._roles = value; } } // Check to see if Roles property is set internal bool IsSetRoles() { return this._roles != null && this._roles.Count > 0; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current status of the control set. /// </para> /// </summary> public ControlSetStatus 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 SystemEvidenceCount. /// <para> /// The total number of evidence objects that are retrieved automatically for the control /// set. /// </para> /// </summary> public int SystemEvidenceCount { get { return this._systemEvidenceCount.GetValueOrDefault(); } set { this._systemEvidenceCount = value; } } // Check to see if SystemEvidenceCount property is set internal bool IsSetSystemEvidenceCount() { return this._systemEvidenceCount.HasValue; } } }
195
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The folder where Audit Manager stores evidence for an assessment. /// </summary> public partial class AssessmentEvidenceFolder { private string _assessmentId; private int? _assessmentReportSelectionCount; private string _author; private string _controlId; private string _controlName; private string _controlSetId; private string _dataSource; private DateTime? _date; private int? _evidenceAwsServiceSourceCount; private int? _evidenceByTypeComplianceCheckCount; private int? _evidenceByTypeComplianceCheckIssuesCount; private int? _evidenceByTypeConfigurationDataCount; private int? _evidenceByTypeManualCount; private int? _evidenceByTypeUserActivityCount; private int? _evidenceResourcesIncludedCount; private string _id; private string _name; private int? _totalEvidence; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the assessment. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property AssessmentReportSelectionCount. /// <para> /// The total count of evidence that's included in the assessment report. /// </para> /// </summary> public int AssessmentReportSelectionCount { get { return this._assessmentReportSelectionCount.GetValueOrDefault(); } set { this._assessmentReportSelectionCount = value; } } // Check to see if AssessmentReportSelectionCount property is set internal bool IsSetAssessmentReportSelectionCount() { return this._assessmentReportSelectionCount.HasValue; } /// <summary> /// Gets and sets the property Author. /// <para> /// The name of the user who created the evidence folder. /// </para> /// </summary> [AWSProperty(Min=0, Max=2048)] public string Author { get { return this._author; } set { this._author = value; } } // Check to see if Author property is set internal bool IsSetAuthor() { return this._author != null; } /// <summary> /// Gets and sets the property ControlId. /// <para> /// The unique identifier for the control. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string ControlId { get { return this._controlId; } set { this._controlId = value; } } // Check to see if ControlId property is set internal bool IsSetControlId() { return this._controlId != null; } /// <summary> /// Gets and sets the property ControlName. /// <para> /// The name of the control. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string ControlName { get { return this._controlName; } set { this._controlName = value; } } // Check to see if ControlName property is set internal bool IsSetControlName() { return this._controlName != null; } /// <summary> /// Gets and sets the property ControlSetId. /// <para> /// The identifier for the control set. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string ControlSetId { get { return this._controlSetId; } set { this._controlSetId = value; } } // Check to see if ControlSetId property is set internal bool IsSetControlSetId() { return this._controlSetId != null; } /// <summary> /// Gets and sets the property DataSource. /// <para> /// The Amazon Web Service that the evidence was collected from. /// </para> /// </summary> [AWSProperty(Min=0, Max=2048)] public string DataSource { get { return this._dataSource; } set { this._dataSource = value; } } // Check to see if DataSource property is set internal bool IsSetDataSource() { return this._dataSource != null; } /// <summary> /// Gets and sets the property Date. /// <para> /// The date when the first evidence was added to the evidence folder. /// </para> /// </summary> public DateTime Date { get { return this._date.GetValueOrDefault(); } set { this._date = value; } } // Check to see if Date property is set internal bool IsSetDate() { return this._date.HasValue; } /// <summary> /// Gets and sets the property EvidenceAwsServiceSourceCount. /// <para> /// The total number of Amazon Web Services resources that were assessed to generate /// the evidence. /// </para> /// </summary> public int EvidenceAwsServiceSourceCount { get { return this._evidenceAwsServiceSourceCount.GetValueOrDefault(); } set { this._evidenceAwsServiceSourceCount = value; } } // Check to see if EvidenceAwsServiceSourceCount property is set internal bool IsSetEvidenceAwsServiceSourceCount() { return this._evidenceAwsServiceSourceCount.HasValue; } /// <summary> /// Gets and sets the property EvidenceByTypeComplianceCheckCount. /// <para> /// The number of evidence that falls under the compliance check category. This evidence /// is collected from Config or Security Hub. /// </para> /// </summary> public int EvidenceByTypeComplianceCheckCount { get { return this._evidenceByTypeComplianceCheckCount.GetValueOrDefault(); } set { this._evidenceByTypeComplianceCheckCount = value; } } // Check to see if EvidenceByTypeComplianceCheckCount property is set internal bool IsSetEvidenceByTypeComplianceCheckCount() { return this._evidenceByTypeComplianceCheckCount.HasValue; } /// <summary> /// Gets and sets the property EvidenceByTypeComplianceCheckIssuesCount. /// <para> /// The total number of issues that were reported directly from Security Hub, Config, /// or both. /// </para> /// </summary> public int EvidenceByTypeComplianceCheckIssuesCount { get { return this._evidenceByTypeComplianceCheckIssuesCount.GetValueOrDefault(); } set { this._evidenceByTypeComplianceCheckIssuesCount = value; } } // Check to see if EvidenceByTypeComplianceCheckIssuesCount property is set internal bool IsSetEvidenceByTypeComplianceCheckIssuesCount() { return this._evidenceByTypeComplianceCheckIssuesCount.HasValue; } /// <summary> /// Gets and sets the property EvidenceByTypeConfigurationDataCount. /// <para> /// The number of evidence that falls under the configuration data category. This evidence /// is collected from configuration snapshots of other Amazon Web Services such as Amazon /// EC2, Amazon S3, or IAM. /// </para> /// </summary> public int EvidenceByTypeConfigurationDataCount { get { return this._evidenceByTypeConfigurationDataCount.GetValueOrDefault(); } set { this._evidenceByTypeConfigurationDataCount = value; } } // Check to see if EvidenceByTypeConfigurationDataCount property is set internal bool IsSetEvidenceByTypeConfigurationDataCount() { return this._evidenceByTypeConfigurationDataCount.HasValue; } /// <summary> /// Gets and sets the property EvidenceByTypeManualCount. /// <para> /// The number of evidence that falls under the manual category. This evidence is imported /// manually. /// </para> /// </summary> public int EvidenceByTypeManualCount { get { return this._evidenceByTypeManualCount.GetValueOrDefault(); } set { this._evidenceByTypeManualCount = value; } } // Check to see if EvidenceByTypeManualCount property is set internal bool IsSetEvidenceByTypeManualCount() { return this._evidenceByTypeManualCount.HasValue; } /// <summary> /// Gets and sets the property EvidenceByTypeUserActivityCount. /// <para> /// The number of evidence that falls under the user activity category. This evidence /// is collected from CloudTrail logs. /// </para> /// </summary> public int EvidenceByTypeUserActivityCount { get { return this._evidenceByTypeUserActivityCount.GetValueOrDefault(); } set { this._evidenceByTypeUserActivityCount = value; } } // Check to see if EvidenceByTypeUserActivityCount property is set internal bool IsSetEvidenceByTypeUserActivityCount() { return this._evidenceByTypeUserActivityCount.HasValue; } /// <summary> /// Gets and sets the property EvidenceResourcesIncludedCount. /// <para> /// The amount of evidence that's included in the evidence folder. /// </para> /// </summary> public int EvidenceResourcesIncludedCount { get { return this._evidenceResourcesIncludedCount.GetValueOrDefault(); } set { this._evidenceResourcesIncludedCount = value; } } // Check to see if EvidenceResourcesIncludedCount property is set internal bool IsSetEvidenceResourcesIncludedCount() { return this._evidenceResourcesIncludedCount.HasValue; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the folder that the evidence is stored in. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the evidence folder. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 TotalEvidence. /// <para> /// The total amount of evidence in the evidence folder. /// </para> /// </summary> public int TotalEvidence { get { return this._totalEvidence.GetValueOrDefault(); } set { this._totalEvidence = value; } } // Check to see if TotalEvidence property is set internal bool IsSetTotalEvidence() { return this._totalEvidence.HasValue; } } }
395
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The file used to structure and automate Audit Manager assessments for a given compliance /// standard. /// </summary> public partial class AssessmentFramework { private string _arn; private List<AssessmentControlSet> _controlSets = new List<AssessmentControlSet>(); private string _id; private FrameworkMetadata _metadata; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the framework. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] 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 ControlSets. /// <para> /// The control sets that are associated with the framework. /// </para> /// </summary> public List<AssessmentControlSet> ControlSets { get { return this._controlSets; } set { this._controlSets = value; } } // Check to see if ControlSets property is set internal bool IsSetControlSets() { return this._controlSets != null && this._controlSets.Count > 0; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the framework. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Metadata. /// </summary> public FrameworkMetadata Metadata { get { return this._metadata; } set { this._metadata = value; } } // Check to see if Metadata property is set internal bool IsSetMetadata() { return this._metadata != null; } } }
114
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The metadata that's associated with a standard framework or a custom framework. /// </summary> public partial class AssessmentFrameworkMetadata { private string _arn; private string _complianceType; private int? _controlsCount; private int? _controlSetsCount; private DateTime? _createdAt; private string _description; private string _id; private DateTime? _lastUpdatedAt; private string _logo; private string _name; private FrameworkType _type; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the framework. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] 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 ComplianceType. /// <para> /// The compliance type that the new custom framework supports, such as CIS or HIPAA. /// /// </para> /// </summary> [AWSProperty(Max=100)] public string ComplianceType { get { return this._complianceType; } set { this._complianceType = value; } } // Check to see if ComplianceType property is set internal bool IsSetComplianceType() { return this._complianceType != null; } /// <summary> /// Gets and sets the property ControlsCount. /// <para> /// The number of controls that are associated with the framework. /// </para> /// </summary> public int ControlsCount { get { return this._controlsCount.GetValueOrDefault(); } set { this._controlsCount = value; } } // Check to see if ControlsCount property is set internal bool IsSetControlsCount() { return this._controlsCount.HasValue; } /// <summary> /// Gets and sets the property ControlSetsCount. /// <para> /// The number of control sets that are associated with the framework. /// </para> /// </summary> public int ControlSetsCount { get { return this._controlSetsCount.GetValueOrDefault(); } set { this._controlSetsCount = value; } } // Check to see if ControlSetsCount property is set internal bool IsSetControlSetsCount() { return this._controlSetsCount.HasValue; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time when the framework was created. /// </para> /// </summary> public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the framework. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the framework. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastUpdatedAt. /// <para> /// The time when the framework was most recently updated. /// </para> /// </summary> public DateTime LastUpdatedAt { get { return this._lastUpdatedAt.GetValueOrDefault(); } set { this._lastUpdatedAt = value; } } // Check to see if LastUpdatedAt property is set internal bool IsSetLastUpdatedAt() { return this._lastUpdatedAt.HasValue; } /// <summary> /// Gets and sets the property Logo. /// <para> /// The logo that's associated with the framework. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string Logo { get { return this._logo; } set { this._logo = value; } } // Check to see if Logo property is set internal bool IsSetLogo() { return this._logo != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the framework. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 Type. /// <para> /// The framework type, such as a standard framework or a custom framework. /// </para> /// </summary> public FrameworkType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Represents a share request for a custom framework in Audit Manager. /// </summary> public partial class AssessmentFrameworkShareRequest { private string _comment; private string _complianceType; private DateTime? _creationTime; private int? _customControlsCount; private string _destinationAccount; private string _destinationRegion; private DateTime? _expirationTime; private string _frameworkDescription; private string _frameworkId; private string _frameworkName; private string _id; private DateTime? _lastUpdated; private string _sourceAccount; private int? _standardControlsCount; private ShareRequestStatus _status; /// <summary> /// Gets and sets the property Comment. /// <para> /// An optional comment from the sender about the share request. /// </para> /// </summary> [AWSProperty(Max=500)] 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 ComplianceType. /// <para> /// The compliance type that the shared custom framework supports, such as CIS or HIPAA. /// </para> /// </summary> [AWSProperty(Max=100)] public string ComplianceType { get { return this._complianceType; } set { this._complianceType = value; } } // Check to see if ComplianceType property is set internal bool IsSetComplianceType() { return this._complianceType != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time when the share request was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property CustomControlsCount. /// <para> /// The number of custom controls that are part of the shared custom framework. /// </para> /// </summary> public int CustomControlsCount { get { return this._customControlsCount.GetValueOrDefault(); } set { this._customControlsCount = value; } } // Check to see if CustomControlsCount property is set internal bool IsSetCustomControlsCount() { return this._customControlsCount.HasValue; } /// <summary> /// Gets and sets the property DestinationAccount. /// <para> /// The Amazon Web Services account of the recipient. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string DestinationAccount { get { return this._destinationAccount; } set { this._destinationAccount = value; } } // Check to see if DestinationAccount property is set internal bool IsSetDestinationAccount() { return this._destinationAccount != null; } /// <summary> /// Gets and sets the property DestinationRegion. /// <para> /// The Amazon Web Services Region of the recipient. /// </para> /// </summary> public string DestinationRegion { get { return this._destinationRegion; } set { this._destinationRegion = value; } } // Check to see if DestinationRegion property is set internal bool IsSetDestinationRegion() { return this._destinationRegion != null; } /// <summary> /// Gets and sets the property ExpirationTime. /// <para> /// The time when the share request expires. /// </para> /// </summary> public DateTime ExpirationTime { get { return this._expirationTime.GetValueOrDefault(); } set { this._expirationTime = value; } } // Check to see if ExpirationTime property is set internal bool IsSetExpirationTime() { return this._expirationTime.HasValue; } /// <summary> /// Gets and sets the property FrameworkDescription. /// <para> /// The description of the shared custom framework. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public string FrameworkDescription { get { return this._frameworkDescription; } set { this._frameworkDescription = value; } } // Check to see if FrameworkDescription property is set internal bool IsSetFrameworkDescription() { return this._frameworkDescription != null; } /// <summary> /// Gets and sets the property FrameworkId. /// <para> /// The unique identifier for the shared custom framework. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string FrameworkId { get { return this._frameworkId; } set { this._frameworkId = value; } } // Check to see if FrameworkId property is set internal bool IsSetFrameworkId() { return this._frameworkId != null; } /// <summary> /// Gets and sets the property FrameworkName. /// <para> /// The name of the custom framework that the share request is for. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string FrameworkName { get { return this._frameworkName; } set { this._frameworkName = value; } } // Check to see if FrameworkName property is set internal bool IsSetFrameworkName() { return this._frameworkName != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the share request. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastUpdated. /// <para> /// Specifies when the share request was last updated. /// </para> /// </summary> public DateTime LastUpdated { get { return this._lastUpdated.GetValueOrDefault(); } set { this._lastUpdated = value; } } // Check to see if LastUpdated property is set internal bool IsSetLastUpdated() { return this._lastUpdated.HasValue; } /// <summary> /// Gets and sets the property SourceAccount. /// <para> /// The Amazon Web Services account of the sender. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string SourceAccount { get { return this._sourceAccount; } set { this._sourceAccount = value; } } // Check to see if SourceAccount property is set internal bool IsSetSourceAccount() { return this._sourceAccount != null; } /// <summary> /// Gets and sets the property StandardControlsCount. /// <para> /// The number of standard controls that are part of the shared custom framework. /// </para> /// </summary> public int StandardControlsCount { get { return this._standardControlsCount.GetValueOrDefault(); } set { this._standardControlsCount = value; } } // Check to see if StandardControlsCount property is set internal bool IsSetStandardControlsCount() { return this._standardControlsCount.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the share request. /// </para> /// </summary> public ShareRequestStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The metadata that's associated with the specified assessment. /// </summary> public partial class AssessmentMetadata { private AssessmentReportsDestination _assessmentReportsDestination; private string _complianceType; private DateTime? _creationTime; private List<Delegation> _delegations = new List<Delegation>(); private string _description; private string _id; private DateTime? _lastUpdated; private string _name; private List<Role> _roles = new List<Role>(); private Scope _scope; private AssessmentStatus _status; /// <summary> /// Gets and sets the property AssessmentReportsDestination. /// <para> /// The destination that evidence reports are stored in for the assessment. /// </para> /// </summary> public AssessmentReportsDestination AssessmentReportsDestination { get { return this._assessmentReportsDestination; } set { this._assessmentReportsDestination = value; } } // Check to see if AssessmentReportsDestination property is set internal bool IsSetAssessmentReportsDestination() { return this._assessmentReportsDestination != null; } /// <summary> /// Gets and sets the property ComplianceType. /// <para> /// The name of the compliance standard that's related to the assessment, such as PCI-DSS. /// /// </para> /// </summary> [AWSProperty(Max=100)] public string ComplianceType { get { return this._complianceType; } set { this._complianceType = value; } } // Check to see if ComplianceType property is set internal bool IsSetComplianceType() { return this._complianceType != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// Specifies when the assessment was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property Delegations. /// <para> /// The delegations that are associated with the assessment. /// </para> /// </summary> public List<Delegation> Delegations { get { return this._delegations; } set { this._delegations = value; } } // Check to see if Delegations property is set internal bool IsSetDelegations() { return this._delegations != null && this._delegations.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the assessment. /// </para> /// </summary> [AWSProperty(Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the assessment. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastUpdated. /// <para> /// The time of the most recent update. /// </para> /// </summary> public DateTime LastUpdated { get { return this._lastUpdated.GetValueOrDefault(); } set { this._lastUpdated = value; } } // Check to see if LastUpdated property is set internal bool IsSetLastUpdated() { return this._lastUpdated.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the assessment. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 Roles. /// <para> /// The roles that are associated with the assessment. /// </para> /// </summary> public List<Role> Roles { get { return this._roles; } set { this._roles = value; } } // Check to see if Roles property is set internal bool IsSetRoles() { return this._roles != null && this._roles.Count > 0; } /// <summary> /// Gets and sets the property Scope. /// <para> /// The wrapper of Amazon Web Services accounts and services that are in scope for the /// assessment. /// </para> /// </summary> public Scope Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The overall status of the assessment. /// </para> /// </summary> public AssessmentStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
253
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// A metadata object that's associated with an assessment in Audit Manager. /// </summary> public partial class AssessmentMetadataItem { private string _complianceType; private DateTime? _creationTime; private List<Delegation> _delegations = new List<Delegation>(); private string _id; private DateTime? _lastUpdated; private string _name; private List<Role> _roles = new List<Role>(); private AssessmentStatus _status; /// <summary> /// Gets and sets the property ComplianceType. /// <para> /// The name of the compliance standard that's related to the assessment, such as PCI-DSS. /// /// </para> /// </summary> [AWSProperty(Max=100)] public string ComplianceType { get { return this._complianceType; } set { this._complianceType = value; } } // Check to see if ComplianceType property is set internal bool IsSetComplianceType() { return this._complianceType != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// Specifies when the assessment was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property Delegations. /// <para> /// The delegations that are associated with the assessment. /// </para> /// </summary> public List<Delegation> Delegations { get { return this._delegations; } set { this._delegations = value; } } // Check to see if Delegations property is set internal bool IsSetDelegations() { return this._delegations != null && this._delegations.Count > 0; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the assessment. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastUpdated. /// <para> /// The time of the most recent update. /// </para> /// </summary> public DateTime LastUpdated { get { return this._lastUpdated.GetValueOrDefault(); } set { this._lastUpdated = value; } } // Check to see if LastUpdated property is set internal bool IsSetLastUpdated() { return this._lastUpdated.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the assessment. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 Roles. /// <para> /// The roles that are associated with the assessment. /// </para> /// </summary> public List<Role> Roles { get { return this._roles; } set { this._roles = value; } } // Check to see if Roles property is set internal bool IsSetRoles() { return this._roles != null && this._roles.Count > 0; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current status of the assessment. /// </para> /// </summary> public AssessmentStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
194
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// A finalized document that's generated from an Audit Manager assessment. These reports /// summarize the relevant evidence that was collected for your audit, and link to the /// relevant evidence folders. These evidence folders are named and organized according /// to the controls that are specified in your assessment. /// </summary> public partial class AssessmentReport { private string _assessmentId; private string _assessmentName; private string _author; private string _awsAccountId; private DateTime? _creationTime; private string _description; private string _id; private string _name; private AssessmentReportStatus _status; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the specified assessment. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property AssessmentName. /// <para> /// The name of the associated assessment. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string AssessmentName { get { return this._assessmentName; } set { this._assessmentName = value; } } // Check to see if AssessmentName property is set internal bool IsSetAssessmentName() { return this._assessmentName != null; } /// <summary> /// Gets and sets the property Author. /// <para> /// The name of the user who created the assessment report. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string Author { get { return this._author; } set { this._author = value; } } // Check to see if Author property is set internal bool IsSetAuthor() { return this._author != null; } /// <summary> /// Gets and sets the property AwsAccountId. /// <para> /// The identifier for the specified Amazon Web Services account. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// Specifies when the assessment report was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the specified assessment report. /// </para> /// </summary> [AWSProperty(Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the assessment report. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name that's given to the assessment report. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 Status. /// <para> /// The current status of the specified assessment report. /// </para> /// </summary> public AssessmentReportStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
219
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// An error entity for assessment report evidence errors. This is used to provide more /// meaningful errors than a simple string message. /// </summary> public partial class AssessmentReportEvidenceError { private string _errorCode; private string _errorMessage; private string _evidenceId; /// <summary> /// Gets and sets the property ErrorCode. /// <para> /// The error code that was returned. /// </para> /// </summary> [AWSProperty(Min=3, Max=3)] public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// The error message that was returned. /// </para> /// </summary> [AWSProperty(Max=300)] public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// <summary> /// Gets and sets the property EvidenceId. /// <para> /// The identifier for the evidence. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string EvidenceId { get { return this._evidenceId; } set { this._evidenceId = value; } } // Check to see if EvidenceId property is set internal bool IsSetEvidenceId() { return this._evidenceId != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The metadata objects that are associated with the specified assessment report. /// </summary> public partial class AssessmentReportMetadata { private string _assessmentId; private string _assessmentName; private string _author; private DateTime? _creationTime; private string _description; private string _id; private string _name; private AssessmentReportStatus _status; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The unique identifier for the associated assessment. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property AssessmentName. /// <para> /// The name of the associated assessment. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string AssessmentName { get { return this._assessmentName; } set { this._assessmentName = value; } } // Check to see if AssessmentName property is set internal bool IsSetAssessmentName() { return this._assessmentName != null; } /// <summary> /// Gets and sets the property Author. /// <para> /// The name of the user who created the assessment report. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string Author { get { return this._author; } set { this._author = value; } } // Check to see if Author property is set internal bool IsSetAuthor() { return this._author != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// Specifies when the assessment report was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the assessment report. /// </para> /// </summary> [AWSProperty(Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the assessment report. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the assessment report. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 Status. /// <para> /// The current status of the assessment report. /// </para> /// </summary> public AssessmentReportStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The location where Audit Manager saves assessment reports for the given assessment. /// </summary> public partial class AssessmentReportsDestination { private string _destination; private AssessmentReportDestinationType _destinationType; /// <summary> /// Gets and sets the property Destination. /// <para> /// The destination bucket where Audit Manager stores assessment reports. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string Destination { get { return this._destination; } set { this._destination = value; } } // Check to see if Destination property is set internal bool IsSetDestination() { return this._destination != null; } /// <summary> /// Gets and sets the property DestinationType. /// <para> /// The destination type, such as Amazon S3. /// </para> /// </summary> public AssessmentReportDestinationType DestinationType { get { return this._destinationType; } set { this._destinationType = value; } } // Check to see if DestinationType property is set internal bool IsSetDestinationType() { return this._destinationType != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Container for the parameters to the AssociateAssessmentReportEvidenceFolder operation. /// Associates an evidence folder to an assessment report in an Audit Manager assessment. /// </summary> public partial class AssociateAssessmentReportEvidenceFolderRequest : AmazonAuditManagerRequest { private string _assessmentId; private string _evidenceFolderId; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property EvidenceFolderId. /// <para> /// The identifier for the folder that the evidence is stored in. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string EvidenceFolderId { get { return this._evidenceFolderId; } set { this._evidenceFolderId = value; } } // Check to see if EvidenceFolderId property is set internal bool IsSetEvidenceFolderId() { return this._evidenceFolderId != 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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// This is the response object from the AssociateAssessmentReportEvidenceFolder operation. /// </summary> public partial class AssociateAssessmentReportEvidenceFolderResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// The wrapper of Amazon Web Services account details, such as account ID or email address. /// </summary> public partial class AWSAccount { private string _emailAddress; private string _id; private string _name; /// <summary> /// Gets and sets the property EmailAddress. /// <para> /// The email address that's associated with the Amazon Web Services account. /// </para> /// </summary> [AWSProperty(Min=1, Max=320)] public string EmailAddress { get { return this._emailAddress; } set { this._emailAddress = value; } } // Check to see if EmailAddress property is set internal bool IsSetEmailAddress() { return this._emailAddress != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the Amazon Web Services account. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the Amazon Web Services account. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] 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; } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// An Amazon Web Service such as Amazon S3 or CloudTrail. /// /// /// <para> /// For an example of how to find an Amazon Web Service name and how to define it in your /// assessment scope, see the following: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetServicesInScope.html#API_GetServicesInScope_Example_2">Finding /// an Amazon Web Service name to use in your assessment scope</a> /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetServicesInScope.html#API_GetServicesInScope_Example_3">Defining /// an Amazon Web Service name in your assessment scope</a> /// </para> /// </li> </ul> /// </summary> public partial class AWSService { private string _serviceName; /// <summary> /// Gets and sets the property ServiceName. /// <para> /// The name of the Amazon Web Service. /// </para> /// </summary> [AWSProperty(Min=1, Max=40)] public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } } }
75
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Container for the parameters to the BatchAssociateAssessmentReportEvidence operation. /// Associates a list of evidence to an assessment report in an Audit Manager assessment. /// </summary> public partial class BatchAssociateAssessmentReportEvidenceRequest : AmazonAuditManagerRequest { private string _assessmentId; private string _evidenceFolderId; private List<string> _evidenceIds = new List<string>(); /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property EvidenceFolderId. /// <para> /// The identifier for the folder that the evidence is stored in. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string EvidenceFolderId { get { return this._evidenceFolderId; } set { this._evidenceFolderId = value; } } // Check to see if EvidenceFolderId property is set internal bool IsSetEvidenceFolderId() { return this._evidenceFolderId != null; } /// <summary> /// Gets and sets the property EvidenceIds. /// <para> /// The list of evidence identifiers. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=50)] public List<string> EvidenceIds { get { return this._evidenceIds; } set { this._evidenceIds = value; } } // Check to see if EvidenceIds property is set internal bool IsSetEvidenceIds() { return this._evidenceIds != null && this._evidenceIds.Count > 0; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// This is the response object from the BatchAssociateAssessmentReportEvidence operation. /// </summary> public partial class BatchAssociateAssessmentReportEvidenceResponse : AmazonWebServiceResponse { private List<AssessmentReportEvidenceError> _errors = new List<AssessmentReportEvidenceError>(); private List<string> _evidenceIds = new List<string>(); /// <summary> /// Gets and sets the property Errors. /// <para> /// A list of errors that the <code>BatchAssociateAssessmentReportEvidence</code> API /// returned. /// </para> /// </summary> public List<AssessmentReportEvidenceError> Errors { get { return this._errors; } set { this._errors = value; } } // Check to see if Errors property is set internal bool IsSetErrors() { return this._errors != null && this._errors.Count > 0; } /// <summary> /// Gets and sets the property EvidenceIds. /// <para> /// The list of evidence identifiers. /// </para> /// </summary> [AWSProperty(Min=0, Max=50)] public List<string> EvidenceIds { get { return this._evidenceIds; } set { this._evidenceIds = value; } } // Check to see if EvidenceIds property is set internal bool IsSetEvidenceIds() { return this._evidenceIds != null && this._evidenceIds.Count > 0; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// An error entity for the <code>BatchCreateDelegationByAssessment</code> API. This /// is used to provide more meaningful errors than a simple string message. /// </summary> public partial class BatchCreateDelegationByAssessmentError { private CreateDelegationRequest _createDelegationRequest; private string _errorCode; private string _errorMessage; /// <summary> /// Gets and sets the property CreateDelegationRequest. /// <para> /// The API request to batch create delegations in Audit Manager. /// </para> /// </summary> public CreateDelegationRequest CreateDelegationRequest { get { return this._createDelegationRequest; } set { this._createDelegationRequest = value; } } // Check to see if CreateDelegationRequest property is set internal bool IsSetCreateDelegationRequest() { return this._createDelegationRequest != null; } /// <summary> /// Gets and sets the property ErrorCode. /// <para> /// The error code that the <code>BatchCreateDelegationByAssessment</code> API returned. /// /// </para> /// </summary> [AWSProperty(Min=3, Max=3)] public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// The error message that the <code>BatchCreateDelegationByAssessment</code> API returned. /// /// </para> /// </summary> [AWSProperty(Max=300)] public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Container for the parameters to the BatchCreateDelegationByAssessment operation. /// Creates a batch of delegations for an assessment in Audit Manager. /// </summary> public partial class BatchCreateDelegationByAssessmentRequest : AmazonAuditManagerRequest { private string _assessmentId; private List<CreateDelegationRequest> _createDelegationRequests = new List<CreateDelegationRequest>(); /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property CreateDelegationRequests. /// <para> /// The API request to batch create delegations in Audit Manager. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<CreateDelegationRequest> CreateDelegationRequests { get { return this._createDelegationRequests; } set { this._createDelegationRequests = value; } } // Check to see if CreateDelegationRequests property is set internal bool IsSetCreateDelegationRequests() { return this._createDelegationRequests != null && this._createDelegationRequests.Count > 0; } } }
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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// This is the response object from the BatchCreateDelegationByAssessment operation. /// </summary> public partial class BatchCreateDelegationByAssessmentResponse : AmazonWebServiceResponse { private List<Delegation> _delegations = new List<Delegation>(); private List<BatchCreateDelegationByAssessmentError> _errors = new List<BatchCreateDelegationByAssessmentError>(); /// <summary> /// Gets and sets the property Delegations. /// <para> /// The delegations that are associated with the assessment. /// </para> /// </summary> public List<Delegation> Delegations { get { return this._delegations; } set { this._delegations = value; } } // Check to see if Delegations property is set internal bool IsSetDelegations() { return this._delegations != null && this._delegations.Count > 0; } /// <summary> /// Gets and sets the property Errors. /// <para> /// A list of errors that the <code>BatchCreateDelegationByAssessment</code> API returned. /// /// </para> /// </summary> public List<BatchCreateDelegationByAssessmentError> Errors { get { return this._errors; } set { this._errors = value; } } // Check to see if Errors property is set internal bool IsSetErrors() { return this._errors != null && this._errors.Count > 0; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// An error entity for the <code>BatchDeleteDelegationByAssessment</code> API. This /// is used to provide more meaningful errors than a simple string message. /// </summary> public partial class BatchDeleteDelegationByAssessmentError { private string _delegationId; private string _errorCode; private string _errorMessage; /// <summary> /// Gets and sets the property DelegationId. /// <para> /// The identifier for the delegation. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string DelegationId { get { return this._delegationId; } set { this._delegationId = value; } } // Check to see if DelegationId property is set internal bool IsSetDelegationId() { return this._delegationId != null; } /// <summary> /// Gets and sets the property ErrorCode. /// <para> /// The error code that the <code>BatchDeleteDelegationByAssessment</code> API returned. /// /// </para> /// </summary> [AWSProperty(Min=3, Max=3)] public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// The error message that the <code>BatchDeleteDelegationByAssessment</code> API returned. /// /// </para> /// </summary> [AWSProperty(Max=300)] public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } } }
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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Container for the parameters to the BatchDeleteDelegationByAssessment operation. /// Deletes a batch of delegations for an assessment in Audit Manager. /// </summary> public partial class BatchDeleteDelegationByAssessmentRequest : AmazonAuditManagerRequest { private string _assessmentId; private List<string> _delegationIds = new List<string>(); /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property DelegationIds. /// <para> /// The identifiers for the delegations. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<string> DelegationIds { get { return this._delegationIds; } set { this._delegationIds = value; } } // Check to see if DelegationIds property is set internal bool IsSetDelegationIds() { return this._delegationIds != null && this._delegationIds.Count > 0; } } }
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 auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// This is the response object from the BatchDeleteDelegationByAssessment operation. /// </summary> public partial class BatchDeleteDelegationByAssessmentResponse : AmazonWebServiceResponse { private List<BatchDeleteDelegationByAssessmentError> _errors = new List<BatchDeleteDelegationByAssessmentError>(); /// <summary> /// Gets and sets the property Errors. /// <para> /// A list of errors that the <code>BatchDeleteDelegationByAssessment</code> API returned. /// /// </para> /// </summary> public List<BatchDeleteDelegationByAssessmentError> Errors { get { return this._errors; } set { this._errors = value; } } // Check to see if Errors property is set internal bool IsSetErrors() { return this._errors != null && this._errors.Count > 0; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// Container for the parameters to the BatchDisassociateAssessmentReportEvidence operation. /// Disassociates a list of evidence from an assessment report in Audit Manager. /// </summary> public partial class BatchDisassociateAssessmentReportEvidenceRequest : AmazonAuditManagerRequest { private string _assessmentId; private string _evidenceFolderId; private List<string> _evidenceIds = new List<string>(); /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property EvidenceFolderId. /// <para> /// The identifier for the folder that the evidence is stored in. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string EvidenceFolderId { get { return this._evidenceFolderId; } set { this._evidenceFolderId = value; } } // Check to see if EvidenceFolderId property is set internal bool IsSetEvidenceFolderId() { return this._evidenceFolderId != null; } /// <summary> /// Gets and sets the property EvidenceIds. /// <para> /// The list of evidence identifiers. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=50)] public List<string> EvidenceIds { get { return this._evidenceIds; } set { this._evidenceIds = value; } } // Check to see if EvidenceIds property is set internal bool IsSetEvidenceIds() { return this._evidenceIds != null && this._evidenceIds.Count > 0; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-25.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.AuditManager.Model { /// <summary> /// This is the response object from the BatchDisassociateAssessmentReportEvidence operation. /// </summary> public partial class BatchDisassociateAssessmentReportEvidenceResponse : AmazonWebServiceResponse { private List<AssessmentReportEvidenceError> _errors = new List<AssessmentReportEvidenceError>(); private List<string> _evidenceIds = new List<string>(); /// <summary> /// Gets and sets the property Errors. /// <para> /// A list of errors that the <code>BatchDisassociateAssessmentReportEvidence</code> /// API returned. /// </para> /// </summary> public List<AssessmentReportEvidenceError> Errors { get { return this._errors; } set { this._errors = value; } } // Check to see if Errors property is set internal bool IsSetErrors() { return this._errors != null && this._errors.Count > 0; } /// <summary> /// Gets and sets the property EvidenceIds. /// <para> /// The identifier for the evidence. /// </para> /// </summary> [AWSProperty(Min=0, Max=50)] public List<string> EvidenceIds { get { return this._evidenceIds; } set { this._evidenceIds = value; } } // Check to see if EvidenceIds property is set internal bool IsSetEvidenceIds() { return this._evidenceIds != null && this._evidenceIds.Count > 0; } } }
78