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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for IntOptions Object /// </summary> public class IntOptionsUnmarshaller : IUnmarshaller<IntOptions, XmlUnmarshallerContext>, IUnmarshaller<IntOptions, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public IntOptions Unmarshall(XmlUnmarshallerContext context) { IntOptions unmarshalledObject = new IntOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FacetEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.FacetEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReturnEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReturnEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SearchEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SearchEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SortEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SortEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceField", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceField = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public IntOptions Unmarshall(JsonUnmarshallerContext context) { return null; } private static IntOptionsUnmarshaller _instance = new IntOptionsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static IntOptionsUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidTypeException operation /// </summary> public class InvalidTypeExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidTypeException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidTypeException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidTypeException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { InvalidTypeException response = new InvalidTypeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static InvalidTypeExceptionUnmarshaller _instance = new InvalidTypeExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidTypeExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LatLonOptions Object /// </summary> public class LatLonOptionsUnmarshaller : IUnmarshaller<LatLonOptions, XmlUnmarshallerContext>, IUnmarshaller<LatLonOptions, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LatLonOptions Unmarshall(XmlUnmarshallerContext context) { LatLonOptions unmarshalledObject = new LatLonOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FacetEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.FacetEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReturnEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReturnEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SearchEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SearchEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SortEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SortEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceField", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceField = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public LatLonOptions Unmarshall(JsonUnmarshallerContext context) { return null; } private static LatLonOptionsUnmarshaller _instance = new LatLonOptionsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LatLonOptionsUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LimitExceededException operation /// </summary> public class LimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<LimitExceededException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LimitExceededException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public LimitExceededException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { LimitExceededException response = new LimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static LimitExceededExceptionUnmarshaller _instance = new LimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Limits Object /// </summary> public class LimitsUnmarshaller : IUnmarshaller<Limits, XmlUnmarshallerContext>, IUnmarshaller<Limits, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Limits Unmarshall(XmlUnmarshallerContext context) { Limits unmarshalledObject = new Limits(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("MaximumPartitionCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaximumPartitionCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaximumReplicationCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaximumReplicationCount = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Limits Unmarshall(JsonUnmarshallerContext context) { return null; } private static LimitsUnmarshaller _instance = new LimitsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LimitsUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// ListDomainNames Request Marshaller /// </summary> public class ListDomainNamesRequestMarshaller : IMarshaller<IRequest, ListDomainNamesRequest> , 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((ListDomainNamesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListDomainNamesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearch"); request.Parameters.Add("Action", "ListDomainNames"); request.Parameters.Add("Version", "2013-01-01"); if(publicRequest != null) { } return request; } private static ListDomainNamesRequestMarshaller _instance = new ListDomainNamesRequestMarshaller(); internal static ListDomainNamesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListDomainNamesRequestMarshaller Instance { get { return _instance; } } } }
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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListDomainNames operation /// </summary> public class ListDomainNamesResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListDomainNamesResponse response = new ListDomainNamesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListDomainNamesResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ListDomainNamesResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DomainNames/entry", targetDepth)) { var unmarshaller = new KeyValueUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); var item = unmarshaller.Unmarshall(context); response.DomainNames.Add(item); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BaseException")) { return BaseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ListDomainNamesResponseUnmarshaller _instance = new ListDomainNamesResponseUnmarshaller(); internal static ListDomainNamesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListDomainNamesResponseUnmarshaller Instance { get { return _instance; } } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LiteralArrayOptions Object /// </summary> public class LiteralArrayOptionsUnmarshaller : IUnmarshaller<LiteralArrayOptions, XmlUnmarshallerContext>, IUnmarshaller<LiteralArrayOptions, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LiteralArrayOptions Unmarshall(XmlUnmarshallerContext context) { LiteralArrayOptions unmarshalledObject = new LiteralArrayOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FacetEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.FacetEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReturnEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReturnEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SearchEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SearchEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceFields", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceFields = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public LiteralArrayOptions Unmarshall(JsonUnmarshallerContext context) { return null; } private static LiteralArrayOptionsUnmarshaller _instance = new LiteralArrayOptionsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LiteralArrayOptionsUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LiteralOptions Object /// </summary> public class LiteralOptionsUnmarshaller : IUnmarshaller<LiteralOptions, XmlUnmarshallerContext>, IUnmarshaller<LiteralOptions, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LiteralOptions Unmarshall(XmlUnmarshallerContext context) { LiteralOptions unmarshalledObject = new LiteralOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FacetEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.FacetEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReturnEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReturnEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SearchEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SearchEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SortEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SortEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceField", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceField = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public LiteralOptions Unmarshall(JsonUnmarshallerContext context) { return null; } private static LiteralOptionsUnmarshaller _instance = new LiteralOptionsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LiteralOptionsUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OptionStatus Object /// </summary> public class OptionStatusUnmarshaller : IUnmarshaller<OptionStatus, XmlUnmarshallerContext>, IUnmarshaller<OptionStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public OptionStatus Unmarshall(XmlUnmarshallerContext context) { OptionStatus unmarshalledObject = new OptionStatus(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("CreationDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PendingDeletion", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.PendingDeletion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpdateDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.UpdateDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpdateVersion", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.UpdateVersion = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public OptionStatus Unmarshall(JsonUnmarshallerContext context) { return null; } private static OptionStatusUnmarshaller _instance = new OptionStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OptionStatusUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceAlreadyExistsException operation /// </summary> public class ResourceAlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceAlreadyExistsException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceAlreadyExistsException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceAlreadyExistsException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { ResourceAlreadyExistsException response = new ResourceAlreadyExistsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static ResourceAlreadyExistsExceptionUnmarshaller _instance = new ResourceAlreadyExistsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceAlreadyExistsExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException operation /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { ResourceNotFoundException response = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScalingParametersStatus Object /// </summary> public class ScalingParametersStatusUnmarshaller : IUnmarshaller<ScalingParametersStatus, XmlUnmarshallerContext>, IUnmarshaller<ScalingParametersStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingParametersStatus Unmarshall(XmlUnmarshallerContext context) { ScalingParametersStatus unmarshalledObject = new ScalingParametersStatus(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Options", targetDepth)) { var unmarshaller = ScalingParametersUnmarshaller.Instance; unmarshalledObject.Options = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = OptionStatusUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingParametersStatus Unmarshall(JsonUnmarshallerContext context) { return null; } private static ScalingParametersStatusUnmarshaller _instance = new ScalingParametersStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScalingParametersStatusUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScalingParameters Object /// </summary> public class ScalingParametersUnmarshaller : IUnmarshaller<ScalingParameters, XmlUnmarshallerContext>, IUnmarshaller<ScalingParameters, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingParameters Unmarshall(XmlUnmarshallerContext context) { ScalingParameters unmarshalledObject = new ScalingParameters(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DesiredInstanceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DesiredInstanceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DesiredPartitionCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DesiredPartitionCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DesiredReplicationCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DesiredReplicationCount = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingParameters Unmarshall(JsonUnmarshallerContext context) { return null; } private static ScalingParametersUnmarshaller _instance = new ScalingParametersUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScalingParametersUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ServiceEndpoint Object /// </summary> public class ServiceEndpointUnmarshaller : IUnmarshaller<ServiceEndpoint, XmlUnmarshallerContext>, IUnmarshaller<ServiceEndpoint, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceEndpoint Unmarshall(XmlUnmarshallerContext context) { ServiceEndpoint unmarshalledObject = new ServiceEndpoint(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Endpoint", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Endpoint = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceEndpoint Unmarshall(JsonUnmarshallerContext context) { return null; } private static ServiceEndpointUnmarshaller _instance = new ServiceEndpointUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceEndpointUnmarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SuggesterStatus Object /// </summary> public class SuggesterStatusUnmarshaller : IUnmarshaller<SuggesterStatus, XmlUnmarshallerContext>, IUnmarshaller<SuggesterStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public SuggesterStatus Unmarshall(XmlUnmarshallerContext context) { SuggesterStatus unmarshalledObject = new SuggesterStatus(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Options", targetDepth)) { var unmarshaller = SuggesterUnmarshaller.Instance; unmarshalledObject.Options = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = OptionStatusUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public SuggesterStatus Unmarshall(JsonUnmarshallerContext context) { return null; } private static SuggesterStatusUnmarshaller _instance = new SuggesterStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SuggesterStatusUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Suggester Object /// </summary> public class SuggesterUnmarshaller : IUnmarshaller<Suggester, XmlUnmarshallerContext>, IUnmarshaller<Suggester, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Suggester Unmarshall(XmlUnmarshallerContext context) { Suggester unmarshalledObject = new Suggester(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DocumentSuggesterOptions", targetDepth)) { var unmarshaller = DocumentSuggesterOptionsUnmarshaller.Instance; unmarshalledObject.DocumentSuggesterOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SuggesterName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SuggesterName = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Suggester Unmarshall(JsonUnmarshallerContext context) { return null; } private static SuggesterUnmarshaller _instance = new SuggesterUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SuggesterUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TextArrayOptions Object /// </summary> public class TextArrayOptionsUnmarshaller : IUnmarshaller<TextArrayOptions, XmlUnmarshallerContext>, IUnmarshaller<TextArrayOptions, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TextArrayOptions Unmarshall(XmlUnmarshallerContext context) { TextArrayOptions unmarshalledObject = new TextArrayOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AnalysisScheme", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AnalysisScheme = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HighlightEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HighlightEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReturnEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReturnEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceFields", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceFields = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public TextArrayOptions Unmarshall(JsonUnmarshallerContext context) { return null; } private static TextArrayOptionsUnmarshaller _instance = new TextArrayOptionsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TextArrayOptionsUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TextOptions Object /// </summary> public class TextOptionsUnmarshaller : IUnmarshaller<TextOptions, XmlUnmarshallerContext>, IUnmarshaller<TextOptions, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TextOptions Unmarshall(XmlUnmarshallerContext context) { TextOptions unmarshalledObject = new TextOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AnalysisScheme", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AnalysisScheme = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HighlightEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HighlightEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReturnEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReturnEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SortEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SortEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceField", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceField = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public TextOptions Unmarshall(JsonUnmarshallerContext context) { return null; } private static TextOptionsUnmarshaller _instance = new TextOptionsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TextOptionsUnmarshaller 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 cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// UpdateAvailabilityOptions Request Marshaller /// </summary> public class UpdateAvailabilityOptionsRequestMarshaller : IMarshaller<IRequest, UpdateAvailabilityOptionsRequest> , 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((UpdateAvailabilityOptionsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateAvailabilityOptionsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearch"); request.Parameters.Add("Action", "UpdateAvailabilityOptions"); request.Parameters.Add("Version", "2013-01-01"); if(publicRequest != null) { if(publicRequest.IsSetDomainName()) { request.Parameters.Add("DomainName", StringUtils.FromString(publicRequest.DomainName)); } if(publicRequest.IsSetMultiAZ()) { request.Parameters.Add("MultiAZ", StringUtils.FromBool(publicRequest.MultiAZ)); } } return request; } private static UpdateAvailabilityOptionsRequestMarshaller _instance = new UpdateAvailabilityOptionsRequestMarshaller(); internal static UpdateAvailabilityOptionsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateAvailabilityOptionsRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateAvailabilityOptions operation /// </summary> public class UpdateAvailabilityOptionsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateAvailabilityOptionsResponse response = new UpdateAvailabilityOptionsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateAvailabilityOptionsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateAvailabilityOptionsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AvailabilityOptions", targetDepth)) { var unmarshaller = AvailabilityOptionsStatusUnmarshaller.Instance; response.AvailabilityOptions = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BaseException")) { return BaseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("DisabledAction")) { return DisabledOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException")) { return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidType")) { return InvalidTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceeded")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFound")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateAvailabilityOptionsResponseUnmarshaller _instance = new UpdateAvailabilityOptionsResponseUnmarshaller(); internal static UpdateAvailabilityOptionsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateAvailabilityOptionsResponseUnmarshaller Instance { get { return _instance; } } } }
165
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// UpdateDomainEndpointOptions Request Marshaller /// </summary> public class UpdateDomainEndpointOptionsRequestMarshaller : IMarshaller<IRequest, UpdateDomainEndpointOptionsRequest> , 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((UpdateDomainEndpointOptionsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateDomainEndpointOptionsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearch"); request.Parameters.Add("Action", "UpdateDomainEndpointOptions"); request.Parameters.Add("Version", "2013-01-01"); if(publicRequest != null) { if(publicRequest.IsSetDomainEndpointOptions()) { if(publicRequest.DomainEndpointOptions.IsSetEnforceHTTPS()) { request.Parameters.Add("DomainEndpointOptions" + "." + "EnforceHTTPS", StringUtils.FromBool(publicRequest.DomainEndpointOptions.EnforceHTTPS)); } if(publicRequest.DomainEndpointOptions.IsSetTLSSecurityPolicy()) { request.Parameters.Add("DomainEndpointOptions" + "." + "TLSSecurityPolicy", StringUtils.FromString(publicRequest.DomainEndpointOptions.TLSSecurityPolicy)); } } if(publicRequest.IsSetDomainName()) { request.Parameters.Add("DomainName", StringUtils.FromString(publicRequest.DomainName)); } } return request; } private static UpdateDomainEndpointOptionsRequestMarshaller _instance = new UpdateDomainEndpointOptionsRequestMarshaller(); internal static UpdateDomainEndpointOptionsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDomainEndpointOptionsRequestMarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateDomainEndpointOptions operation /// </summary> public class UpdateDomainEndpointOptionsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateDomainEndpointOptionsResponse response = new UpdateDomainEndpointOptionsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateDomainEndpointOptionsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateDomainEndpointOptionsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DomainEndpointOptions", targetDepth)) { var unmarshaller = DomainEndpointOptionsStatusUnmarshaller.Instance; response.DomainEndpointOptions = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BaseException")) { return BaseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("DisabledAction")) { return DisabledOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException")) { return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidType")) { return InvalidTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceeded")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFound")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateDomainEndpointOptionsResponseUnmarshaller _instance = new UpdateDomainEndpointOptionsResponseUnmarshaller(); internal static UpdateDomainEndpointOptionsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateDomainEndpointOptionsResponseUnmarshaller Instance { get { return _instance; } } } }
165
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// UpdateScalingParameters Request Marshaller /// </summary> public class UpdateScalingParametersRequestMarshaller : IMarshaller<IRequest, UpdateScalingParametersRequest> , 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((UpdateScalingParametersRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateScalingParametersRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearch"); request.Parameters.Add("Action", "UpdateScalingParameters"); request.Parameters.Add("Version", "2013-01-01"); if(publicRequest != null) { if(publicRequest.IsSetDomainName()) { request.Parameters.Add("DomainName", StringUtils.FromString(publicRequest.DomainName)); } if(publicRequest.IsSetScalingParameters()) { if(publicRequest.ScalingParameters.IsSetDesiredInstanceType()) { request.Parameters.Add("ScalingParameters" + "." + "DesiredInstanceType", StringUtils.FromString(publicRequest.ScalingParameters.DesiredInstanceType)); } if(publicRequest.ScalingParameters.IsSetDesiredPartitionCount()) { request.Parameters.Add("ScalingParameters" + "." + "DesiredPartitionCount", StringUtils.FromInt(publicRequest.ScalingParameters.DesiredPartitionCount)); } if(publicRequest.ScalingParameters.IsSetDesiredReplicationCount()) { request.Parameters.Add("ScalingParameters" + "." + "DesiredReplicationCount", StringUtils.FromInt(publicRequest.ScalingParameters.DesiredReplicationCount)); } } } return request; } private static UpdateScalingParametersRequestMarshaller _instance = new UpdateScalingParametersRequestMarshaller(); internal static UpdateScalingParametersRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateScalingParametersRequestMarshaller Instance { get { return _instance; } } } }
102
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateScalingParameters operation /// </summary> public class UpdateScalingParametersResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateScalingParametersResponse response = new UpdateScalingParametersResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateScalingParametersResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateScalingParametersResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ScalingParameters", targetDepth)) { var unmarshaller = ScalingParametersStatusUnmarshaller.Instance; response.ScalingParameters = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BaseException")) { return BaseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException")) { return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidType")) { return InvalidTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceeded")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFound")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateScalingParametersResponseUnmarshaller _instance = new UpdateScalingParametersResponseUnmarshaller(); internal static UpdateScalingParametersResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateScalingParametersResponseUnmarshaller Instance { get { return _instance; } } } }
161
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// UpdateServiceAccessPolicies Request Marshaller /// </summary> public class UpdateServiceAccessPoliciesRequestMarshaller : IMarshaller<IRequest, UpdateServiceAccessPoliciesRequest> , 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((UpdateServiceAccessPoliciesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateServiceAccessPoliciesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearch"); request.Parameters.Add("Action", "UpdateServiceAccessPolicies"); request.Parameters.Add("Version", "2013-01-01"); if(publicRequest != null) { if(publicRequest.IsSetAccessPolicies()) { request.Parameters.Add("AccessPolicies", StringUtils.FromString(publicRequest.AccessPolicies)); } if(publicRequest.IsSetDomainName()) { request.Parameters.Add("DomainName", StringUtils.FromString(publicRequest.DomainName)); } } return request; } private static UpdateServiceAccessPoliciesRequestMarshaller _instance = new UpdateServiceAccessPoliciesRequestMarshaller(); internal static UpdateServiceAccessPoliciesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateServiceAccessPoliciesRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateServiceAccessPolicies operation /// </summary> public class UpdateServiceAccessPoliciesResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateServiceAccessPoliciesResponse response = new UpdateServiceAccessPoliciesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateServiceAccessPoliciesResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateServiceAccessPoliciesResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AccessPolicies", targetDepth)) { var unmarshaller = AccessPoliciesStatusUnmarshaller.Instance; response.AccessPolicies = unmarshaller.Unmarshall(context); continue; } } } return; } /// <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(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BaseException")) { return BaseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException")) { return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidType")) { return InvalidTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceeded")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFound")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateServiceAccessPoliciesResponseUnmarshaller _instance = new UpdateServiceAccessPoliciesResponseUnmarshaller(); internal static UpdateServiceAccessPoliciesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateServiceAccessPoliciesResponseUnmarshaller Instance { get { return _instance; } } } }
161
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudSearch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidationException operation /// </summary> public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ValidationException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ValidationException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { ValidationException response = new ValidationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ValidationExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CloudSearch.Model; using Amazon.CloudSearch.Model.Internal.MarshallTransformations; using Amazon.CloudSearch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudSearch { /// <summary> /// Implementation for accessing CloudSearch /// /// Amazon CloudSearch Configuration Service /// <para> /// You use the Amazon CloudSearch configuration service to create, configure, and manage /// search domains. Configuration service requests are submitted using the AWS Query protocol. /// AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with /// a query parameter named Action. /// </para> /// /// <para> /// The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com. /// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported /// regions and endpoints, see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" /// target="_blank">Regions and Endpoints</a>. /// </para> /// </summary> public partial class AmazonCloudSearchClient : AmazonServiceClient, IAmazonCloudSearch { private static IServiceMetadata serviceMetadata = new AmazonCloudSearchMetadata(); #region Constructors /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(AmazonCloudSearchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudSearchClient(AWSCredentials credentials) : this(credentials, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudSearchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials and an /// AmazonCloudSearchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(AWSCredentials credentials, AmazonCloudSearchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudSearchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchClient 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 AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudSearchConfig 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 AmazonCloudSearchEndpointResolver()); } /// <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 BuildSuggesters /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> public virtual BuildSuggestersResponse BuildSuggesters(BuildSuggestersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance; return Invoke<BuildSuggestersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BuildSuggesters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBuildSuggesters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> public virtual IAsyncResult BeginBuildSuggesters(BuildSuggestersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BuildSuggesters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBuildSuggesters.</param> /// /// <returns>Returns a BuildSuggestersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> public virtual BuildSuggestersResponse EndBuildSuggesters(IAsyncResult asyncResult) { return EndInvoke<BuildSuggestersResponse>(asyncResult); } #endregion #region CreateDomain /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> public virtual CreateDomainResponse CreateDomain(CreateDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return Invoke<CreateDomainResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDomain operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDomain /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> public virtual IAsyncResult BeginCreateDomain(CreateDomainRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateDomain operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDomain.</param> /// /// <returns>Returns a CreateDomainResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> public virtual CreateDomainResponse EndCreateDomain(IAsyncResult asyncResult) { return EndInvoke<CreateDomainResponse>(asyncResult); } #endregion #region DefineAnalysisScheme /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> public virtual DefineAnalysisSchemeResponse DefineAnalysisScheme(DefineAnalysisSchemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance; return Invoke<DefineAnalysisSchemeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DefineAnalysisScheme operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineAnalysisScheme /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> public virtual IAsyncResult BeginDefineAnalysisScheme(DefineAnalysisSchemeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DefineAnalysisScheme operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineAnalysisScheme.</param> /// /// <returns>Returns a DefineAnalysisSchemeResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> public virtual DefineAnalysisSchemeResponse EndDefineAnalysisScheme(IAsyncResult asyncResult) { return EndInvoke<DefineAnalysisSchemeResponse>(asyncResult); } #endregion #region DefineExpression /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> public virtual DefineExpressionResponse DefineExpression(DefineExpressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance; return Invoke<DefineExpressionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DefineExpression operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineExpression operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineExpression /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> public virtual IAsyncResult BeginDefineExpression(DefineExpressionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DefineExpression operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineExpression.</param> /// /// <returns>Returns a DefineExpressionResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> public virtual DefineExpressionResponse EndDefineExpression(IAsyncResult asyncResult) { return EndInvoke<DefineExpressionResponse>(asyncResult); } #endregion #region DefineIndexField /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> public virtual DefineIndexFieldResponse DefineIndexField(DefineIndexFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineIndexFieldResponseUnmarshaller.Instance; return Invoke<DefineIndexFieldResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DefineIndexField operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineIndexField operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineIndexField /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> public virtual IAsyncResult BeginDefineIndexField(DefineIndexFieldRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DefineIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineIndexFieldResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DefineIndexField operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineIndexField.</param> /// /// <returns>Returns a DefineIndexFieldResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> public virtual DefineIndexFieldResponse EndDefineIndexField(IAsyncResult asyncResult) { return EndInvoke<DefineIndexFieldResponse>(asyncResult); } #endregion #region DefineSuggester /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> public virtual DefineSuggesterResponse DefineSuggester(DefineSuggesterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance; return Invoke<DefineSuggesterResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DefineSuggester operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineSuggester operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineSuggester /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> public virtual IAsyncResult BeginDefineSuggester(DefineSuggesterRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DefineSuggester operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineSuggester.</param> /// /// <returns>Returns a DefineSuggesterResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> public virtual DefineSuggesterResponse EndDefineSuggester(IAsyncResult asyncResult) { return EndInvoke<DefineSuggesterResponse>(asyncResult); } #endregion #region DeleteAnalysisScheme /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> public virtual DeleteAnalysisSchemeResponse DeleteAnalysisScheme(DeleteAnalysisSchemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalysisSchemeResponseUnmarshaller.Instance; return Invoke<DeleteAnalysisSchemeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteAnalysisScheme operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAnalysisScheme /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> public virtual IAsyncResult BeginDeleteAnalysisScheme(DeleteAnalysisSchemeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalysisSchemeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteAnalysisScheme operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAnalysisScheme.</param> /// /// <returns>Returns a DeleteAnalysisSchemeResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> public virtual DeleteAnalysisSchemeResponse EndDeleteAnalysisScheme(IAsyncResult asyncResult) { return EndInvoke<DeleteAnalysisSchemeResponse>(asyncResult); } #endregion #region DeleteDomain /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> public virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return Invoke<DeleteDomainResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDomain operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDomain /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> public virtual IAsyncResult BeginDeleteDomain(DeleteDomainRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteDomain operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDomain.</param> /// /// <returns>Returns a DeleteDomainResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> public virtual DeleteDomainResponse EndDeleteDomain(IAsyncResult asyncResult) { return EndInvoke<DeleteDomainResponse>(asyncResult); } #endregion #region DeleteExpression /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> public virtual DeleteExpressionResponse DeleteExpression(DeleteExpressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance; return Invoke<DeleteExpressionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteExpression operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteExpression operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteExpression /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> public virtual IAsyncResult BeginDeleteExpression(DeleteExpressionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteExpression operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteExpression.</param> /// /// <returns>Returns a DeleteExpressionResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> public virtual DeleteExpressionResponse EndDeleteExpression(IAsyncResult asyncResult) { return EndInvoke<DeleteExpressionResponse>(asyncResult); } #endregion #region DeleteIndexField /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> public virtual DeleteIndexFieldResponse DeleteIndexField(DeleteIndexFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance; return Invoke<DeleteIndexFieldResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteIndexField operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteIndexField /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> public virtual IAsyncResult BeginDeleteIndexField(DeleteIndexFieldRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteIndexField operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteIndexField.</param> /// /// <returns>Returns a DeleteIndexFieldResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> public virtual DeleteIndexFieldResponse EndDeleteIndexField(IAsyncResult asyncResult) { return EndInvoke<DeleteIndexFieldResponse>(asyncResult); } #endregion #region DeleteSuggester /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> public virtual DeleteSuggesterResponse DeleteSuggester(DeleteSuggesterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuggesterResponseUnmarshaller.Instance; return Invoke<DeleteSuggesterResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteSuggester operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteSuggester /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> public virtual IAsyncResult BeginDeleteSuggester(DeleteSuggesterRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuggesterResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteSuggester operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteSuggester.</param> /// /// <returns>Returns a DeleteSuggesterResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> public virtual DeleteSuggesterResponse EndDeleteSuggester(IAsyncResult asyncResult) { return EndInvoke<DeleteSuggesterResponse>(asyncResult); } #endregion #region DescribeAnalysisSchemes /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> public virtual DescribeAnalysisSchemesResponse DescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnalysisSchemesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnalysisSchemesResponseUnmarshaller.Instance; return Invoke<DescribeAnalysisSchemesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAnalysisSchemes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAnalysisSchemes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> public virtual IAsyncResult BeginDescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnalysisSchemesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnalysisSchemesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAnalysisSchemes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAnalysisSchemes.</param> /// /// <returns>Returns a DescribeAnalysisSchemesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> public virtual DescribeAnalysisSchemesResponse EndDescribeAnalysisSchemes(IAsyncResult asyncResult) { return EndInvoke<DescribeAnalysisSchemesResponse>(asyncResult); } #endregion #region DescribeAvailabilityOptions /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> public virtual DescribeAvailabilityOptionsResponse DescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAvailabilityOptionsResponseUnmarshaller.Instance; return Invoke<DescribeAvailabilityOptionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAvailabilityOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAvailabilityOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> public virtual IAsyncResult BeginDescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAvailabilityOptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAvailabilityOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAvailabilityOptions.</param> /// /// <returns>Returns a DescribeAvailabilityOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> public virtual DescribeAvailabilityOptionsResponse EndDescribeAvailabilityOptions(IAsyncResult asyncResult) { return EndInvoke<DescribeAvailabilityOptionsResponse>(asyncResult); } #endregion #region DescribeDomainEndpointOptions /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> public virtual DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance; return Invoke<DescribeDomainEndpointOptionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeDomainEndpointOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDomainEndpointOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> public virtual IAsyncResult BeginDescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeDomainEndpointOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeDomainEndpointOptions.</param> /// /// <returns>Returns a DescribeDomainEndpointOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> public virtual DescribeDomainEndpointOptionsResponse EndDescribeDomainEndpointOptions(IAsyncResult asyncResult) { return EndInvoke<DescribeDomainEndpointOptionsResponse>(asyncResult); } #endregion #region DescribeDomains /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual DescribeDomainsResponse DescribeDomains() { return DescribeDomains(new DescribeDomainsRequest()); } /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance; return Invoke<DescribeDomainsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeDomains operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDomains operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDomains /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual IAsyncResult BeginDescribeDomains(DescribeDomainsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeDomains operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeDomains.</param> /// /// <returns>Returns a DescribeDomainsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual DescribeDomainsResponse EndDescribeDomains(IAsyncResult asyncResult) { return EndInvoke<DescribeDomainsResponse>(asyncResult); } #endregion #region DescribeExpressions /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> public virtual DescribeExpressionsResponse DescribeExpressions(DescribeExpressionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExpressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExpressionsResponseUnmarshaller.Instance; return Invoke<DescribeExpressionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeExpressions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeExpressions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> public virtual IAsyncResult BeginDescribeExpressions(DescribeExpressionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExpressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExpressionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeExpressions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeExpressions.</param> /// /// <returns>Returns a DescribeExpressionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> public virtual DescribeExpressionsResponse EndDescribeExpressions(IAsyncResult asyncResult) { return EndInvoke<DescribeExpressionsResponse>(asyncResult); } #endregion #region DescribeIndexFields /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> public virtual DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance; return Invoke<DescribeIndexFieldsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeIndexFields operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeIndexFields /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> public virtual IAsyncResult BeginDescribeIndexFields(DescribeIndexFieldsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeIndexFields operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeIndexFields.</param> /// /// <returns>Returns a DescribeIndexFieldsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> public virtual DescribeIndexFieldsResponse EndDescribeIndexFields(IAsyncResult asyncResult) { return EndInvoke<DescribeIndexFieldsResponse>(asyncResult); } #endregion #region DescribeScalingParameters /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> public virtual DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance; return Invoke<DescribeScalingParametersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeScalingParameters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingParameters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> public virtual IAsyncResult BeginDescribeScalingParameters(DescribeScalingParametersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeScalingParameters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingParameters.</param> /// /// <returns>Returns a DescribeScalingParametersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> public virtual DescribeScalingParametersResponse EndDescribeScalingParameters(IAsyncResult asyncResult) { return EndInvoke<DescribeScalingParametersResponse>(asyncResult); } #endregion #region DescribeServiceAccessPolicies /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> public virtual DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance; return Invoke<DescribeServiceAccessPoliciesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeServiceAccessPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeServiceAccessPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> public virtual IAsyncResult BeginDescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeServiceAccessPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeServiceAccessPolicies.</param> /// /// <returns>Returns a DescribeServiceAccessPoliciesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> public virtual DescribeServiceAccessPoliciesResponse EndDescribeServiceAccessPolicies(IAsyncResult asyncResult) { return EndInvoke<DescribeServiceAccessPoliciesResponse>(asyncResult); } #endregion #region DescribeSuggesters /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> public virtual DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance; return Invoke<DescribeSuggestersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeSuggesters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeSuggesters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> public virtual IAsyncResult BeginDescribeSuggesters(DescribeSuggestersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeSuggesters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSuggesters.</param> /// /// <returns>Returns a DescribeSuggestersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> public virtual DescribeSuggestersResponse EndDescribeSuggesters(IAsyncResult asyncResult) { return EndInvoke<DescribeSuggestersResponse>(asyncResult); } #endregion #region IndexDocuments /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> public virtual IndexDocumentsResponse IndexDocuments(IndexDocumentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance; return Invoke<IndexDocumentsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the IndexDocuments operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the IndexDocuments operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndIndexDocuments /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> public virtual IAsyncResult BeginIndexDocuments(IndexDocumentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the IndexDocuments operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginIndexDocuments.</param> /// /// <returns>Returns a IndexDocumentsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> public virtual IndexDocumentsResponse EndIndexDocuments(IAsyncResult asyncResult) { return EndInvoke<IndexDocumentsResponse>(asyncResult); } #endregion #region ListDomainNames /// <summary> /// Lists all search domains owned by an account. /// </summary> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse ListDomainNames() { return ListDomainNames(new ListDomainNamesRequest()); } /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return Invoke<ListDomainNamesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDomainNames operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDomainNames /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual IAsyncResult BeginListDomainNames(ListDomainNamesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDomainNames.</param> /// /// <returns>Returns a ListDomainNamesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse EndListDomainNames(IAsyncResult asyncResult) { return EndInvoke<ListDomainNamesResponse>(asyncResult); } #endregion #region UpdateAvailabilityOptions /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> public virtual UpdateAvailabilityOptionsResponse UpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance; return Invoke<UpdateAvailabilityOptionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateAvailabilityOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAvailabilityOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> public virtual IAsyncResult BeginUpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateAvailabilityOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateAvailabilityOptions.</param> /// /// <returns>Returns a UpdateAvailabilityOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> public virtual UpdateAvailabilityOptionsResponse EndUpdateAvailabilityOptions(IAsyncResult asyncResult) { return EndInvoke<UpdateAvailabilityOptionsResponse>(asyncResult); } #endregion #region UpdateDomainEndpointOptions /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> public virtual UpdateDomainEndpointOptionsResponse UpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainEndpointOptionsResponseUnmarshaller.Instance; return Invoke<UpdateDomainEndpointOptionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateDomainEndpointOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDomainEndpointOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> public virtual IAsyncResult BeginUpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainEndpointOptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateDomainEndpointOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDomainEndpointOptions.</param> /// /// <returns>Returns a UpdateDomainEndpointOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> public virtual UpdateDomainEndpointOptionsResponse EndUpdateDomainEndpointOptions(IAsyncResult asyncResult) { return EndInvoke<UpdateDomainEndpointOptionsResponse>(asyncResult); } #endregion #region UpdateScalingParameters /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> public virtual UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance; return Invoke<UpdateScalingParametersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateScalingParameters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateScalingParameters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> public virtual IAsyncResult BeginUpdateScalingParameters(UpdateScalingParametersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateScalingParameters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateScalingParameters.</param> /// /// <returns>Returns a UpdateScalingParametersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> public virtual UpdateScalingParametersResponse EndUpdateScalingParameters(IAsyncResult asyncResult) { return EndInvoke<UpdateScalingParametersResponse>(asyncResult); } #endregion #region UpdateServiceAccessPolicies /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> public virtual UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance; return Invoke<UpdateServiceAccessPoliciesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateServiceAccessPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateServiceAccessPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> public virtual IAsyncResult BeginUpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateServiceAccessPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateServiceAccessPolicies.</param> /// /// <returns>Returns a UpdateServiceAccessPoliciesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> public virtual UpdateServiceAccessPoliciesResponse EndUpdateServiceAccessPolicies(IAsyncResult asyncResult) { return EndInvoke<UpdateServiceAccessPoliciesResponse>(asyncResult); } #endregion } }
2,234
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudSearch.Model; namespace Amazon.CloudSearch { /// <summary> /// Interface for accessing CloudSearch /// /// Amazon CloudSearch Configuration Service /// <para> /// You use the Amazon CloudSearch configuration service to create, configure, and manage /// search domains. Configuration service requests are submitted using the AWS Query protocol. /// AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with /// a query parameter named Action. /// </para> /// /// <para> /// The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com. /// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported /// regions and endpoints, see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" /// target="_blank">Regions and Endpoints</a>. /// </para> /// </summary> public partial interface IAmazonCloudSearch : IAmazonService, IDisposable { #region BuildSuggesters /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> BuildSuggestersResponse BuildSuggesters(BuildSuggestersRequest request); /// <summary> /// Initiates the asynchronous execution of the BuildSuggesters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBuildSuggesters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> IAsyncResult BeginBuildSuggesters(BuildSuggestersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BuildSuggesters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBuildSuggesters.</param> /// /// <returns>Returns a BuildSuggestersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> BuildSuggestersResponse EndBuildSuggesters(IAsyncResult asyncResult); #endregion #region CreateDomain /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> CreateDomainResponse CreateDomain(CreateDomainRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDomain operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDomain /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> IAsyncResult BeginCreateDomain(CreateDomainRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateDomain operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDomain.</param> /// /// <returns>Returns a CreateDomainResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> CreateDomainResponse EndCreateDomain(IAsyncResult asyncResult); #endregion #region DefineAnalysisScheme /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> DefineAnalysisSchemeResponse DefineAnalysisScheme(DefineAnalysisSchemeRequest request); /// <summary> /// Initiates the asynchronous execution of the DefineAnalysisScheme operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineAnalysisScheme /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> IAsyncResult BeginDefineAnalysisScheme(DefineAnalysisSchemeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DefineAnalysisScheme operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineAnalysisScheme.</param> /// /// <returns>Returns a DefineAnalysisSchemeResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> DefineAnalysisSchemeResponse EndDefineAnalysisScheme(IAsyncResult asyncResult); #endregion #region DefineExpression /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> DefineExpressionResponse DefineExpression(DefineExpressionRequest request); /// <summary> /// Initiates the asynchronous execution of the DefineExpression operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineExpression operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineExpression /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> IAsyncResult BeginDefineExpression(DefineExpressionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DefineExpression operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineExpression.</param> /// /// <returns>Returns a DefineExpressionResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> DefineExpressionResponse EndDefineExpression(IAsyncResult asyncResult); #endregion #region DefineIndexField /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> DefineIndexFieldResponse DefineIndexField(DefineIndexFieldRequest request); /// <summary> /// Initiates the asynchronous execution of the DefineIndexField operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineIndexField operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineIndexField /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> IAsyncResult BeginDefineIndexField(DefineIndexFieldRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DefineIndexField operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineIndexField.</param> /// /// <returns>Returns a DefineIndexFieldResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> DefineIndexFieldResponse EndDefineIndexField(IAsyncResult asyncResult); #endregion #region DefineSuggester /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> DefineSuggesterResponse DefineSuggester(DefineSuggesterRequest request); /// <summary> /// Initiates the asynchronous execution of the DefineSuggester operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DefineSuggester operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDefineSuggester /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> IAsyncResult BeginDefineSuggester(DefineSuggesterRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DefineSuggester operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDefineSuggester.</param> /// /// <returns>Returns a DefineSuggesterResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> DefineSuggesterResponse EndDefineSuggester(IAsyncResult asyncResult); #endregion #region DeleteAnalysisScheme /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> DeleteAnalysisSchemeResponse DeleteAnalysisScheme(DeleteAnalysisSchemeRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteAnalysisScheme operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAnalysisScheme /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> IAsyncResult BeginDeleteAnalysisScheme(DeleteAnalysisSchemeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteAnalysisScheme operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAnalysisScheme.</param> /// /// <returns>Returns a DeleteAnalysisSchemeResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> DeleteAnalysisSchemeResponse EndDeleteAnalysisScheme(IAsyncResult asyncResult); #endregion #region DeleteDomain /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> DeleteDomainResponse DeleteDomain(DeleteDomainRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDomain operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDomain /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> IAsyncResult BeginDeleteDomain(DeleteDomainRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteDomain operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDomain.</param> /// /// <returns>Returns a DeleteDomainResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> DeleteDomainResponse EndDeleteDomain(IAsyncResult asyncResult); #endregion #region DeleteExpression /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> DeleteExpressionResponse DeleteExpression(DeleteExpressionRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteExpression operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteExpression operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteExpression /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> IAsyncResult BeginDeleteExpression(DeleteExpressionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteExpression operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteExpression.</param> /// /// <returns>Returns a DeleteExpressionResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> DeleteExpressionResponse EndDeleteExpression(IAsyncResult asyncResult); #endregion #region DeleteIndexField /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> DeleteIndexFieldResponse DeleteIndexField(DeleteIndexFieldRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteIndexField operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteIndexField /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> IAsyncResult BeginDeleteIndexField(DeleteIndexFieldRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteIndexField operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteIndexField.</param> /// /// <returns>Returns a DeleteIndexFieldResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> DeleteIndexFieldResponse EndDeleteIndexField(IAsyncResult asyncResult); #endregion #region DeleteSuggester /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> DeleteSuggesterResponse DeleteSuggester(DeleteSuggesterRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteSuggester operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteSuggester /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> IAsyncResult BeginDeleteSuggester(DeleteSuggesterRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteSuggester operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteSuggester.</param> /// /// <returns>Returns a DeleteSuggesterResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> DeleteSuggesterResponse EndDeleteSuggester(IAsyncResult asyncResult); #endregion #region DescribeAnalysisSchemes /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> DescribeAnalysisSchemesResponse DescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAnalysisSchemes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAnalysisSchemes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> IAsyncResult BeginDescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAnalysisSchemes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAnalysisSchemes.</param> /// /// <returns>Returns a DescribeAnalysisSchemesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> DescribeAnalysisSchemesResponse EndDescribeAnalysisSchemes(IAsyncResult asyncResult); #endregion #region DescribeAvailabilityOptions /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> DescribeAvailabilityOptionsResponse DescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAvailabilityOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAvailabilityOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> IAsyncResult BeginDescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAvailabilityOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAvailabilityOptions.</param> /// /// <returns>Returns a DescribeAvailabilityOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> DescribeAvailabilityOptionsResponse EndDescribeAvailabilityOptions(IAsyncResult asyncResult); #endregion #region DescribeDomainEndpointOptions /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeDomainEndpointOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDomainEndpointOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> IAsyncResult BeginDescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeDomainEndpointOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeDomainEndpointOptions.</param> /// /// <returns>Returns a DescribeDomainEndpointOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> DescribeDomainEndpointOptionsResponse EndDescribeDomainEndpointOptions(IAsyncResult asyncResult); #endregion #region DescribeDomains /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> DescribeDomainsResponse DescribeDomains(); /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeDomains operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDomains operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDomains /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> IAsyncResult BeginDescribeDomains(DescribeDomainsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeDomains operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeDomains.</param> /// /// <returns>Returns a DescribeDomainsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> DescribeDomainsResponse EndDescribeDomains(IAsyncResult asyncResult); #endregion #region DescribeExpressions /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> DescribeExpressionsResponse DescribeExpressions(DescribeExpressionsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeExpressions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeExpressions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> IAsyncResult BeginDescribeExpressions(DescribeExpressionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeExpressions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeExpressions.</param> /// /// <returns>Returns a DescribeExpressionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> DescribeExpressionsResponse EndDescribeExpressions(IAsyncResult asyncResult); #endregion #region DescribeIndexFields /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeIndexFields operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeIndexFields /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> IAsyncResult BeginDescribeIndexFields(DescribeIndexFieldsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeIndexFields operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeIndexFields.</param> /// /// <returns>Returns a DescribeIndexFieldsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> DescribeIndexFieldsResponse EndDescribeIndexFields(IAsyncResult asyncResult); #endregion #region DescribeScalingParameters /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeScalingParameters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingParameters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> IAsyncResult BeginDescribeScalingParameters(DescribeScalingParametersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeScalingParameters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingParameters.</param> /// /// <returns>Returns a DescribeScalingParametersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> DescribeScalingParametersResponse EndDescribeScalingParameters(IAsyncResult asyncResult); #endregion #region DescribeServiceAccessPolicies /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeServiceAccessPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeServiceAccessPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> IAsyncResult BeginDescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeServiceAccessPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeServiceAccessPolicies.</param> /// /// <returns>Returns a DescribeServiceAccessPoliciesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> DescribeServiceAccessPoliciesResponse EndDescribeServiceAccessPolicies(IAsyncResult asyncResult); #endregion #region DescribeSuggesters /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeSuggesters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeSuggesters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> IAsyncResult BeginDescribeSuggesters(DescribeSuggestersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeSuggesters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSuggesters.</param> /// /// <returns>Returns a DescribeSuggestersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> DescribeSuggestersResponse EndDescribeSuggesters(IAsyncResult asyncResult); #endregion #region IndexDocuments /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> IndexDocumentsResponse IndexDocuments(IndexDocumentsRequest request); /// <summary> /// Initiates the asynchronous execution of the IndexDocuments operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the IndexDocuments operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndIndexDocuments /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> IAsyncResult BeginIndexDocuments(IndexDocumentsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the IndexDocuments operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginIndexDocuments.</param> /// /// <returns>Returns a IndexDocumentsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> IndexDocumentsResponse EndIndexDocuments(IAsyncResult asyncResult); #endregion #region ListDomainNames /// <summary> /// Lists all search domains owned by an account. /// </summary> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse ListDomainNames(); /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDomainNames operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDomainNames /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> IAsyncResult BeginListDomainNames(ListDomainNamesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListDomainNames operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDomainNames.</param> /// /// <returns>Returns a ListDomainNamesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse EndListDomainNames(IAsyncResult asyncResult); #endregion #region UpdateAvailabilityOptions /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> UpdateAvailabilityOptionsResponse UpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateAvailabilityOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAvailabilityOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> IAsyncResult BeginUpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateAvailabilityOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateAvailabilityOptions.</param> /// /// <returns>Returns a UpdateAvailabilityOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> UpdateAvailabilityOptionsResponse EndUpdateAvailabilityOptions(IAsyncResult asyncResult); #endregion #region UpdateDomainEndpointOptions /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> UpdateDomainEndpointOptionsResponse UpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateDomainEndpointOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDomainEndpointOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> IAsyncResult BeginUpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateDomainEndpointOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDomainEndpointOptions.</param> /// /// <returns>Returns a UpdateDomainEndpointOptionsResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> UpdateDomainEndpointOptionsResponse EndUpdateDomainEndpointOptions(IAsyncResult asyncResult); #endregion #region UpdateScalingParameters /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateScalingParameters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateScalingParameters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> IAsyncResult BeginUpdateScalingParameters(UpdateScalingParametersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateScalingParameters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateScalingParameters.</param> /// /// <returns>Returns a UpdateScalingParametersResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> UpdateScalingParametersResponse EndUpdateScalingParameters(IAsyncResult asyncResult); #endregion #region UpdateServiceAccessPolicies /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateServiceAccessPolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies operation on AmazonCloudSearchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateServiceAccessPolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> IAsyncResult BeginUpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateServiceAccessPolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateServiceAccessPolicies.</param> /// /// <returns>Returns a UpdateServiceAccessPoliciesResult from CloudSearch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> UpdateServiceAccessPoliciesResponse EndUpdateServiceAccessPolicies(IAsyncResult asyncResult); #endregion } }
1,656
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.CloudSearch.Model.Internal.MarshallTransformations; using Amazon.CloudSearch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudSearch { /// <summary> /// Implementation for accessing CloudSearch /// /// Amazon CloudSearch Configuration Service /// <para> /// You use the Amazon CloudSearch configuration service to create, configure, and manage /// search domains. Configuration service requests are submitted using the AWS Query protocol. /// AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with /// a query parameter named Action. /// </para> /// /// <para> /// The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com. /// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported /// regions and endpoints, see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" /// target="_blank">Regions and Endpoints</a>. /// </para> /// </summary> public partial class AmazonCloudSearchClient : AmazonServiceClient, IAmazonCloudSearch { private static IServiceMetadata serviceMetadata = new AmazonCloudSearchMetadata(); #region Constructors /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(AmazonCloudSearchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudSearchClient(AWSCredentials credentials) : this(credentials, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudSearchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials and an /// AmazonCloudSearchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(AWSCredentials credentials, AmazonCloudSearchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudSearchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchClient 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 AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudSearchConfig 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 AmazonCloudSearchEndpointResolver()); } /// <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 BuildSuggesters /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> public virtual BuildSuggestersResponse BuildSuggesters(BuildSuggestersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance; return Invoke<BuildSuggestersResponse>(request, options); } /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> public virtual Task<BuildSuggestersResponse> BuildSuggestersAsync(BuildSuggestersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance; return InvokeAsync<BuildSuggestersResponse>(request, options, cancellationToken); } #endregion #region CreateDomain /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> public virtual CreateDomainResponse CreateDomain(CreateDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return Invoke<CreateDomainResponse>(request, options); } /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> public virtual Task<CreateDomainResponse> CreateDomainAsync(CreateDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return InvokeAsync<CreateDomainResponse>(request, options, cancellationToken); } #endregion #region DefineAnalysisScheme /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> public virtual DefineAnalysisSchemeResponse DefineAnalysisScheme(DefineAnalysisSchemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance; return Invoke<DefineAnalysisSchemeResponse>(request, options); } /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> public virtual Task<DefineAnalysisSchemeResponse> DefineAnalysisSchemeAsync(DefineAnalysisSchemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance; return InvokeAsync<DefineAnalysisSchemeResponse>(request, options, cancellationToken); } #endregion #region DefineExpression /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> public virtual DefineExpressionResponse DefineExpression(DefineExpressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance; return Invoke<DefineExpressionResponse>(request, options); } /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> public virtual Task<DefineExpressionResponse> DefineExpressionAsync(DefineExpressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance; return InvokeAsync<DefineExpressionResponse>(request, options, cancellationToken); } #endregion #region DefineIndexField /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> public virtual DefineIndexFieldResponse DefineIndexField(DefineIndexFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineIndexFieldResponseUnmarshaller.Instance; return Invoke<DefineIndexFieldResponse>(request, options); } /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> public virtual Task<DefineIndexFieldResponse> DefineIndexFieldAsync(DefineIndexFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineIndexFieldResponseUnmarshaller.Instance; return InvokeAsync<DefineIndexFieldResponse>(request, options, cancellationToken); } #endregion #region DefineSuggester /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> public virtual DefineSuggesterResponse DefineSuggester(DefineSuggesterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance; return Invoke<DefineSuggesterResponse>(request, options); } /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> public virtual Task<DefineSuggesterResponse> DefineSuggesterAsync(DefineSuggesterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance; return InvokeAsync<DefineSuggesterResponse>(request, options, cancellationToken); } #endregion #region DeleteAnalysisScheme /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> public virtual DeleteAnalysisSchemeResponse DeleteAnalysisScheme(DeleteAnalysisSchemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalysisSchemeResponseUnmarshaller.Instance; return Invoke<DeleteAnalysisSchemeResponse>(request, options); } /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> public virtual Task<DeleteAnalysisSchemeResponse> DeleteAnalysisSchemeAsync(DeleteAnalysisSchemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalysisSchemeResponseUnmarshaller.Instance; return InvokeAsync<DeleteAnalysisSchemeResponse>(request, options, cancellationToken); } #endregion #region DeleteDomain /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> public virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return Invoke<DeleteDomainResponse>(request, options); } /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> public virtual Task<DeleteDomainResponse> DeleteDomainAsync(DeleteDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return InvokeAsync<DeleteDomainResponse>(request, options, cancellationToken); } #endregion #region DeleteExpression /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> public virtual DeleteExpressionResponse DeleteExpression(DeleteExpressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance; return Invoke<DeleteExpressionResponse>(request, options); } /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> public virtual Task<DeleteExpressionResponse> DeleteExpressionAsync(DeleteExpressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance; return InvokeAsync<DeleteExpressionResponse>(request, options, cancellationToken); } #endregion #region DeleteIndexField /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> public virtual DeleteIndexFieldResponse DeleteIndexField(DeleteIndexFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance; return Invoke<DeleteIndexFieldResponse>(request, options); } /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> public virtual Task<DeleteIndexFieldResponse> DeleteIndexFieldAsync(DeleteIndexFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance; return InvokeAsync<DeleteIndexFieldResponse>(request, options, cancellationToken); } #endregion #region DeleteSuggester /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> public virtual DeleteSuggesterResponse DeleteSuggester(DeleteSuggesterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuggesterResponseUnmarshaller.Instance; return Invoke<DeleteSuggesterResponse>(request, options); } /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> public virtual Task<DeleteSuggesterResponse> DeleteSuggesterAsync(DeleteSuggesterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuggesterResponseUnmarshaller.Instance; return InvokeAsync<DeleteSuggesterResponse>(request, options, cancellationToken); } #endregion #region DescribeAnalysisSchemes /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> public virtual DescribeAnalysisSchemesResponse DescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnalysisSchemesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnalysisSchemesResponseUnmarshaller.Instance; return Invoke<DescribeAnalysisSchemesResponse>(request, options); } /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> public virtual Task<DescribeAnalysisSchemesResponse> DescribeAnalysisSchemesAsync(DescribeAnalysisSchemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnalysisSchemesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnalysisSchemesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAnalysisSchemesResponse>(request, options, cancellationToken); } #endregion #region DescribeAvailabilityOptions /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> public virtual DescribeAvailabilityOptionsResponse DescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAvailabilityOptionsResponseUnmarshaller.Instance; return Invoke<DescribeAvailabilityOptionsResponse>(request, options); } /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> public virtual Task<DescribeAvailabilityOptionsResponse> DescribeAvailabilityOptionsAsync(DescribeAvailabilityOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAvailabilityOptionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAvailabilityOptionsResponse>(request, options, cancellationToken); } #endregion #region DescribeDomainEndpointOptions /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> public virtual DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance; return Invoke<DescribeDomainEndpointOptionsResponse>(request, options); } /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> public virtual Task<DescribeDomainEndpointOptionsResponse> DescribeDomainEndpointOptionsAsync(DescribeDomainEndpointOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeDomainEndpointOptionsResponse>(request, options, cancellationToken); } #endregion #region DescribeDomains /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual DescribeDomainsResponse DescribeDomains() { return DescribeDomains(new DescribeDomainsRequest()); } /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance; return Invoke<DescribeDomainsResponse>(request, options); } /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual Task<DescribeDomainsResponse> DescribeDomainsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeDomainsAsync(new DescribeDomainsRequest(), cancellationToken); } /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual Task<DescribeDomainsResponse> DescribeDomainsAsync(DescribeDomainsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance; return InvokeAsync<DescribeDomainsResponse>(request, options, cancellationToken); } #endregion #region DescribeExpressions /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> public virtual DescribeExpressionsResponse DescribeExpressions(DescribeExpressionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExpressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExpressionsResponseUnmarshaller.Instance; return Invoke<DescribeExpressionsResponse>(request, options); } /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> public virtual Task<DescribeExpressionsResponse> DescribeExpressionsAsync(DescribeExpressionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExpressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExpressionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeExpressionsResponse>(request, options, cancellationToken); } #endregion #region DescribeIndexFields /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> public virtual DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance; return Invoke<DescribeIndexFieldsResponse>(request, options); } /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> public virtual Task<DescribeIndexFieldsResponse> DescribeIndexFieldsAsync(DescribeIndexFieldsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance; return InvokeAsync<DescribeIndexFieldsResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingParameters /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> public virtual DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance; return Invoke<DescribeScalingParametersResponse>(request, options); } /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> public virtual Task<DescribeScalingParametersResponse> DescribeScalingParametersAsync(DescribeScalingParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingParametersResponse>(request, options, cancellationToken); } #endregion #region DescribeServiceAccessPolicies /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> public virtual DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance; return Invoke<DescribeServiceAccessPoliciesResponse>(request, options); } /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> public virtual Task<DescribeServiceAccessPoliciesResponse> DescribeServiceAccessPoliciesAsync(DescribeServiceAccessPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance; return InvokeAsync<DescribeServiceAccessPoliciesResponse>(request, options, cancellationToken); } #endregion #region DescribeSuggesters /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> public virtual DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance; return Invoke<DescribeSuggestersResponse>(request, options); } /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> public virtual Task<DescribeSuggestersResponse> DescribeSuggestersAsync(DescribeSuggestersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance; return InvokeAsync<DescribeSuggestersResponse>(request, options, cancellationToken); } #endregion #region IndexDocuments /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> public virtual IndexDocumentsResponse IndexDocuments(IndexDocumentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance; return Invoke<IndexDocumentsResponse>(request, options); } /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> public virtual Task<IndexDocumentsResponse> IndexDocumentsAsync(IndexDocumentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance; return InvokeAsync<IndexDocumentsResponse>(request, options, cancellationToken); } #endregion #region ListDomainNames /// <summary> /// Lists all search domains owned by an account. /// </summary> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse ListDomainNames() { return ListDomainNames(new ListDomainNamesRequest()); } /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return Invoke<ListDomainNamesResponse>(request, options); } /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual Task<ListDomainNamesResponse> ListDomainNamesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListDomainNamesAsync(new ListDomainNamesRequest(), cancellationToken); } /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return InvokeAsync<ListDomainNamesResponse>(request, options, cancellationToken); } #endregion #region UpdateAvailabilityOptions /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> public virtual UpdateAvailabilityOptionsResponse UpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance; return Invoke<UpdateAvailabilityOptionsResponse>(request, options); } /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> public virtual Task<UpdateAvailabilityOptionsResponse> UpdateAvailabilityOptionsAsync(UpdateAvailabilityOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance; return InvokeAsync<UpdateAvailabilityOptionsResponse>(request, options, cancellationToken); } #endregion #region UpdateDomainEndpointOptions /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> public virtual UpdateDomainEndpointOptionsResponse UpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainEndpointOptionsResponseUnmarshaller.Instance; return Invoke<UpdateDomainEndpointOptionsResponse>(request, options); } /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> public virtual Task<UpdateDomainEndpointOptionsResponse> UpdateDomainEndpointOptionsAsync(UpdateDomainEndpointOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainEndpointOptionsResponseUnmarshaller.Instance; return InvokeAsync<UpdateDomainEndpointOptionsResponse>(request, options, cancellationToken); } #endregion #region UpdateScalingParameters /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> public virtual UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance; return Invoke<UpdateScalingParametersResponse>(request, options); } /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> public virtual Task<UpdateScalingParametersResponse> UpdateScalingParametersAsync(UpdateScalingParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance; return InvokeAsync<UpdateScalingParametersResponse>(request, options, cancellationToken); } #endregion #region UpdateServiceAccessPolicies /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> public virtual UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance; return Invoke<UpdateServiceAccessPoliciesResponse>(request, options); } /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> public virtual Task<UpdateServiceAccessPoliciesResponse> UpdateServiceAccessPoliciesAsync(UpdateServiceAccessPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance; return InvokeAsync<UpdateServiceAccessPoliciesResponse>(request, options, cancellationToken); } #endregion } }
2,472
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudSearch.Model; namespace Amazon.CloudSearch { /// <summary> /// Interface for accessing CloudSearch /// /// Amazon CloudSearch Configuration Service /// <para> /// You use the Amazon CloudSearch configuration service to create, configure, and manage /// search domains. Configuration service requests are submitted using the AWS Query protocol. /// AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with /// a query parameter named Action. /// </para> /// /// <para> /// The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com. /// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported /// regions and endpoints, see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" /// target="_blank">Regions and Endpoints</a>. /// </para> /// </summary> public partial interface IAmazonCloudSearch : IAmazonService, IDisposable { #region BuildSuggesters /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> BuildSuggestersResponse BuildSuggesters(BuildSuggestersRequest request); /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> Task<BuildSuggestersResponse> BuildSuggestersAsync(BuildSuggestersRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDomain /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> CreateDomainResponse CreateDomain(CreateDomainRequest request); /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> Task<CreateDomainResponse> CreateDomainAsync(CreateDomainRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineAnalysisScheme /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> DefineAnalysisSchemeResponse DefineAnalysisScheme(DefineAnalysisSchemeRequest request); /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> Task<DefineAnalysisSchemeResponse> DefineAnalysisSchemeAsync(DefineAnalysisSchemeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineExpression /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> DefineExpressionResponse DefineExpression(DefineExpressionRequest request); /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> Task<DefineExpressionResponse> DefineExpressionAsync(DefineExpressionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineIndexField /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> DefineIndexFieldResponse DefineIndexField(DefineIndexFieldRequest request); /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> Task<DefineIndexFieldResponse> DefineIndexFieldAsync(DefineIndexFieldRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineSuggester /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> DefineSuggesterResponse DefineSuggester(DefineSuggesterRequest request); /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> Task<DefineSuggesterResponse> DefineSuggesterAsync(DefineSuggesterRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteAnalysisScheme /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> DeleteAnalysisSchemeResponse DeleteAnalysisScheme(DeleteAnalysisSchemeRequest request); /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> Task<DeleteAnalysisSchemeResponse> DeleteAnalysisSchemeAsync(DeleteAnalysisSchemeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDomain /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> DeleteDomainResponse DeleteDomain(DeleteDomainRequest request); /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> Task<DeleteDomainResponse> DeleteDomainAsync(DeleteDomainRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteExpression /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> DeleteExpressionResponse DeleteExpression(DeleteExpressionRequest request); /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> Task<DeleteExpressionResponse> DeleteExpressionAsync(DeleteExpressionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteIndexField /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> DeleteIndexFieldResponse DeleteIndexField(DeleteIndexFieldRequest request); /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> Task<DeleteIndexFieldResponse> DeleteIndexFieldAsync(DeleteIndexFieldRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteSuggester /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> DeleteSuggesterResponse DeleteSuggester(DeleteSuggesterRequest request); /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> Task<DeleteSuggesterResponse> DeleteSuggesterAsync(DeleteSuggesterRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAnalysisSchemes /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> DescribeAnalysisSchemesResponse DescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request); /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> Task<DescribeAnalysisSchemesResponse> DescribeAnalysisSchemesAsync(DescribeAnalysisSchemesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAvailabilityOptions /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> DescribeAvailabilityOptionsResponse DescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request); /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> Task<DescribeAvailabilityOptionsResponse> DescribeAvailabilityOptionsAsync(DescribeAvailabilityOptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeDomainEndpointOptions /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request); /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> Task<DescribeDomainEndpointOptionsResponse> DescribeDomainEndpointOptionsAsync(DescribeDomainEndpointOptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeDomains /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> DescribeDomainsResponse DescribeDomains(); /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest request); /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> Task<DescribeDomainsResponse> DescribeDomainsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> Task<DescribeDomainsResponse> DescribeDomainsAsync(DescribeDomainsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeExpressions /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> DescribeExpressionsResponse DescribeExpressions(DescribeExpressionsRequest request); /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> Task<DescribeExpressionsResponse> DescribeExpressionsAsync(DescribeExpressionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeIndexFields /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request); /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> Task<DescribeIndexFieldsResponse> DescribeIndexFieldsAsync(DescribeIndexFieldsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingParameters /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request); /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> Task<DescribeScalingParametersResponse> DescribeScalingParametersAsync(DescribeScalingParametersRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeServiceAccessPolicies /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request); /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> Task<DescribeServiceAccessPoliciesResponse> DescribeServiceAccessPoliciesAsync(DescribeServiceAccessPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeSuggesters /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request); /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> Task<DescribeSuggestersResponse> DescribeSuggestersAsync(DescribeSuggestersRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region IndexDocuments /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> IndexDocumentsResponse IndexDocuments(IndexDocumentsRequest request); /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> Task<IndexDocumentsResponse> IndexDocumentsAsync(IndexDocumentsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDomainNames /// <summary> /// Lists all search domains owned by an account. /// </summary> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse ListDomainNames(); /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request); /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> Task<ListDomainNamesResponse> ListDomainNamesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateAvailabilityOptions /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> UpdateAvailabilityOptionsResponse UpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request); /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> Task<UpdateAvailabilityOptionsResponse> UpdateAvailabilityOptionsAsync(UpdateAvailabilityOptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDomainEndpointOptions /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> UpdateDomainEndpointOptionsResponse UpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request); /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> Task<UpdateDomainEndpointOptionsResponse> UpdateDomainEndpointOptionsAsync(UpdateDomainEndpointOptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateScalingParameters /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request); /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> Task<UpdateScalingParametersResponse> UpdateScalingParametersAsync(UpdateScalingParametersRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateServiceAccessPolicies /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request); /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> Task<UpdateServiceAccessPoliciesResponse> UpdateServiceAccessPoliciesAsync(UpdateServiceAccessPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,915
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.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.CloudSearch.Model; using Amazon.CloudSearch.Model.Internal.MarshallTransformations; using Amazon.CloudSearch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudSearch { /// <summary> /// Implementation for accessing CloudSearch /// /// Amazon CloudSearch Configuration Service /// <para> /// You use the Amazon CloudSearch configuration service to create, configure, and manage /// search domains. Configuration service requests are submitted using the AWS Query protocol. /// AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with /// a query parameter named Action. /// </para> /// /// <para> /// The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com. /// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported /// regions and endpoints, see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" /// target="_blank">Regions and Endpoints</a>. /// </para> /// </summary> public partial class AmazonCloudSearchClient : AmazonServiceClient, IAmazonCloudSearch { private static IServiceMetadata serviceMetadata = new AmazonCloudSearchMetadata(); #region Constructors /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(AmazonCloudSearchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudSearchClient(AWSCredentials credentials) : this(credentials, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudSearchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Credentials and an /// AmazonCloudSearchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(AWSCredentials credentials, AmazonCloudSearchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudSearchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudSearchConfig()) { } /// <summary> /// Constructs AmazonCloudSearchClient 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 AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudSearchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudSearchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchClient 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 AmazonCloudSearchClient Configuration Object</param> public AmazonCloudSearchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudSearchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudSearchEndpointResolver()); } /// <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 BuildSuggesters internal virtual BuildSuggestersResponse BuildSuggesters(BuildSuggestersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance; return Invoke<BuildSuggestersResponse>(request, options); } /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> public virtual Task<BuildSuggestersResponse> BuildSuggestersAsync(BuildSuggestersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance; return InvokeAsync<BuildSuggestersResponse>(request, options, cancellationToken); } #endregion #region CreateDomain internal virtual CreateDomainResponse CreateDomain(CreateDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return Invoke<CreateDomainResponse>(request, options); } /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> public virtual Task<CreateDomainResponse> CreateDomainAsync(CreateDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return InvokeAsync<CreateDomainResponse>(request, options, cancellationToken); } #endregion #region DefineAnalysisScheme internal virtual DefineAnalysisSchemeResponse DefineAnalysisScheme(DefineAnalysisSchemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance; return Invoke<DefineAnalysisSchemeResponse>(request, options); } /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> public virtual Task<DefineAnalysisSchemeResponse> DefineAnalysisSchemeAsync(DefineAnalysisSchemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance; return InvokeAsync<DefineAnalysisSchemeResponse>(request, options, cancellationToken); } #endregion #region DefineExpression internal virtual DefineExpressionResponse DefineExpression(DefineExpressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance; return Invoke<DefineExpressionResponse>(request, options); } /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> public virtual Task<DefineExpressionResponse> DefineExpressionAsync(DefineExpressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance; return InvokeAsync<DefineExpressionResponse>(request, options, cancellationToken); } #endregion #region DefineIndexField internal virtual DefineIndexFieldResponse DefineIndexField(DefineIndexFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineIndexFieldResponseUnmarshaller.Instance; return Invoke<DefineIndexFieldResponse>(request, options); } /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> public virtual Task<DefineIndexFieldResponse> DefineIndexFieldAsync(DefineIndexFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineIndexFieldResponseUnmarshaller.Instance; return InvokeAsync<DefineIndexFieldResponse>(request, options, cancellationToken); } #endregion #region DefineSuggester internal virtual DefineSuggesterResponse DefineSuggester(DefineSuggesterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance; return Invoke<DefineSuggesterResponse>(request, options); } /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> public virtual Task<DefineSuggesterResponse> DefineSuggesterAsync(DefineSuggesterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance; return InvokeAsync<DefineSuggesterResponse>(request, options, cancellationToken); } #endregion #region DeleteAnalysisScheme internal virtual DeleteAnalysisSchemeResponse DeleteAnalysisScheme(DeleteAnalysisSchemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalysisSchemeResponseUnmarshaller.Instance; return Invoke<DeleteAnalysisSchemeResponse>(request, options); } /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> public virtual Task<DeleteAnalysisSchemeResponse> DeleteAnalysisSchemeAsync(DeleteAnalysisSchemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalysisSchemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalysisSchemeResponseUnmarshaller.Instance; return InvokeAsync<DeleteAnalysisSchemeResponse>(request, options, cancellationToken); } #endregion #region DeleteDomain internal virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return Invoke<DeleteDomainResponse>(request, options); } /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> public virtual Task<DeleteDomainResponse> DeleteDomainAsync(DeleteDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return InvokeAsync<DeleteDomainResponse>(request, options, cancellationToken); } #endregion #region DeleteExpression internal virtual DeleteExpressionResponse DeleteExpression(DeleteExpressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance; return Invoke<DeleteExpressionResponse>(request, options); } /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> public virtual Task<DeleteExpressionResponse> DeleteExpressionAsync(DeleteExpressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance; return InvokeAsync<DeleteExpressionResponse>(request, options, cancellationToken); } #endregion #region DeleteIndexField internal virtual DeleteIndexFieldResponse DeleteIndexField(DeleteIndexFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance; return Invoke<DeleteIndexFieldResponse>(request, options); } /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> public virtual Task<DeleteIndexFieldResponse> DeleteIndexFieldAsync(DeleteIndexFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance; return InvokeAsync<DeleteIndexFieldResponse>(request, options, cancellationToken); } #endregion #region DeleteSuggester internal virtual DeleteSuggesterResponse DeleteSuggester(DeleteSuggesterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuggesterResponseUnmarshaller.Instance; return Invoke<DeleteSuggesterResponse>(request, options); } /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> public virtual Task<DeleteSuggesterResponse> DeleteSuggesterAsync(DeleteSuggesterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuggesterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuggesterResponseUnmarshaller.Instance; return InvokeAsync<DeleteSuggesterResponse>(request, options, cancellationToken); } #endregion #region DescribeAnalysisSchemes internal virtual DescribeAnalysisSchemesResponse DescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnalysisSchemesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnalysisSchemesResponseUnmarshaller.Instance; return Invoke<DescribeAnalysisSchemesResponse>(request, options); } /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> public virtual Task<DescribeAnalysisSchemesResponse> DescribeAnalysisSchemesAsync(DescribeAnalysisSchemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnalysisSchemesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnalysisSchemesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAnalysisSchemesResponse>(request, options, cancellationToken); } #endregion #region DescribeAvailabilityOptions internal virtual DescribeAvailabilityOptionsResponse DescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAvailabilityOptionsResponseUnmarshaller.Instance; return Invoke<DescribeAvailabilityOptionsResponse>(request, options); } /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> public virtual Task<DescribeAvailabilityOptionsResponse> DescribeAvailabilityOptionsAsync(DescribeAvailabilityOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAvailabilityOptionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAvailabilityOptionsResponse>(request, options, cancellationToken); } #endregion #region DescribeDomainEndpointOptions internal virtual DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance; return Invoke<DescribeDomainEndpointOptionsResponse>(request, options); } /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> public virtual Task<DescribeDomainEndpointOptionsResponse> DescribeDomainEndpointOptionsAsync(DescribeDomainEndpointOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeDomainEndpointOptionsResponse>(request, options, cancellationToken); } #endregion #region DescribeDomains internal virtual DescribeDomainsResponse DescribeDomains() { return DescribeDomains(new DescribeDomainsRequest()); } internal virtual DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance; return Invoke<DescribeDomainsResponse>(request, options); } /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual Task<DescribeDomainsResponse> DescribeDomainsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeDomainsAsync(new DescribeDomainsRequest(), cancellationToken); } /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> public virtual Task<DescribeDomainsResponse> DescribeDomainsAsync(DescribeDomainsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance; return InvokeAsync<DescribeDomainsResponse>(request, options, cancellationToken); } #endregion #region DescribeExpressions internal virtual DescribeExpressionsResponse DescribeExpressions(DescribeExpressionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExpressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExpressionsResponseUnmarshaller.Instance; return Invoke<DescribeExpressionsResponse>(request, options); } /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> public virtual Task<DescribeExpressionsResponse> DescribeExpressionsAsync(DescribeExpressionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExpressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExpressionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeExpressionsResponse>(request, options, cancellationToken); } #endregion #region DescribeIndexFields internal virtual DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance; return Invoke<DescribeIndexFieldsResponse>(request, options); } /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> public virtual Task<DescribeIndexFieldsResponse> DescribeIndexFieldsAsync(DescribeIndexFieldsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance; return InvokeAsync<DescribeIndexFieldsResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingParameters internal virtual DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance; return Invoke<DescribeScalingParametersResponse>(request, options); } /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> public virtual Task<DescribeScalingParametersResponse> DescribeScalingParametersAsync(DescribeScalingParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingParametersResponse>(request, options, cancellationToken); } #endregion #region DescribeServiceAccessPolicies internal virtual DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance; return Invoke<DescribeServiceAccessPoliciesResponse>(request, options); } /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> public virtual Task<DescribeServiceAccessPoliciesResponse> DescribeServiceAccessPoliciesAsync(DescribeServiceAccessPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance; return InvokeAsync<DescribeServiceAccessPoliciesResponse>(request, options, cancellationToken); } #endregion #region DescribeSuggesters internal virtual DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance; return Invoke<DescribeSuggestersResponse>(request, options); } /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> public virtual Task<DescribeSuggestersResponse> DescribeSuggestersAsync(DescribeSuggestersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance; return InvokeAsync<DescribeSuggestersResponse>(request, options, cancellationToken); } #endregion #region IndexDocuments internal virtual IndexDocumentsResponse IndexDocuments(IndexDocumentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance; return Invoke<IndexDocumentsResponse>(request, options); } /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> public virtual Task<IndexDocumentsResponse> IndexDocumentsAsync(IndexDocumentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance; return InvokeAsync<IndexDocumentsResponse>(request, options, cancellationToken); } #endregion #region ListDomainNames internal virtual ListDomainNamesResponse ListDomainNames() { return ListDomainNames(new ListDomainNamesRequest()); } internal virtual ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return Invoke<ListDomainNamesResponse>(request, options); } /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual Task<ListDomainNamesResponse> ListDomainNamesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListDomainNamesAsync(new ListDomainNamesRequest(), cancellationToken); } /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> public virtual Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance; return InvokeAsync<ListDomainNamesResponse>(request, options, cancellationToken); } #endregion #region UpdateAvailabilityOptions internal virtual UpdateAvailabilityOptionsResponse UpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance; return Invoke<UpdateAvailabilityOptionsResponse>(request, options); } /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> public virtual Task<UpdateAvailabilityOptionsResponse> UpdateAvailabilityOptionsAsync(UpdateAvailabilityOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance; return InvokeAsync<UpdateAvailabilityOptionsResponse>(request, options, cancellationToken); } #endregion #region UpdateDomainEndpointOptions internal virtual UpdateDomainEndpointOptionsResponse UpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainEndpointOptionsResponseUnmarshaller.Instance; return Invoke<UpdateDomainEndpointOptionsResponse>(request, options); } /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> public virtual Task<UpdateDomainEndpointOptionsResponse> UpdateDomainEndpointOptionsAsync(UpdateDomainEndpointOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainEndpointOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainEndpointOptionsResponseUnmarshaller.Instance; return InvokeAsync<UpdateDomainEndpointOptionsResponse>(request, options, cancellationToken); } #endregion #region UpdateScalingParameters internal virtual UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance; return Invoke<UpdateScalingParametersResponse>(request, options); } /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> public virtual Task<UpdateScalingParametersResponse> UpdateScalingParametersAsync(UpdateScalingParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance; return InvokeAsync<UpdateScalingParametersResponse>(request, options, cancellationToken); } #endregion #region UpdateServiceAccessPolicies internal virtual UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance; return Invoke<UpdateServiceAccessPoliciesResponse>(request, options); } /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> public virtual Task<UpdateServiceAccessPoliciesResponse> UpdateServiceAccessPoliciesAsync(UpdateServiceAccessPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance; return InvokeAsync<UpdateServiceAccessPoliciesResponse>(request, options, cancellationToken); } #endregion } }
1,733
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearch-2013-01-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudSearch.Model; namespace Amazon.CloudSearch { /// <summary> /// Interface for accessing CloudSearch /// /// Amazon CloudSearch Configuration Service /// <para> /// You use the Amazon CloudSearch configuration service to create, configure, and manage /// search domains. Configuration service requests are submitted using the AWS Query protocol. /// AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with /// a query parameter named Action. /// </para> /// /// <para> /// The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com. /// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported /// regions and endpoints, see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" /// target="_blank">Regions and Endpoints</a>. /// </para> /// </summary> public partial interface IAmazonCloudSearch : IAmazonService, IDisposable { #region BuildSuggesters /// <summary> /// Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring /// Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BuildSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BuildSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/BuildSuggesters">REST API Reference for BuildSuggesters Operation</seealso> Task<BuildSuggestersResponse> BuildSuggestersAsync(BuildSuggestersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateDomain /// <summary> /// Creates a new search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" /// target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceAlreadyExistsException"> /// The request was rejected because it attempted to create a resource that already exists. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/CreateDomain">REST API Reference for CreateDomain Operation</seealso> Task<CreateDomainResponse> CreateDomainAsync(CreateDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineAnalysisScheme /// <summary> /// Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> /// field to define language-specific text processing options. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineAnalysisScheme">REST API Reference for DefineAnalysisScheme Operation</seealso> Task<DefineAnalysisSchemeResponse> DefineAnalysisSchemeAsync(DefineAnalysisSchemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineExpression /// <summary> /// Configures an <code><a>Expression</a></code> for the search domain. Used to create /// new expressions and modify existing ones. If the expression exists, the new configuration /// replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineExpression">REST API Reference for DefineExpression Operation</seealso> Task<DefineExpressionResponse> DefineExpressionAsync(DefineExpressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineIndexField /// <summary> /// Configures an <code><a>IndexField</a></code> for the search domain. Used to create /// new fields and modify existing ones. You must specify the name of the domain you are /// configuring and an index field configuration. The index field configuration specifies /// a unique name, the index field type, and the options you want to configure for the /// field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. /// If the field exists, the new configuration replaces the old one. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineIndexField">REST API Reference for DefineIndexField Operation</seealso> Task<DefineIndexFieldResponse> DefineIndexFieldAsync(DefineIndexFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DefineSuggester /// <summary> /// Configures a suggester for a domain. A suggester enables you to display possible matches /// before users finish typing their queries. When you configure a suggester, you must /// specify the name of the text field you want to search for possible matches and a unique /// name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DefineSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DefineSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DefineSuggester">REST API Reference for DefineSuggester Operation</seealso> Task<DefineSuggesterResponse> DefineSuggesterAsync(DefineSuggesterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteAnalysisScheme /// <summary> /// Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalysisScheme service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnalysisScheme service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteAnalysisScheme">REST API Reference for DeleteAnalysisScheme Operation</seealso> Task<DeleteAnalysisSchemeResponse> DeleteAnalysisSchemeAsync(DeleteAnalysisSchemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDomain /// <summary> /// Permanently deletes a search domain and all of its data. Once a domain has been deleted, /// it cannot be recovered. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" /// target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDomain service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDomain service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteDomain">REST API Reference for DeleteDomain Operation</seealso> Task<DeleteDomainResponse> DeleteDomainAsync(DeleteDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteExpression /// <summary> /// Removes an <code><a>Expression</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteExpression service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteExpression service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteExpression">REST API Reference for DeleteExpression Operation</seealso> Task<DeleteExpressionResponse> DeleteExpressionAsync(DeleteExpressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteIndexField /// <summary> /// Removes an <code><a>IndexField</a></code> from the search domain. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" /// target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIndexField service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteIndexField service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteIndexField">REST API Reference for DeleteIndexField Operation</seealso> Task<DeleteIndexFieldResponse> DeleteIndexFieldAsync(DeleteIndexFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteSuggester /// <summary> /// Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteSuggester service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteSuggester service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DeleteSuggester">REST API Reference for DeleteSuggester Operation</seealso> Task<DeleteSuggesterResponse> DeleteSuggesterAsync(DeleteSuggesterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAnalysisSchemes /// <summary> /// Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific /// text processing options for a <code>text</code> field. Can be limited to specific /// analysis schemes by name. By default, shows all analysis schemes and includes any /// pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" /// target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnalysisSchemes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnalysisSchemes service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAnalysisSchemes">REST API Reference for DescribeAnalysisSchemes Operation</seealso> Task<DescribeAnalysisSchemesResponse> DescribeAnalysisSchemesAsync(DescribeAnalysisSchemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAvailabilityOptions /// <summary> /// Gets the availability options configured for a domain. By default, shows the configuration /// with any pending changes. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeAvailabilityOptions">REST API Reference for DescribeAvailabilityOptions Operation</seealso> Task<DescribeAvailabilityOptionsResponse> DescribeAvailabilityOptionsAsync(DescribeAvailabilityOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeDomainEndpointOptions /// <summary> /// Returns the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomainEndpointOptions">REST API Reference for DescribeDomainEndpointOptions Operation</seealso> Task<DescribeDomainEndpointOptionsResponse> DescribeDomainEndpointOptionsAsync(DescribeDomainEndpointOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeDomains /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> Task<DescribeDomainsResponse> DescribeDomainsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the search domains owned by this account. Can be limited to /// specific domains. Shows all domains by default. To get the number of searchable documents /// in a domain, use the console or submit a <code>matchall</code> request to your domain's /// search endpoint: <code>q=matchall&amp;amp;q.parser=structured&amp;amp;size=0</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDomains service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeDomains service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeDomains">REST API Reference for DescribeDomains Operation</seealso> Task<DescribeDomainsResponse> DescribeDomainsAsync(DescribeDomainsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeExpressions /// <summary> /// Gets the expressions configured for the search domain. Can be limited to specific /// expressions by name. By default, shows all expressions and includes any pending changes /// to the configuration. Set the <code>Deployed</code> option to <code>true</code> to /// show the active configuration and exclude pending changes. For more information, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" /// target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeExpressions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeExpressions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeExpressions">REST API Reference for DescribeExpressions Operation</seealso> Task<DescribeExpressionsResponse> DescribeExpressionsAsync(DescribeExpressionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeIndexFields /// <summary> /// Gets information about the index fields configured for the search domain. Can be limited /// to specific fields by name. By default, shows all fields and includes any pending /// changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> /// to show the active configuration and exclude pending changes. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" /// target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIndexFields service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeIndexFields service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeIndexFields">REST API Reference for DescribeIndexFields Operation</seealso> Task<DescribeIndexFieldsResponse> DescribeIndexFieldsAsync(DescribeIndexFieldsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingParameters /// <summary> /// Gets the scaling parameters configured for a domain. A domain's scaling parameters /// specify the desired search instance type and replication count. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeScalingParameters">REST API Reference for DescribeScalingParameters Operation</seealso> Task<DescribeScalingParametersResponse> DescribeScalingParametersAsync(DescribeScalingParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeServiceAccessPolicies /// <summary> /// Gets information about the access policies that control access to the domain's document /// and search endpoints. By default, shows the configuration with any pending changes. /// Set the <code>Deployed</code> option to <code>true</code> to show the active configuration /// and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeServiceAccessPolicies">REST API Reference for DescribeServiceAccessPolicies Operation</seealso> Task<DescribeServiceAccessPoliciesResponse> DescribeServiceAccessPoliciesAsync(DescribeServiceAccessPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeSuggesters /// <summary> /// Gets the suggesters configured for a domain. A suggester enables you to display possible /// matches before users finish typing their queries. Can be limited to specific suggesters /// by name. By default, shows all suggesters and includes any pending changes to the /// configuration. Set the <code>Deployed</code> option to <code>true</code> to show the /// active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" /// target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSuggesters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeSuggesters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/DescribeSuggesters">REST API Reference for DescribeSuggesters Operation</seealso> Task<DescribeSuggestersResponse> DescribeSuggestersAsync(DescribeSuggestersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region IndexDocuments /// <summary> /// Tells the search domain to start indexing its documents using the latest indexing /// options. This operation must be invoked to activate options whose <a>OptionStatus</a> /// is <code>RequiresIndexDocuments</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the IndexDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the IndexDocuments service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/IndexDocuments">REST API Reference for IndexDocuments Operation</seealso> Task<IndexDocumentsResponse> IndexDocumentsAsync(IndexDocumentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDomainNames /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> Task<ListDomainNamesResponse> ListDomainNamesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Lists all search domains owned by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDomainNames service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDomainNames service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/ListDomainNames">REST API Reference for ListDomainNames Operation</seealso> Task<ListDomainNamesResponse> ListDomainNamesAsync(ListDomainNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateAvailabilityOptions /// <summary> /// Configures the availability options for a domain. Enabling the Multi-AZ option expands /// an Amazon CloudSearch domain to an additional Availability Zone in the same Region /// to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ /// option can take about half an hour to become active. For more information, see <a /// href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" /// target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateAvailabilityOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAvailabilityOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateAvailabilityOptions">REST API Reference for UpdateAvailabilityOptions Operation</seealso> Task<UpdateAvailabilityOptionsResponse> UpdateAvailabilityOptionsAsync(UpdateAvailabilityOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateDomainEndpointOptions /// <summary> /// Updates the domain's endpoint options, specifically whether all requests to the domain /// must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" /// target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch /// Developer Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateDomainEndpointOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateDomainEndpointOptions service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.DisabledOperationException"> /// The request was rejected because it attempted an operation which is not enabled. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateDomainEndpointOptions">REST API Reference for UpdateDomainEndpointOptions Operation</seealso> Task<UpdateDomainEndpointOptionsResponse> UpdateDomainEndpointOptionsAsync(UpdateDomainEndpointOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateScalingParameters /// <summary> /// Configures scaling parameters for a domain. A domain's scaling parameters specify /// the desired search instance type and replication count. Amazon CloudSearch will still /// automatically scale your domain based on the volume of data and traffic, but not below /// the desired instance type and replication count. If the Multi-AZ option is enabled, /// these values control the resources used per Availability Zone. For more information, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" /// target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer /// Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingParameters service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingParameters service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateScalingParameters">REST API Reference for UpdateScalingParameters Operation</seealso> Task<UpdateScalingParametersResponse> UpdateScalingParametersAsync(UpdateScalingParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateServiceAccessPolicies /// <summary> /// Configures the access rules that control access to the domain's document and search /// endpoints. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" /// target="_blank"> Configuring Access for an Amazon CloudSearch Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateServiceAccessPolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateServiceAccessPolicies service method, as returned by CloudSearch.</returns> /// <exception cref="Amazon.CloudSearch.Model.BaseException"> /// An error occurred while processing the request. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InternalException"> /// An internal error occurred while processing the request. If this problem persists, /// report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service /// Health Dashboard</a>. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.InvalidTypeException"> /// The request was rejected because it specified an invalid type definition. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.LimitExceededException"> /// The request was rejected because a resource limit has already been met. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ResourceNotFoundException"> /// The request was rejected because it attempted to reference a resource that does not /// exist. /// </exception> /// <exception cref="Amazon.CloudSearch.Model.ValidationException"> /// The request was rejected because it has invalid parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearch-2013-01-01/UpdateServiceAccessPolicies">REST API Reference for UpdateServiceAccessPolicies Operation</seealso> Task<UpdateServiceAccessPoliciesResponse> UpdateServiceAccessPoliciesAsync(UpdateServiceAccessPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,090
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.CloudSearch")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudSearch. Amazon CloudSearch is a managed service in the AWS Cloud that makes it simple and cost-effective to set up, manage, and scale a search solution for your website or application.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudSearch. Amazon CloudSearch is a managed service in the AWS Cloud that makes it simple and cost-effective to set up, manage, and scale a search solution for your website or application.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudSearch. Amazon CloudSearch is a managed service in the AWS Cloud that makes it simple and cost-effective to set up, manage, and scale a search solution for your website or application.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudSearch. Amazon CloudSearch is a managed service in the AWS Cloud that makes it simple and cost-effective to set up, manage, and scale a search solution for your website or application.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.100.147")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using Amazon.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Amazon.CloudSearchDomain { public partial class AmazonCloudSearchDomainClient : AmazonServiceClient { /// <summary> /// Constructs AmazonCloudSearchDomainClient 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 AmazonCloudSearchDomainClient() : base(FallbackCredentialsFactory.GetCredentials(true), new AmazonCloudSearchDomainConfig()) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient 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="serviceUrl">The URL of the search or document service.</param> public AmazonCloudSearchDomainClient(string serviceUrl) : base(FallbackCredentialsFactory.GetCredentials(true), new AmazonCloudSearchDomainConfig { ServiceURL = serviceUrl }) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient 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 AmazonCloudSearchDomainClient Configuration Object</param> public AmazonCloudSearchDomainClient(AmazonCloudSearchDomainConfig config) : base(FallbackCredentialsFactory.GetCredentials(true), config) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient with AWS Credentials /// </summary> /// <param name="serviceUrl">The URL of the search or document service.</param> /// <param name="credentials">AWS Credentials</param> public AmazonCloudSearchDomainClient(string serviceUrl, AWSCredentials credentials) : this(credentials, new AmazonCloudSearchDomainConfig { ServiceURL = serviceUrl }) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient with AWS Credentials and an /// AmazonCloudSearchDomainClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudSearchDomainClient Configuration Object</param> public AmazonCloudSearchDomainClient(AWSCredentials credentials, AmazonCloudSearchDomainConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient 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 AmazonCloudSearchDomainClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchDomainConfig()) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient 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="serviceUrl">The URL of the search or document service.</param> public AmazonCloudSearchDomainClient(string awsAccessKeyId, string awsSecretAccessKey, string serviceUrl) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudSearchDomainConfig { ServiceURL = serviceUrl }) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchDomainClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudSearchDomainClient Configuration Object</param> public AmazonCloudSearchDomainClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudSearchDomainConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient 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="serviceUrl">The URL of the search or document service.</param> public AmazonCloudSearchDomainClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, string serviceUrl) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudSearchDomainConfig{ ServiceURL = serviceUrl}) { } /// <summary> /// Constructs AmazonCloudSearchDomainClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudSearchDomainClient 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 AmazonCloudSearchDomainClient Configuration Object</param> public AmazonCloudSearchDomainClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudSearchDomainConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } } }
172
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System; using Amazon.Runtime; namespace Amazon.CloudSearchDomain { /// <summary> /// Configuration for accessing Amazon CloudSearchDomain service /// </summary> public partial class AmazonCloudSearchDomainConfig : ClientConfig { /// <summary> /// Validate that the config object is properly configured. /// </summary> public override void Validate() { if (RegionEndpoint != null) throw new AmazonClientException("The RegionEndpoint property is not applicable for AmazonCloudSearchDomainClient and should not be set."); if (string.IsNullOrEmpty(this.ServiceURL)) throw new AmazonClientException("No ServiceURL configured"); } } }
41
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System.Diagnostics.CodeAnalysis; // Suppressions for various *url* params being strings. [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudSearchDomain.AmazonCloudSearchDomainClient.#.ctor(System.String,Amazon.Runtime.AWSCredentials)", MessageId = "0#")] [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudSearchDomain.AmazonCloudSearchDomainClient.#.ctor(System.String,System.String,System.String,System.String)", MessageId = "3#")] [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudSearchDomain.AmazonCloudSearchDomainClient.#.ctor(System.String)", MessageId = "0#")] [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudSearchDomain.AmazonCloudSearchDomainClient.#.ctor(System.String,System.String,System.String)", MessageId = "2#")] // Suppressions for Nested Generic types [module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Amazon.CloudSearchDomain.Model.Hit.#Fields")]
25
aws-sdk-net
aws
C#
using Amazon.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Amazon.CloudSearchDomain.Internal { /// <summary> /// Custom pipeline handler to make sure streams are closed in case of exceptions. /// </summary> public class ProcessExceptionHandler : PipelineHandler { #if BCL /// <summary> /// Override to do extra exception handling if thrown in the pipeline. /// </summary> /// <param name="executionContext"></param> public override void InvokeSync(IExecutionContext executionContext) { try { base.InvokeSync(executionContext); } catch (Exception exception) { HandleException(executionContext, exception); throw; } } #endif #if BCL45 /// <summary> /// Override to do extra exception handling if thrown in the pipeline. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="executionContext"></param> /// <returns></returns> public override async System.Threading.Tasks.Task<T> InvokeAsync<T>(IExecutionContext executionContext) { try { return await base.InvokeAsync<T>(executionContext).ConfigureAwait(false); } catch(Exception exception) { HandleException(executionContext, exception); throw; } } #elif AWS_APM_API /// <summary> /// Override to do extra exception handling if thrown in the pipeline. /// </summary> /// <param name="executionContext"></param> protected override void InvokeAsyncCallback(IAsyncExecutionContext executionContext) { var exception = executionContext.ResponseContext.AsyncResult.Exception; if (executionContext.ResponseContext.AsyncResult.Exception != null) { HandleException(ExecutionContext.CreateFromAsyncContext(executionContext), exception); } // Call outer handler base.InvokeAsyncCallback(executionContext); } #endif #if BCL /// <summary> /// Make sure stream is closed in case of exceptions in the pipeline. /// </summary> /// <param name="executionContext"></param> /// <param name="exception"></param> protected virtual void HandleException(IExecutionContext executionContext, Exception exception) { var uploadDocumentsRequest = executionContext.RequestContext.OriginalRequest as UploadDocumentsRequest; if (uploadDocumentsRequest != null) { // If Documents property is set as the underlying stream for FilePath, dispose it. if (uploadDocumentsRequest.Documents != null && !string.IsNullOrEmpty(uploadDocumentsRequest.FilePath)) { uploadDocumentsRequest.Documents.Dispose(); uploadDocumentsRequest.Documents = null; } } } #endif } }
96
aws-sdk-net
aws
C#
using Amazon.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Amazon.CloudSearchDomain.Internal { /// <summary> /// Custom pipeline handler. /// </summary> public class ProcessRequestHandler : PipelineHandler { #if BCL /// <summary> /// Calls pre invoke logic before calling the next handler /// in the pipeline. /// </summary> /// <param name="executionContext">The execution context which contains both the /// requests and response context.</param> public override void InvokeSync(IExecutionContext executionContext) { PreInvoke(executionContext); base.InvokeSync(executionContext); } #endif #if BCL45 /// <summary> /// Calls pre invoke logic before calling the next handler /// in the pipeline. /// </summary> /// <typeparam name="T">The response type for the current request.</typeparam> /// <param name="executionContext">The execution context, it contains the /// request and response context.</param> /// <returns>A task that represents the asynchronous operation.</returns> public override System.Threading.Tasks.Task<T> InvokeAsync<T>(IExecutionContext executionContext) { PreInvoke(executionContext); return base.InvokeAsync<T>(executionContext); } #elif AWS_APM_API /// <summary> /// Calls pre invoke logic before calling the next handler /// in the pipeline. /// </summary> /// <param name="executionContext">The execution context which contains both the /// requests and response context.</param> /// <returns>IAsyncResult which represent an async operation.</returns> public override IAsyncResult InvokeAsync(IAsyncExecutionContext executionContext) { PreInvoke(ExecutionContext.CreateFromAsyncContext(executionContext)); return base.InvokeAsync(executionContext); } #endif #if BCL /// <summary> /// Custom pipeline handler. /// </summary> /// <param name="executionContext"></param> protected virtual void PreInvoke(IExecutionContext executionContext) { var uploadDocumentsRequest = executionContext.RequestContext.OriginalRequest as UploadDocumentsRequest; if (uploadDocumentsRequest != null) { if (uploadDocumentsRequest.Documents == null && string.IsNullOrEmpty(uploadDocumentsRequest.FilePath)) throw new ArgumentException("Please specify one of either a Documents or a FilePath to be uploaded."); if (uploadDocumentsRequest.Documents != null && !string.IsNullOrEmpty(uploadDocumentsRequest.FilePath)) throw new ArgumentException("Please specify one of either a Documents or a FilePath to be uploaded."); if (!string.IsNullOrEmpty(uploadDocumentsRequest.FilePath)) { uploadDocumentsRequest.SetupForFilePath(); } } } #endif } }
87
aws-sdk-net
aws
C#
using Amazon.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Amazon.CloudSearchDomain.Internal { /// <summary> /// Custom pipeline handler to make sure streams. /// </summary> public class ValidationResponseHandler : PipelineHandler { #if BCL /// <summary> /// Calls the post invoke logic after calling the next handler /// in the pipeline. /// </summary> /// <param name="executionContext">The execution context which contains both the /// requests and response context.</param> public override void InvokeSync(IExecutionContext executionContext) { base.InvokeSync(executionContext); PostInvoke(executionContext); } #endif #if BCL45 /// <summary> /// Calls the and post invoke logic after calling the next handler /// in the pipeline. /// </summary> /// <typeparam name="T">The response type for the current request.</typeparam> /// <param name="executionContext">The execution context, it contains the /// request and response context.</param> /// <returns>A task that represents the asynchronous operation.</returns> public override async System.Threading.Tasks.Task<T> InvokeAsync<T>(IExecutionContext executionContext) { var response = await base.InvokeAsync<T>(executionContext).ConfigureAwait(false); PostInvoke(executionContext); return response; } #elif AWS_APM_API /// <summary> /// Calls the PostInvoke methods after calling the next handler /// in the pipeline. /// </summary> /// <param name="executionContext">The execution context, it contains the /// request and response context.</param> protected override void InvokeAsyncCallback(IAsyncExecutionContext executionContext) { // Process the response if an exception hasn't occured if (executionContext.ResponseContext.AsyncResult.Exception == null) { PostInvoke(ExecutionContext.CreateFromAsyncContext(executionContext)); } base.InvokeAsyncCallback(executionContext); } #endif #if BCL /// <summary> /// Custom pipeline handler to make sure streams. /// </summary> /// <param name="executionContext"></param> protected virtual void PostInvoke(IExecutionContext executionContext) { var uploadDocumentsRequest = executionContext.RequestContext.OriginalRequest as UploadDocumentsRequest; if (uploadDocumentsRequest != null) { // If Documents property is set as the underlying stream for FilePath, dispose it. if (uploadDocumentsRequest.Documents != null && !string.IsNullOrEmpty(uploadDocumentsRequest.FilePath)) { uploadDocumentsRequest.Documents.Dispose(); uploadDocumentsRequest.Documents = null; } } } #endif } }
89
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; using System.Globalization; namespace Amazon.CloudSearchDomain.Model { /// <summary> /// Container for the parameters to the UploadDocuments operation. /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public partial class UploadDocumentsRequest { private string filePath; /// <summary> /// <para> /// The full path and name to a file that contains a batch of documents to be uploaded. /// The batch of documents should be formatted in JSON or HTML. /// If this property is set, the UploadDocumentsRequest.Documents property is ignored. /// </para> /// <para> /// For WinRT and Windows Phone this property must be in the form of "ms-appdata:///local/file.txt". /// </para> /// </summary> public string FilePath { get { return this.filePath; } set { this.filePath = value; } } internal void SetupForFilePath() { this.Documents = new FileStream(this.FilePath, FileMode.Open, FileAccess.Read, FileShare.Read); } } }
82
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CloudSearchDomain.Internal; namespace Amazon.CloudSearchDomain { /// <summary> /// Configuration for accessing Amazon CloudSearchDomain service /// </summary> [AWSSignerType("v4")] public partial class AmazonCloudSearchDomainConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.147"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCloudSearchDomainConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudSearchDomainDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "cloudsearch"; this.EndpointProvider = new AmazonCloudSearchDomainEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "cloudsearchdomain"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2013-01-01"; } } /// <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 cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CloudSearchDomain { /// <summary> /// Configuration for accessing Amazon CloudSearchDomain service /// </summary> public static class AmazonCloudSearchDomainDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CloudSearchDomain /// </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 cloudsearchdomain-2013-01-01.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CloudSearchDomain.Endpoints { /// <summary> /// Contains parameters used for resolving CloudSearchDomain endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CloudSearchDomainEndpointProvider and CloudSearchDomainEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CloudSearchDomainEndpointParameters : EndpointParameters { /// <summary> /// CloudSearchDomainEndpointParameters constructor /// </summary> public CloudSearchDomainEndpointParameters() { 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 cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CloudSearchDomain { ///<summary> /// Common exception for the CloudSearchDomain service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCloudSearchDomainException : AmazonServiceException { /// <summary> /// Construct instance of AmazonCloudSearchDomainException /// </summary> /// <param name="message"></param> public AmazonCloudSearchDomainException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCloudSearchDomainException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCloudSearchDomainException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCloudSearchDomainException /// </summary> /// <param name="innerException"></param> public AmazonCloudSearchDomainException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCloudSearchDomainException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudSearchDomainException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCloudSearchDomainException /// </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 AmazonCloudSearchDomainException(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 AmazonCloudSearchDomainException 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 AmazonCloudSearchDomainException(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 cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CloudSearchDomain { /// <summary> /// Constants used for properties of type ContentType. /// </summary> public class ContentType : ConstantClass { /// <summary> /// Constant ApplicationJson for ContentType /// </summary> public static readonly ContentType ApplicationJson = new ContentType("application/json"); /// <summary> /// Constant ApplicationXml for ContentType /// </summary> public static readonly ContentType ApplicationXml = new ContentType("application/xml"); /// <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 ContentType(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 ContentType FindValue(string value) { return FindValue<ContentType>(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 ContentType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type QueryParser. /// </summary> public class QueryParser : ConstantClass { /// <summary> /// Constant Dismax for QueryParser /// </summary> public static readonly QueryParser Dismax = new QueryParser("dismax"); /// <summary> /// Constant Lucene for QueryParser /// </summary> public static readonly QueryParser Lucene = new QueryParser("lucene"); /// <summary> /// Constant Simple for QueryParser /// </summary> public static readonly QueryParser Simple = new QueryParser("simple"); /// <summary> /// Constant Structured for QueryParser /// </summary> public static readonly QueryParser Structured = new QueryParser("structured"); /// <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 QueryParser(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 QueryParser FindValue(string value) { return FindValue<QueryParser>(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 QueryParser(string value) { return FindValue(value); } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Internal { /// <summary> /// Amazon CloudSearchDomain endpoint provider. /// Resolves endpoint for given set of CloudSearchDomainEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCloudSearchDomainEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CloudSearchDomainEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudsearchdomain-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://cloudsearchdomain-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://cloudsearchdomain.{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://cloudsearchdomain.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using Amazon.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CloudSearchDomain.Endpoints; #pragma warning disable 1591 namespace Amazon.CloudSearchDomain.Internal { /// <summary> /// Amazon CloudSearchDomain endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudSearchDomain service requests. /// Collects values for CloudSearchDomainEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudSearchDomainEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCloudSearchDomainEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCloudSearchDomainConfig)requestContext.ClientConfig; var result = new CloudSearchDomainEndpointParameters(); 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 cloudsearchdomain-2013-01-01.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CloudSearchDomain.Internal { /// <summary> /// Service metadata for Amazon CloudSearchDomain service /// </summary> public partial class AmazonCloudSearchDomainMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "CloudSearch Domain"; } } /// <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 cloudsearchdomain-2013-01-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudSearchDomain { /// <summary> /// Base class for CloudSearchDomain operation requests. /// </summary> public partial class AmazonCloudSearchDomainRequest : 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// A container for facet information. /// </summary> public partial class Bucket { private long? _count; private string _value; /// <summary> /// Gets and sets the property Count. /// <para> /// The number of hits that contain the facet value in the specified facet field. /// </para> /// </summary> public long Count { get { return this._count.GetValueOrDefault(); } set { this._count = value; } } // Check to see if Count property is set internal bool IsSetCount() { return this._count.HasValue; } /// <summary> /// Gets and sets the property Value. /// <para> /// The facet value being counted. /// </para> /// </summary> public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// A container for the calculated facet values and counts. /// </summary> public partial class BucketInfo { private List<Bucket> _buckets = new List<Bucket>(); /// <summary> /// Gets and sets the property Buckets. /// <para> /// A list of the calculated facet values and counts. /// </para> /// </summary> public List<Bucket> Buckets { get { return this._buckets; } set { this._buckets = value; } } // Check to see if Buckets property is set internal bool IsSetBuckets() { return this._buckets != null && this._buckets.Count > 0; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Information about any problems encountered while processing an upload request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class DocumentServiceException : AmazonCloudSearchDomainException { private string _status; /// <summary> /// Constructs a new DocumentServiceException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public DocumentServiceException(string message) : base(message) {} /// <summary> /// Construct instance of DocumentServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public DocumentServiceException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of DocumentServiceException /// </summary> /// <param name="innerException"></param> public DocumentServiceException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of DocumentServiceException /// </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 DocumentServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of DocumentServiceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DocumentServiceException(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 DocumentServiceException 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 DocumentServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Status = (string)info.GetValue("Status", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Status", this.Status); } #endif /// <summary> /// Gets and sets the property Status. /// <para> /// The return status of a document upload request, <code>error</code> or <code>success</code>. /// </para> /// </summary> public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// A warning returned by the document service when an issue is discovered while processing /// an upload request. /// </summary> public partial class DocumentServiceWarning { private string _message; /// <summary> /// Gets and sets the property Message. /// <para> /// The description for a warning returned by the document service. /// </para> /// </summary> public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// The statistics for a field calculated in the request. /// </summary> public partial class FieldStats { private long? _count; private string _max; private string _mean; private string _min; private long? _missing; private double? _stddev; private double? _sum; private double? _sumOfSquares; /// <summary> /// Gets and sets the property Count. /// <para> /// The number of documents that contain a value in the specified field in the result /// set. /// </para> /// </summary> public long Count { get { return this._count.GetValueOrDefault(); } set { this._count = value; } } // Check to see if Count property is set internal bool IsSetCount() { return this._count.HasValue; } /// <summary> /// Gets and sets the property Max. /// <para> /// The maximum value found in the specified field in the result set. /// </para> /// /// <para> /// If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, /// or <code>double-array</code>), <code>max</code> is the string representation of a /// double-precision 64-bit floating point value. If the field is <code>date</code> or /// <code>date-array</code>, <code>max</code> is the string representation of a date with /// the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: /// yyyy-mm-ddTHH:mm:ss.SSSZ. /// </para> /// </summary> public string Max { get { return this._max; } set { this._max = value; } } // Check to see if Max property is set internal bool IsSetMax() { return this._max != null; } /// <summary> /// Gets and sets the property Mean. /// <para> /// The average of the values found in the specified field in the result set. /// </para> /// /// <para> /// If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, /// or <code>double-array</code>), <code>mean</code> is the string representation of a /// double-precision 64-bit floating point value. If the field is <code>date</code> or /// <code>date-array</code>, <code>mean</code> is the string representation of a date /// with the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: /// yyyy-mm-ddTHH:mm:ss.SSSZ. /// </para> /// </summary> public string Mean { get { return this._mean; } set { this._mean = value; } } // Check to see if Mean property is set internal bool IsSetMean() { return this._mean != null; } /// <summary> /// Gets and sets the property Min. /// <para> /// The minimum value found in the specified field in the result set. /// </para> /// /// <para> /// If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, /// or <code>double-array</code>), <code>min</code> is the string representation of a /// double-precision 64-bit floating point value. If the field is <code>date</code> or /// <code>date-array</code>, <code>min</code> is the string representation of a date with /// the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: /// yyyy-mm-ddTHH:mm:ss.SSSZ. /// </para> /// </summary> public string Min { get { return this._min; } set { this._min = value; } } // Check to see if Min property is set internal bool IsSetMin() { return this._min != null; } /// <summary> /// Gets and sets the property Missing. /// <para> /// The number of documents that do not contain a value in the specified field in the /// result set. /// </para> /// </summary> public long Missing { get { return this._missing.GetValueOrDefault(); } set { this._missing = value; } } // Check to see if Missing property is set internal bool IsSetMissing() { return this._missing.HasValue; } /// <summary> /// Gets and sets the property Stddev. /// <para> /// The standard deviation of the values in the specified field in the result set. /// </para> /// </summary> public double Stddev { get { return this._stddev.GetValueOrDefault(); } set { this._stddev = value; } } // Check to see if Stddev property is set internal bool IsSetStddev() { return this._stddev.HasValue; } /// <summary> /// Gets and sets the property Sum. /// <para> /// The sum of the field values across the documents in the result set. <code>null</code> /// for date fields. /// </para> /// </summary> public double Sum { get { return this._sum.GetValueOrDefault(); } set { this._sum = value; } } // Check to see if Sum property is set internal bool IsSetSum() { return this._sum.HasValue; } /// <summary> /// Gets and sets the property SumOfSquares. /// <para> /// The sum of all field values in the result set squared. /// </para> /// </summary> public double SumOfSquares { get { return this._sumOfSquares.GetValueOrDefault(); } set { this._sumOfSquares = value; } } // Check to see if SumOfSquares property is set internal bool IsSetSumOfSquares() { return this._sumOfSquares.HasValue; } } }
220
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Information about a document that matches the search request. /// </summary> public partial class Hit { private Dictionary<string, string> _exprs = new Dictionary<string, string>(); private Dictionary<string, List<string>> _fields = new Dictionary<string, List<string>>(); private Dictionary<string, string> _highlights = new Dictionary<string, string>(); private string _id; /// <summary> /// Gets and sets the property Exprs. /// <para> /// The expressions returned from a document that matches the search request. /// </para> /// </summary> public Dictionary<string, string> Exprs { get { return this._exprs; } set { this._exprs = value; } } // Check to see if Exprs property is set internal bool IsSetExprs() { return this._exprs != null && this._exprs.Count > 0; } /// <summary> /// Gets and sets the property Fields. /// <para> /// The fields returned from a document that matches the search request. /// </para> /// </summary> public Dictionary<string, List<string>> Fields { get { return this._fields; } set { this._fields = value; } } // Check to see if Fields property is set internal bool IsSetFields() { return this._fields != null && this._fields.Count > 0; } /// <summary> /// Gets and sets the property Highlights. /// <para> /// The highlights returned from a document that matches the search request. /// </para> /// </summary> public Dictionary<string, string> Highlights { get { return this._highlights; } set { this._highlights = value; } } // Check to see if Highlights property is set internal bool IsSetHighlights() { return this._highlights != null && this._highlights.Count > 0; } /// <summary> /// Gets and sets the property Id. /// <para> /// The document ID of a document that matches the search request. /// </para> /// </summary> 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; } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// The collection of documents that match the search request. /// </summary> public partial class Hits { private string _cursor; private long? _found; private List<Hit> _hit = new List<Hit>(); private long? _start; /// <summary> /// Gets and sets the property Cursor. /// <para> /// A cursor that can be used to retrieve the next set of matching documents when you /// want to page through a large result set. /// </para> /// </summary> public string Cursor { get { return this._cursor; } set { this._cursor = value; } } // Check to see if Cursor property is set internal bool IsSetCursor() { return this._cursor != null; } /// <summary> /// Gets and sets the property Found. /// <para> /// The total number of documents that match the search request. /// </para> /// </summary> public long Found { get { return this._found.GetValueOrDefault(); } set { this._found = value; } } // Check to see if Found property is set internal bool IsSetFound() { return this._found.HasValue; } /// <summary> /// Gets and sets the property Hit. /// <para> /// A document that matches the search request. /// </para> /// </summary> public List<Hit> Hit { get { return this._hit; } set { this._hit = value; } } // Check to see if Hit property is set internal bool IsSetHit() { return this._hit != null && this._hit.Count > 0; } /// <summary> /// Gets and sets the property Start. /// <para> /// The index of the first matching document. /// </para> /// </summary> public long Start { get { return this._start.GetValueOrDefault(); } set { this._start = value; } } // Check to see if Start property is set internal bool IsSetStart() { return this._start.HasValue; } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Information about any problems encountered while processing a search request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class SearchException : AmazonCloudSearchDomainException { /// <summary> /// Constructs a new SearchException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public SearchException(string message) : base(message) {} /// <summary> /// Construct instance of SearchException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public SearchException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of SearchException /// </summary> /// <param name="innerException"></param> public SearchException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of SearchException /// </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 SearchException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of SearchException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public SearchException(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 SearchException 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 SearchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Container for the parameters to the Search operation. /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> public partial class SearchRequest : AmazonCloudSearchDomainRequest { private string _cursor; private string _expr; private string _facet; private string _filterQuery; private string _highlight; private bool? _partial; private string _query; private string _queryOptions; private QueryParser _queryParser; private string _return; private long? _size; private string _sort; private long? _start; private string _stats; /// <summary> /// Gets and sets the property Cursor. /// <para> /// Retrieves a cursor value you can use to page through large result sets. Use the <code>size</code> /// parameter to control the number of hits to include in each response. You can specify /// either the <code>cursor</code> or <code>start</code> parameter in a request; they /// are mutually exclusive. To get the first cursor, set the cursor value to <code>initial</code>. /// In subsequent requests, specify the cursor value returned in the hits section of the /// response. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/paginating-results.html">Paginating /// Results</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public string Cursor { get { return this._cursor; } set { this._cursor = value; } } // Check to see if Cursor property is set internal bool IsSetCursor() { return this._cursor != null; } /// <summary> /// Gets and sets the property Expr. /// <para> /// Defines one or more numeric expressions that can be used to sort results or specify /// search or filter criteria. You can also specify expressions as return fields. /// </para> /// /// <para> /// You specify the expressions in JSON using the form <code>{"EXPRESSIONNAME":"EXPRESSION"}</code>. /// You can define and use multiple expressions in a search request. For example: /// </para> /// /// <para> /// <code> {"expression1":"_score*rating", "expression2":"(1/rank)*year"} </code> /// </para> /// /// <para> /// For information about the variables, operators, and functions you can use in expressions, /// see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html#writing-expressions">Writing /// Expressions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public string Expr { get { return this._expr; } set { this._expr = value; } } // Check to see if Expr property is set internal bool IsSetExpr() { return this._expr != null; } /// <summary> /// Gets and sets the property Facet. /// <para> /// Specifies one or more fields for which to get facet information, and options that /// control how the facet information is returned. Each specified field must be facet-enabled /// in the domain configuration. The fields and options are specified in JSON using the /// form <code>{"FIELD":{"OPTION":VALUE,"OPTION:"STRING"},"FIELD":{"OPTION":VALUE,"OPTION":"STRING"}}</code>. /// </para> /// /// <para> /// You can specify the following faceting options: /// </para> /// <ul> <li> /// <para> /// <code>buckets</code> specifies an array of the facet values or ranges to count. Ranges /// are specified using the same syntax that you use to search for a range of values. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-ranges.html"> /// Searching for a Range of Values</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// Buckets are returned in the order they are specified in the request. The <code>sort</code> /// and <code>size</code> options are not valid if you specify <code>buckets</code>. /// </para> /// </li> <li> /// <para> /// <code>size</code> specifies the maximum number of facets to include in the results. /// By default, Amazon CloudSearch returns counts for the top 10. The <code>size</code> /// parameter is only valid when you specify the <code>sort</code> option; it cannot be /// used in conjunction with <code>buckets</code>. /// </para> /// </li> <li> /// <para> /// <code>sort</code> specifies how you want to sort the facets in the results: <code>bucket</code> /// or <code>count</code>. Specify <code>bucket</code> to sort alphabetically or numerically /// by facet value (in ascending order). Specify <code>count</code> to sort by the facet /// counts computed for each facet value (in descending order). To retrieve facet counts /// for particular values or ranges of values, use the <code>buckets</code> option instead /// of <code>sort</code>. /// </para> /// </li> </ul> /// <para> /// If no facet options are specified, facet counts are computed for all field values, /// the facets are sorted by facet count, and the top 10 facets are returned in the results. /// </para> /// /// <para> /// To count particular buckets of values, use the <code>buckets</code> option. For example, /// the following request uses the <code>buckets</code> option to calculate and return /// facet counts by decade. /// </para> /// /// <para> /// <code> {"year":{"buckets":["[1970,1979]","[1980,1989]","[1990,1999]","[2000,2009]","[2010,}"]}} /// </code> /// </para> /// /// <para> /// To sort facets by facet count, use the <code>count</code> option. For example, the /// following request sets the <code>sort</code> option to <code>count</code> to sort /// the facet values by facet count, with the facet values that have the most matching /// documents listed first. Setting the <code>size</code> option to 3 returns only the /// top three facet values. /// </para> /// /// <para> /// <code> {"year":{"sort":"count","size":3}} </code> /// </para> /// /// <para> /// To sort the facets by value, use the <code>bucket</code> option. For example, the /// following request sets the <code>sort</code> option to <code>bucket</code> to sort /// the facet values numerically by year, with earliest year listed first. /// </para> /// /// <para> /// <code> {"year":{"sort":"bucket"}} </code> /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/faceting.html">Getting /// and Using Facet Information</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public string Facet { get { return this._facet; } set { this._facet = value; } } // Check to see if Facet property is set internal bool IsSetFacet() { return this._facet != null; } /// <summary> /// Gets and sets the property FilterQuery. /// <para> /// Specifies a structured query that filters the results of a search without affecting /// how the results are scored and sorted. You use <code>filterQuery</code> in conjunction /// with the <code>query</code> parameter to filter the documents that match the constraints /// specified in the <code>query</code> parameter. Specifying a filter controls only which /// matching documents are included in the results, it has no effect on how they are scored /// and sorted. The <code>filterQuery</code> parameter supports the full structured query /// syntax. /// </para> /// /// <para> /// For more information about using filters, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/filtering-results.html">Filtering /// Matching Documents</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public string FilterQuery { get { return this._filterQuery; } set { this._filterQuery = value; } } // Check to see if FilterQuery property is set internal bool IsSetFilterQuery() { return this._filterQuery != null; } /// <summary> /// Gets and sets the property Highlight. /// <para> /// Retrieves highlights for matches in the specified <code>text</code> or <code>text-array</code> /// fields. Each specified field must be highlight enabled in the domain configuration. /// The fields and options are specified in JSON using the form <code>{"FIELD":{"OPTION":VALUE,"OPTION:"STRING"},"FIELD":{"OPTION":VALUE,"OPTION":"STRING"}}</code>. /// </para> /// /// <para> /// You can specify the following highlight options: /// </para> /// <ul> <li> <code>format</code>: specifies the format of the data in the text field: /// <code>text</code> or <code>html</code>. When data is returned as HTML, all non-alphanumeric /// characters are encoded. The default is <code>html</code>. </li> <li> <code>max_phrases</code>: /// specifies the maximum number of occurrences of the search term(s) you want to highlight. /// By default, the first occurrence is highlighted. </li> <li> <code>pre_tag</code>: /// specifies the string to prepend to an occurrence of a search term. The default for /// HTML highlights is <code>&amp;lt;em&amp;gt;</code>. The default for text highlights /// is <code>*</code>. </li> <li> <code>post_tag</code>: specifies the string to append /// to an occurrence of a search term. The default for HTML highlights is <code>&amp;lt;/em&amp;gt;</code>. /// The default for text highlights is <code>*</code>. </li> </ul> /// <para> /// If no highlight options are specified for a field, the returned field text is treated /// as HTML and the first match is highlighted with emphasis tags: <code>&amp;lt;em&gt;search-term&amp;lt;/em&amp;gt;</code>. /// </para> /// /// <para> /// For example, the following request retrieves highlights for the <code>actors</code> /// and <code>title</code> fields. /// </para> /// /// <para> /// <code>{ "actors": {}, "title": {"format": "text","max_phrases": 2,"pre_tag": "<b>","post_tag": /// "</b>"} }</code> /// </para> /// </summary> public string Highlight { get { return this._highlight; } set { this._highlight = value; } } // Check to see if Highlight property is set internal bool IsSetHighlight() { return this._highlight != null; } /// <summary> /// Gets and sets the property Partial. /// <para> /// Enables partial results to be returned if one or more index partitions are unavailable. /// When your search index is partitioned across multiple search instances, by default /// Amazon CloudSearch only returns results if every partition can be queried. This means /// that the failure of a single search instance can result in 5xx (internal server) errors. /// When you enable partial results, Amazon CloudSearch returns whatever results are available /// and includes the percentage of documents searched in the search results (percent-searched). /// This enables you to more gracefully degrade your users' search experience. For example, /// rather than displaying no results, you could display the partial results and a message /// indicating that the results might be incomplete due to a temporary system outage. /// </para> /// </summary> public bool Partial { get { return this._partial.GetValueOrDefault(); } set { this._partial = value; } } // Check to see if Partial property is set internal bool IsSetPartial() { return this._partial.HasValue; } /// <summary> /// Gets and sets the property Query. /// <para> /// Specifies the search criteria for the request. How you specify the search criteria /// depends on the query parser used for the request and the parser options specified /// in the <code>queryOptions</code> parameter. By default, the <code>simple</code> query /// parser is used to process requests. To use the <code>structured</code>, <code>lucene</code>, /// or <code>dismax</code> query parser, you must also specify the <code>queryParser</code> /// parameter. /// </para> /// /// <para> /// For more information about specifying search criteria, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public string Query { get { return this._query; } set { this._query = value; } } // Check to see if Query property is set internal bool IsSetQuery() { return this._query != null; } /// <summary> /// Gets and sets the property QueryOptions. /// <para> /// Configures options for the query parser specified in the <code>queryParser</code> /// parameter. You specify the options in JSON using the following form <code>{"OPTION1":"VALUE1","OPTION2":VALUE2"..."OPTIONN":"VALUEN"}.</code> /// </para> /// /// <para> /// The options you can configure vary according to which parser you use: /// </para> /// <ul> <li><code>defaultOperator</code>: The default operator used to combine individual /// terms in the search string. For example: <code>defaultOperator: 'or'</code>. For the /// <code>dismax</code> parser, you specify a percentage that represents the percentage /// of terms in the search string (rounded down) that must match, rather than a default /// operator. A value of <code>0%</code> is the equivalent to OR, and a value of <code>100%</code> /// is equivalent to AND. The percentage must be specified as a value in the range 0-100 /// followed by the percent (%) symbol. For example, <code>defaultOperator: 50%</code>. /// Valid values: <code>and</code>, <code>or</code>, a percentage in the range 0%-100% /// (<code>dismax</code>). Default: <code>and</code> (<code>simple</code>, <code>structured</code>, /// <code>lucene</code>) or <code>100</code> (<code>dismax</code>). Valid for: <code>simple</code>, /// <code>structured</code>, <code>lucene</code>, and <code>dismax</code>.</li> <li><code>fields</code>: /// An array of the fields to search when no fields are specified in a search. If no fields /// are specified in a search and this option is not specified, all text and text-array /// fields are searched. You can specify a weight for each field to control the relative /// importance of each field when Amazon CloudSearch calculates relevance scores. To specify /// a field weight, append a caret (<code>^</code>) symbol and the weight to the field /// name. For example, to boost the importance of the <code>title</code> field over the /// <code>description</code> field you could specify: <code>"fields":["title^5","description"]</code>. /// Valid values: The name of any configured field and an optional numeric value greater /// than zero. Default: All <code>text</code> and <code>text-array</code> fields. Valid /// for: <code>simple</code>, <code>structured</code>, <code>lucene</code>, and <code>dismax</code>.</li> /// <li><code>operators</code>: An array of the operators or special characters you want /// to disable for the simple query parser. If you disable the <code>and</code>, <code>or</code>, /// or <code>not</code> operators, the corresponding operators (<code>+</code>, <code>|</code>, /// <code>-</code>) have no special meaning and are dropped from the search string. Similarly, /// disabling <code>prefix</code> disables the wildcard operator (<code>*</code>) and /// disabling <code>phrase</code> disables the ability to search for phrases by enclosing /// phrases in double quotes. Disabling precedence disables the ability to control order /// of precedence using parentheses. Disabling <code>near</code> disables the ability /// to use the ~ operator to perform a sloppy phrase search. Disabling the <code>fuzzy</code> /// operator disables the ability to use the ~ operator to perform a fuzzy search. <code>escape</code> /// disables the ability to use a backslash (<code>\</code>) to escape special characters /// within the search string. Disabling whitespace is an advanced option that prevents /// the parser from tokenizing on whitespace, which can be useful for Vietnamese. (It /// prevents Vietnamese words from being split incorrectly.) For example, you could disable /// all operators other than the phrase operator to support just simple term and phrase /// queries: <code>"operators":["and","not","or", "prefix"]</code>. Valid values: <code>and</code>, /// <code>escape</code>, <code>fuzzy</code>, <code>near</code>, <code>not</code>, <code>or</code>, /// <code>phrase</code>, <code>precedence</code>, <code>prefix</code>, <code>whitespace</code>. /// Default: All operators and special characters are enabled. Valid for: <code>simple</code>.</li> /// <li><code>phraseFields</code>: An array of the <code>text</code> or <code>text-array</code> /// fields you want to use for phrase searches. When the terms in the search string appear /// in close proximity within a field, the field scores higher. You can specify a weight /// for each field to boost that score. The <code>phraseSlop</code> option controls how /// much the matches can deviate from the search string and still be boosted. To specify /// a field weight, append a caret (<code>^</code>) symbol and the weight to the field /// name. For example, to boost phrase matches in the <code>title</code> field over the /// <code>abstract</code> field, you could specify: <code>"phraseFields":["title^3", "plot"]</code> /// Valid values: The name of any <code>text</code> or <code>text-array</code> field and /// an optional numeric value greater than zero. Default: No fields. If you don't specify /// any fields with <code>phraseFields</code>, proximity scoring is disabled even if <code>phraseSlop</code> /// is specified. Valid for: <code>dismax</code>.</li> <li><code>phraseSlop</code>: An /// integer value that specifies how much matches can deviate from the search phrase and /// still be boosted according to the weights specified in the <code>phraseFields</code> /// option; for example, <code>phraseSlop: 2</code>. You must also specify <code>phraseFields</code> /// to enable proximity scoring. Valid values: positive integers. Default: 0. Valid for: /// <code>dismax</code>.</li> <li><code>explicitPhraseSlop</code>: An integer value that /// specifies how much a match can deviate from the search phrase when the phrase is enclosed /// in double quotes in the search string. (Phrases that exceed this proximity distance /// are not considered a match.) For example, to specify a slop of three for dismax phrase /// queries, you would specify <code>"explicitPhraseSlop":3</code>. Valid values: positive /// integers. Default: 0. Valid for: <code>dismax</code>.</li> <li><code>tieBreaker</code>: /// When a term in the search string is found in a document's field, a score is calculated /// for that field based on how common the word is in that field compared to other documents. /// If the term occurs in multiple fields within a document, by default only the highest /// scoring field contributes to the document's overall score. You can specify a <code>tieBreaker</code> /// value to enable the matches in lower-scoring fields to contribute to the document's /// score. That way, if two documents have the same max field score for a particular term, /// the score for the document that has matches in more fields will be higher. The formula /// for calculating the score with a tieBreaker is <code>(max field score) + (tieBreaker) /// * (sum of the scores for the rest of the matching fields)</code>. Set <code>tieBreaker</code> /// to 0 to disregard all but the highest scoring field (pure max): <code>"tieBreaker":0</code>. /// Set to 1 to sum the scores from all fields (pure sum): <code>"tieBreaker":1</code>. /// Valid values: 0.0 to 1.0. Default: 0.0. Valid for: <code>dismax</code>. </li> </ul> /// </summary> public string QueryOptions { get { return this._queryOptions; } set { this._queryOptions = value; } } // Check to see if QueryOptions property is set internal bool IsSetQueryOptions() { return this._queryOptions != null; } /// <summary> /// Gets and sets the property QueryParser. /// <para> /// Specifies which query parser to use to process the request. If <code>queryParser</code> /// is not specified, Amazon CloudSearch uses the <code>simple</code> query parser. /// </para> /// /// <para> /// Amazon CloudSearch supports four query parsers: /// </para> /// <ul> <li> <code>simple</code>: perform simple searches of <code>text</code> and <code>text-array</code> /// fields. By default, the <code>simple</code> query parser searches all <code>text</code> /// and <code>text-array</code> fields. You can specify which fields to search by with /// the <code>queryOptions</code> parameter. If you prefix a search term with a plus sign /// (+) documents must contain the term to be considered a match. (This is the default, /// unless you configure the default operator with the <code>queryOptions</code> parameter.) /// You can use the <code>-</code> (NOT), <code>|</code> (OR), and <code>*</code> (wildcard) /// operators to exclude particular terms, find results that match any of the specified /// terms, or search for a prefix. To search for a phrase rather than individual terms, /// enclose the phrase in double quotes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-text.html">Searching /// for Text</a> in the <i>Amazon CloudSearch Developer Guide</i>. </li> <li> <code>structured</code>: /// perform advanced searches by combining multiple expressions to define the search criteria. /// You can also search within particular fields, search for values and ranges of values, /// and use advanced options such as term boosting, <code>matchall</code>, and <code>near</code>. /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-compound-queries.html">Constructing /// Compound Queries</a> in the <i>Amazon CloudSearch Developer Guide</i>. </li> <li> /// <code>lucene</code>: search using the Apache Lucene query parser syntax. For more /// information, see <a href="http://lucene.apache.org/core/4_6_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description">Apache /// Lucene Query Parser Syntax</a>. </li> <li> <code>dismax</code>: search using the simplified /// subset of the Apache Lucene query parser syntax defined by the DisMax query parser. /// For more information, see <a href="http://wiki.apache.org/solr/DisMaxQParserPlugin#Query_Syntax">DisMax /// Query Parser Syntax</a>. </li> </ul> /// </summary> public QueryParser QueryParser { get { return this._queryParser; } set { this._queryParser = value; } } // Check to see if QueryParser property is set internal bool IsSetQueryParser() { return this._queryParser != null; } /// <summary> /// Gets and sets the property Return. /// <para> /// Specifies the field and expression values to include in the response. Multiple fields /// or expressions are specified as a comma-separated list. By default, a search response /// includes all return enabled fields (<code>_all_fields</code>). To return only the /// document IDs for the matching documents, specify <code>_no_fields</code>. To retrieve /// the relevance score calculated for each document, specify <code>_score</code>. /// </para> /// </summary> public string Return { get { return this._return; } set { this._return = value; } } // Check to see if Return property is set internal bool IsSetReturn() { return this._return != null; } /// <summary> /// Gets and sets the property Size. /// <para> /// Specifies the maximum number of search hits to include in the response. /// </para> /// </summary> public long Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } /// <summary> /// Gets and sets the property Sort. /// <para> /// Specifies the fields or custom expressions to use to sort the search results. Multiple /// fields or expressions are specified as a comma-separated list. You must specify the /// sort direction (<code>asc</code> or <code>desc</code>) for each field; for example, /// <code>year desc,title asc</code>. To use a field to sort results, the field must be /// sort-enabled in the domain configuration. Array type fields cannot be used for sorting. /// If no <code>sort</code> parameter is specified, results are sorted by their default /// relevance scores in descending order: <code>_score desc</code>. You can also sort /// by document ID (<code>_id asc</code>) and version (<code>_version desc</code>). /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/sorting-results.html">Sorting /// Results</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public string Sort { get { return this._sort; } set { this._sort = value; } } // Check to see if Sort property is set internal bool IsSetSort() { return this._sort != null; } /// <summary> /// Gets and sets the property Start. /// <para> /// Specifies the offset of the first search hit you want to return. Note that the result /// set is zero-based; the first result is at index 0. You can specify either the <code>start</code> /// or <code>cursor</code> parameter in a request, they are mutually exclusive. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/paginating-results.html">Paginating /// Results</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public long Start { get { return this._start.GetValueOrDefault(); } set { this._start = value; } } // Check to see if Start property is set internal bool IsSetStart() { return this._start.HasValue; } /// <summary> /// Gets and sets the property Stats. /// <para> /// Specifies one or more fields for which to get statistics information. Each specified /// field must be facet-enabled in the domain configuration. The fields are specified /// in JSON using the form: /// </para> /// <code>{"FIELD-A":{},"FIELD-B":{}}</code> /// <para> /// There are currently no options supported for statistics. /// </para> /// </summary> public string Stats { get { return this._stats; } set { this._stats = value; } } // Check to see if Stats property is set internal bool IsSetStats() { return this._stats != null; } } }
624
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// The result of a <code>Search</code> request. Contains the documents that match the /// specified search criteria and any requested fields, highlights, and facet information. /// </summary> public partial class SearchResponse : AmazonWebServiceResponse { private Dictionary<string, BucketInfo> _facets = new Dictionary<string, BucketInfo>(); private Hits _hits; private Dictionary<string, FieldStats> _stats = new Dictionary<string, FieldStats>(); private SearchStatus _status; /// <summary> /// Gets and sets the property Facets. /// <para> /// The requested facet information. /// </para> /// </summary> public Dictionary<string, BucketInfo> Facets { get { return this._facets; } set { this._facets = value; } } // Check to see if Facets property is set internal bool IsSetFacets() { return this._facets != null && this._facets.Count > 0; } /// <summary> /// Gets and sets the property Hits. /// <para> /// The documents that match the search criteria. /// </para> /// </summary> public Hits Hits { get { return this._hits; } set { this._hits = value; } } // Check to see if Hits property is set internal bool IsSetHits() { return this._hits != null; } /// <summary> /// Gets and sets the property Stats. /// <para> /// The requested field statistics information. /// </para> /// </summary> public Dictionary<string, FieldStats> Stats { get { return this._stats; } set { this._stats = value; } } // Check to see if Stats property is set internal bool IsSetStats() { return this._stats != null && this._stats.Count > 0; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status information returned for the search request. /// </para> /// </summary> public SearchStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Contains the resource id (<code>rid</code>) and the time it took to process the request /// (<code>timems</code>). /// </summary> public partial class SearchStatus { private string _rid; private long? _timems; /// <summary> /// Gets and sets the property Rid. /// <para> /// The encrypted resource ID for the request. /// </para> /// </summary> public string Rid { get { return this._rid; } set { this._rid = value; } } // Check to see if Rid property is set internal bool IsSetRid() { return this._rid != null; } /// <summary> /// Gets and sets the property Timems. /// <para> /// How long it took to process the request, in milliseconds. /// </para> /// </summary> public long Timems { get { return this._timems.GetValueOrDefault(); } set { this._timems = value; } } // Check to see if Timems property is set internal bool IsSetTimems() { return this._timems.HasValue; } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// An autocomplete suggestion that matches the query string specified in a <code>SuggestRequest</code>. /// </summary> public partial class SuggestionMatch { private string _id; private long? _score; private string _suggestion; /// <summary> /// Gets and sets the property Id. /// <para> /// The document ID of the suggested document. /// </para> /// </summary> 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 Score. /// <para> /// The relevance score of a suggested match. /// </para> /// </summary> public long Score { get { return this._score.GetValueOrDefault(); } set { this._score = value; } } // Check to see if Score property is set internal bool IsSetScore() { return this._score.HasValue; } /// <summary> /// Gets and sets the property Suggestion. /// <para> /// The string that matches the query string specified in the <code>SuggestRequest</code>. /// /// </para> /// </summary> public string Suggestion { get { return this._suggestion; } set { this._suggestion = value; } } // Check to see if Suggestion property is set internal bool IsSetSuggestion() { return this._suggestion != null; } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Container for the suggestion information returned in a <code>SuggestResponse</code>. /// </summary> public partial class SuggestModel { private long? _found; private string _query; private List<SuggestionMatch> _suggestions = new List<SuggestionMatch>(); /// <summary> /// Gets and sets the property Found. /// <para> /// The number of documents that were found to match the query string. /// </para> /// </summary> public long Found { get { return this._found.GetValueOrDefault(); } set { this._found = value; } } // Check to see if Found property is set internal bool IsSetFound() { return this._found.HasValue; } /// <summary> /// Gets and sets the property Query. /// <para> /// The query string specified in the suggest request. /// </para> /// </summary> public string Query { get { return this._query; } set { this._query = value; } } // Check to see if Query property is set internal bool IsSetQuery() { return this._query != null; } /// <summary> /// Gets and sets the property Suggestions. /// <para> /// The documents that match the query string. /// </para> /// </summary> public List<SuggestionMatch> Suggestions { get { return this._suggestions; } set { this._suggestions = value; } } // Check to see if Suggestions property is set internal bool IsSetSuggestions() { return this._suggestions != null && this._suggestions.Count > 0; } } }
95
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Container for the parameters to the Suggest operation. /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> public partial class SuggestRequest : AmazonCloudSearchDomainRequest { private string _query; private long? _size; private string _suggester; /// <summary> /// Gets and sets the property Query. /// <para> /// Specifies the string for which you want to get suggestions. /// </para> /// </summary> [AWSProperty(Required=true)] public string Query { get { return this._query; } set { this._query = value; } } // Check to see if Query property is set internal bool IsSetQuery() { return this._query != null; } /// <summary> /// Gets and sets the property Size. /// <para> /// Specifies the maximum number of suggestions to return. /// </para> /// </summary> public long Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } /// <summary> /// Gets and sets the property Suggester. /// <para> /// Specifies the name of the suggester to use to find suggested matches. /// </para> /// </summary> [AWSProperty(Required=true)] public string Suggester { get { return this._suggester; } set { this._suggester = value; } } // Check to see if Suggester property is set internal bool IsSetSuggester() { return this._suggester != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Contains the response to a <code>Suggest</code> request. /// </summary> public partial class SuggestResponse : AmazonWebServiceResponse { private SuggestStatus _status; private SuggestModel _suggest; /// <summary> /// Gets and sets the property Status. /// <para> /// The status of a <code>SuggestRequest</code>. Contains the resource ID (<code>rid</code>) /// and how long it took to process the request (<code>timems</code>). /// </para> /// </summary> public SuggestStatus 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 Suggest. /// <para> /// Container for the matching search suggestion information. /// </para> /// </summary> public SuggestModel Suggest { get { return this._suggest; } set { this._suggest = value; } } // Check to see if Suggest property is set internal bool IsSetSuggest() { return this._suggest != 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Contains the resource id (<code>rid</code>) and the time it took to process the request /// (<code>timems</code>). /// </summary> public partial class SuggestStatus { private string _rid; private long? _timems; /// <summary> /// Gets and sets the property Rid. /// <para> /// The encrypted resource ID for the request. /// </para> /// </summary> public string Rid { get { return this._rid; } set { this._rid = value; } } // Check to see if Rid property is set internal bool IsSetRid() { return this._rid != null; } /// <summary> /// Gets and sets the property Timems. /// <para> /// How long it took to process the request, in milliseconds. /// </para> /// </summary> public long Timems { get { return this._timems.GetValueOrDefault(); } set { this._timems = value; } } // Check to see if Timems property is set internal bool IsSetTimems() { return this._timems.HasValue; } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Container for the parameters to the UploadDocuments operation. /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> public partial class UploadDocumentsRequest : AmazonCloudSearchDomainRequest { private ContentType _contentType; private Stream _documents; /// <summary> /// Gets and sets the property ContentType. /// <para> /// The format of the batch you are uploading. Amazon CloudSearch supports two document /// batch formats: /// </para> /// <ul> <li>application/json</li> <li>application/xml</li> </ul> /// </summary> [AWSProperty(Required=true)] public ContentType ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } /// <summary> /// Gets and sets the property Documents. /// <para> /// A batch of documents formatted in JSON or HTML. /// </para> /// </summary> [AWSProperty(Required=true)] public Stream Documents { get { return this._documents; } set { this._documents = value; } } // Check to see if Documents property is set internal bool IsSetDocuments() { return this._documents != null; } } }
105
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// <summary> /// Contains the response to an <code>UploadDocuments</code> request. /// </summary> public partial class UploadDocumentsResponse : AmazonWebServiceResponse { private long? _adds; private long? _deletes; private string _status; private List<DocumentServiceWarning> _warnings = new List<DocumentServiceWarning>(); /// <summary> /// Gets and sets the property Adds. /// <para> /// The number of documents that were added to the search domain. /// </para> /// </summary> public long Adds { get { return this._adds.GetValueOrDefault(); } set { this._adds = value; } } // Check to see if Adds property is set internal bool IsSetAdds() { return this._adds.HasValue; } /// <summary> /// Gets and sets the property Deletes. /// <para> /// The number of documents that were deleted from the search domain. /// </para> /// </summary> public long Deletes { get { return this._deletes.GetValueOrDefault(); } set { this._deletes = value; } } // Check to see if Deletes property is set internal bool IsSetDeletes() { return this._deletes.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of an <code>UploadDocumentsRequest</code>. /// </para> /// </summary> public string 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 Warnings. /// <para> /// Any warnings returned by the document service about the documents being uploaded. /// </para> /// </summary> public List<DocumentServiceWarning> Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BucketInfo Object /// </summary> public class BucketInfoUnmarshaller : IUnmarshaller<BucketInfo, XmlUnmarshallerContext>, IUnmarshaller<BucketInfo, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BucketInfo IUnmarshaller<BucketInfo, 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 BucketInfo Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BucketInfo unmarshalledObject = new BucketInfo(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("buckets", targetDepth)) { var unmarshaller = new ListUnmarshaller<Bucket, BucketUnmarshaller>(BucketUnmarshaller.Instance); unmarshalledObject.Buckets = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BucketInfoUnmarshaller _instance = new BucketInfoUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BucketInfoUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Bucket Object /// </summary> public class BucketUnmarshaller : IUnmarshaller<Bucket, XmlUnmarshallerContext>, IUnmarshaller<Bucket, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Bucket IUnmarshaller<Bucket, 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 Bucket Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Bucket unmarshalledObject = new Bucket(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("count", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Count = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BucketUnmarshaller _instance = new BucketUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BucketUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DocumentServiceException Object /// </summary> public class DocumentServiceExceptionUnmarshaller : IErrorResponseUnmarshaller<DocumentServiceException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DocumentServiceException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public DocumentServiceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); DocumentServiceException unmarshalledObject = new DocumentServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DocumentServiceExceptionUnmarshaller _instance = new DocumentServiceExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DocumentServiceExceptionUnmarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DocumentServiceWarning Object /// </summary> public class DocumentServiceWarningUnmarshaller : IUnmarshaller<DocumentServiceWarning, XmlUnmarshallerContext>, IUnmarshaller<DocumentServiceWarning, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DocumentServiceWarning IUnmarshaller<DocumentServiceWarning, 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 DocumentServiceWarning Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DocumentServiceWarning unmarshalledObject = new DocumentServiceWarning(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Message = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DocumentServiceWarningUnmarshaller _instance = new DocumentServiceWarningUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DocumentServiceWarningUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for FieldStats Object /// </summary> public class FieldStatsUnmarshaller : IUnmarshaller<FieldStats, XmlUnmarshallerContext>, IUnmarshaller<FieldStats, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> FieldStats IUnmarshaller<FieldStats, 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 FieldStats Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; FieldStats unmarshalledObject = new FieldStats(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("count", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Count = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("max", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Max = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("mean", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Mean = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("min", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Min = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("missing", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Missing = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stddev", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.Stddev = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sum", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.Sum = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sumOfSquares", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.SumOfSquares = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static FieldStatsUnmarshaller _instance = new FieldStatsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static FieldStatsUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Hits Object /// </summary> public class HitsUnmarshaller : IUnmarshaller<Hits, XmlUnmarshallerContext>, IUnmarshaller<Hits, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Hits IUnmarshaller<Hits, 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 Hits Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Hits unmarshalledObject = new Hits(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("cursor", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Cursor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("found", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Found = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hit", targetDepth)) { var unmarshaller = new ListUnmarshaller<Hit, HitUnmarshaller>(HitUnmarshaller.Instance); unmarshalledObject.Hit = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("start", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Start = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HitsUnmarshaller _instance = new HitsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HitsUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Hit Object /// </summary> public class HitUnmarshaller : IUnmarshaller<Hit, XmlUnmarshallerContext>, IUnmarshaller<Hit, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Hit IUnmarshaller<Hit, 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 Hit Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Hit unmarshalledObject = new Hit(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("exprs", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Exprs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fields", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance)); unmarshalledObject.Fields = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("highlights", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Highlights = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static HitUnmarshaller _instance = new HitUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HitUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SearchException Object /// </summary> public class SearchExceptionUnmarshaller : IErrorResponseUnmarshaller<SearchException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public SearchException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public SearchException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); SearchException unmarshalledObject = new SearchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static SearchExceptionUnmarshaller _instance = new SearchExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SearchExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Search Request Marshaller /// </summary> public class SearchRequestMarshaller : IMarshaller<IRequest, SearchRequest> , 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((SearchRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SearchRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearchDomain"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-01-01"; request.HttpMethod = "GET"; request.AddSubResource("format", "sdk"); request.AddSubResource("pretty", "true"); if (publicRequest.IsSetCursor()) request.Parameters.Add("cursor", StringUtils.FromString(publicRequest.Cursor)); if (publicRequest.IsSetExpr()) request.Parameters.Add("expr", StringUtils.FromString(publicRequest.Expr)); if (publicRequest.IsSetFacet()) request.Parameters.Add("facet", StringUtils.FromString(publicRequest.Facet)); if (publicRequest.IsSetFilterQuery()) request.Parameters.Add("fq", StringUtils.FromString(publicRequest.FilterQuery)); if (publicRequest.IsSetHighlight()) request.Parameters.Add("highlight", StringUtils.FromString(publicRequest.Highlight)); if (publicRequest.IsSetPartial()) request.Parameters.Add("partial", StringUtils.FromBool(publicRequest.Partial)); if (publicRequest.IsSetQuery()) request.Parameters.Add("q", StringUtils.FromString(publicRequest.Query)); if (publicRequest.IsSetQueryOptions()) request.Parameters.Add("q.options", StringUtils.FromString(publicRequest.QueryOptions)); if (publicRequest.IsSetQueryParser()) request.Parameters.Add("q.parser", StringUtils.FromString(publicRequest.QueryParser)); if (publicRequest.IsSetReturn()) request.Parameters.Add("return", StringUtils.FromString(publicRequest.Return)); if (publicRequest.IsSetSize()) request.Parameters.Add("size", StringUtils.FromLong(publicRequest.Size)); if (publicRequest.IsSetSort()) request.Parameters.Add("sort", StringUtils.FromString(publicRequest.Sort)); if (publicRequest.IsSetStart()) request.Parameters.Add("start", StringUtils.FromLong(publicRequest.Start)); if (publicRequest.IsSetStats()) request.Parameters.Add("stats", StringUtils.FromString(publicRequest.Stats)); request.ResourcePath = "/2013-01-01/search"; request.UseQueryString = true; return request; } private static SearchRequestMarshaller _instance = new SearchRequestMarshaller(); internal static SearchRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchRequestMarshaller 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Search operation /// </summary> public class SearchResponseUnmarshaller : 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) { SearchResponse response = new SearchResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("facets", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, BucketInfo, StringUnmarshaller, BucketInfoUnmarshaller>(StringUnmarshaller.Instance, BucketInfoUnmarshaller.Instance); response.Facets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hits", targetDepth)) { var unmarshaller = HitsUnmarshaller.Instance; response.Hits = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stats", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, FieldStats, StringUnmarshaller, FieldStatsUnmarshaller>(StringUnmarshaller.Instance, FieldStatsUnmarshaller.Instance); response.Stats = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = SearchStatusUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("SearchException")) { return SearchExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchDomainException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static SearchResponseUnmarshaller _instance = new SearchResponseUnmarshaller(); internal static SearchResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SearchStatus Object /// </summary> public class SearchStatusUnmarshaller : IUnmarshaller<SearchStatus, XmlUnmarshallerContext>, IUnmarshaller<SearchStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SearchStatus IUnmarshaller<SearchStatus, 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 SearchStatus Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SearchStatus unmarshalledObject = new SearchStatus(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("rid", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Rid = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timems", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Timems = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SearchStatusUnmarshaller _instance = new SearchStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SearchStatusUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SuggestionMatch Object /// </summary> public class SuggestionMatchUnmarshaller : IUnmarshaller<SuggestionMatch, XmlUnmarshallerContext>, IUnmarshaller<SuggestionMatch, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SuggestionMatch IUnmarshaller<SuggestionMatch, 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 SuggestionMatch Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SuggestionMatch unmarshalledObject = new SuggestionMatch(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("score", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Score = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("suggestion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Suggestion = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SuggestionMatchUnmarshaller _instance = new SuggestionMatchUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SuggestionMatchUnmarshaller 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SuggestModel Object /// </summary> public class SuggestModelUnmarshaller : IUnmarshaller<SuggestModel, XmlUnmarshallerContext>, IUnmarshaller<SuggestModel, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SuggestModel IUnmarshaller<SuggestModel, 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 SuggestModel Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SuggestModel unmarshalledObject = new SuggestModel(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("found", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Found = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("query", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Query = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("suggestions", targetDepth)) { var unmarshaller = new ListUnmarshaller<SuggestionMatch, SuggestionMatchUnmarshaller>(SuggestionMatchUnmarshaller.Instance); unmarshalledObject.Suggestions = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SuggestModelUnmarshaller _instance = new SuggestModelUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SuggestModelUnmarshaller 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Suggest Request Marshaller /// </summary> public class SuggestRequestMarshaller : IMarshaller<IRequest, SuggestRequest> , 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((SuggestRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SuggestRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearchDomain"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-01-01"; request.HttpMethod = "GET"; request.AddSubResource("format", "sdk"); request.AddSubResource("pretty", "true"); if (publicRequest.IsSetQuery()) request.Parameters.Add("q", StringUtils.FromString(publicRequest.Query)); if (publicRequest.IsSetSize()) request.Parameters.Add("size", StringUtils.FromLong(publicRequest.Size)); if (publicRequest.IsSetSuggester()) request.Parameters.Add("suggester", StringUtils.FromString(publicRequest.Suggester)); request.ResourcePath = "/2013-01-01/suggest"; request.UseQueryString = true; return request; } private static SuggestRequestMarshaller _instance = new SuggestRequestMarshaller(); internal static SuggestRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SuggestRequestMarshaller Instance { get { return _instance; } } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Suggest operation /// </summary> public class SuggestResponseUnmarshaller : 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) { SuggestResponse response = new SuggestResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("status", targetDepth)) { var unmarshaller = SuggestStatusUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("suggest", targetDepth)) { var unmarshaller = SuggestModelUnmarshaller.Instance; response.Suggest = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("SearchException")) { return SearchExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchDomainException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static SuggestResponseUnmarshaller _instance = new SuggestResponseUnmarshaller(); internal static SuggestResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SuggestResponseUnmarshaller 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SuggestStatus Object /// </summary> public class SuggestStatusUnmarshaller : IUnmarshaller<SuggestStatus, XmlUnmarshallerContext>, IUnmarshaller<SuggestStatus, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SuggestStatus IUnmarshaller<SuggestStatus, 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 SuggestStatus Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SuggestStatus unmarshalledObject = new SuggestStatus(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("rid", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Rid = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timems", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Timems = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SuggestStatusUnmarshaller _instance = new SuggestStatusUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SuggestStatusUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// UploadDocuments Request Marshaller /// </summary> public class UploadDocumentsRequestMarshaller : IMarshaller<IRequest, UploadDocumentsRequest> , 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((UploadDocumentsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UploadDocumentsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudSearchDomain"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-01-01"; request.HttpMethod = "POST"; request.AddSubResource("format", "sdk"); request.ResourcePath = "/2013-01-01/documents/batch"; request.ContentStream = publicRequest.Documents ?? new MemoryStream(); request.Headers[Amazon.Util.HeaderKeys.ContentLengthHeader] = request.ContentStream.Length.ToString(CultureInfo.InvariantCulture); request.Headers[Amazon.Util.HeaderKeys.ContentTypeHeader] = "binary/octet-stream"; if (request.ContentStream != null && request.ContentStream.Length == 0) { request.Headers.Remove(Amazon.Util.HeaderKeys.ContentTypeHeader); } if (publicRequest.IsSetContentType()) { request.Headers["Content-Type"] = publicRequest.ContentType; } return request; } private static UploadDocumentsRequestMarshaller _instance = new UploadDocumentsRequestMarshaller(); internal static UploadDocumentsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UploadDocumentsRequestMarshaller Instance { get { return _instance; } } } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UploadDocuments operation /// </summary> public class UploadDocumentsResponseUnmarshaller : 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) { UploadDocumentsResponse response = new UploadDocumentsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("adds", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.Adds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deletes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.Deletes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("warnings", targetDepth)) { var unmarshaller = new ListUnmarshaller<DocumentServiceWarning, DocumentServiceWarningUnmarshaller>(DocumentServiceWarningUnmarshaller.Instance); response.Warnings = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("DocumentServiceException")) { return DocumentServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudSearchDomainException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UploadDocumentsResponseUnmarshaller _instance = new UploadDocumentsResponseUnmarshaller(); internal static UploadDocumentsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UploadDocumentsResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CloudSearchDomain.Model; using Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations; using Amazon.CloudSearchDomain.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudSearchDomain { /// <summary> /// Implementation for accessing CloudSearchDomain /// /// You use the AmazonCloudSearch2013 API to upload documents to a search domain and search /// those documents. /// /// /// <para> /// The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and /// <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, /// use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. /// The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch /// console. You submit suggest requests to the search endpoint. /// </para> /// /// <para> /// For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon /// CloudSearch Developer Guide</a>. /// </para> /// </summary> public partial class AmazonCloudSearchDomainClient : AmazonServiceClient, IAmazonCloudSearchDomain { private static IServiceMetadata serviceMetadata = new AmazonCloudSearchDomainMetadata(); #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.AddHandlerBefore<Amazon.Runtime.Internal.Marshaller>(new Amazon.CloudSearchDomain.Internal.ProcessRequestHandler()); pipeline.AddHandlerBefore<Amazon.Runtime.Internal.Unmarshaller>(new Amazon.CloudSearchDomain.Internal.ValidationResponseHandler()); pipeline.AddHandlerBefore<Amazon.Runtime.Internal.Unmarshaller>(new Amazon.CloudSearchDomain.Internal.ProcessExceptionHandler()); pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudSearchDomainEndpointResolver()); } /// <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 Search /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> public virtual SearchResponse Search(SearchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance; return Invoke<SearchResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the Search operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the Search operation on AmazonCloudSearchDomainClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearch /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> public virtual IAsyncResult BeginSearch(SearchRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the Search operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearch.</param> /// /// <returns>Returns a SearchResult from CloudSearchDomain.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> public virtual SearchResponse EndSearch(IAsyncResult asyncResult) { return EndInvoke<SearchResponse>(asyncResult); } #endregion #region Suggest /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> public virtual SuggestResponse Suggest(SuggestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SuggestRequestMarshaller.Instance; options.ResponseUnmarshaller = SuggestResponseUnmarshaller.Instance; return Invoke<SuggestResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the Suggest operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the Suggest operation on AmazonCloudSearchDomainClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSuggest /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> public virtual IAsyncResult BeginSuggest(SuggestRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SuggestRequestMarshaller.Instance; options.ResponseUnmarshaller = SuggestResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the Suggest operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSuggest.</param> /// /// <returns>Returns a SuggestResult from CloudSearchDomain.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> public virtual SuggestResponse EndSuggest(IAsyncResult asyncResult) { return EndInvoke<SuggestResponse>(asyncResult); } #endregion #region UploadDocuments /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> public virtual UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance; return Invoke<UploadDocumentsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UploadDocuments operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UploadDocuments operation on AmazonCloudSearchDomainClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUploadDocuments /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> public virtual IAsyncResult BeginUploadDocuments(UploadDocumentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UploadDocuments operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUploadDocuments.</param> /// /// <returns>Returns a UploadDocumentsResult from CloudSearchDomain.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> public virtual UploadDocumentsResponse EndUploadDocuments(IAsyncResult asyncResult) { return EndInvoke<UploadDocumentsResponse>(asyncResult); } #endregion } }
348
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudSearchDomain.Model; namespace Amazon.CloudSearchDomain { /// <summary> /// Interface for accessing CloudSearchDomain /// /// You use the AmazonCloudSearch2013 API to upload documents to a search domain and search /// those documents. /// /// /// <para> /// The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and /// <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, /// use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. /// The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch /// console. You submit suggest requests to the search endpoint. /// </para> /// /// <para> /// For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon /// CloudSearch Developer Guide</a>. /// </para> /// </summary> public partial interface IAmazonCloudSearchDomain : IAmazonService, IDisposable { #region Search /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> SearchResponse Search(SearchRequest request); /// <summary> /// Initiates the asynchronous execution of the Search operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the Search operation on AmazonCloudSearchDomainClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearch /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> IAsyncResult BeginSearch(SearchRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the Search operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearch.</param> /// /// <returns>Returns a SearchResult from CloudSearchDomain.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> SearchResponse EndSearch(IAsyncResult asyncResult); #endregion #region Suggest /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> SuggestResponse Suggest(SuggestRequest request); /// <summary> /// Initiates the asynchronous execution of the Suggest operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the Suggest operation on AmazonCloudSearchDomainClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSuggest /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> IAsyncResult BeginSuggest(SuggestRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the Suggest operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSuggest.</param> /// /// <returns>Returns a SuggestResult from CloudSearchDomain.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> SuggestResponse EndSuggest(IAsyncResult asyncResult); #endregion #region UploadDocuments /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request); /// <summary> /// Initiates the asynchronous execution of the UploadDocuments operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UploadDocuments operation on AmazonCloudSearchDomainClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUploadDocuments /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> IAsyncResult BeginUploadDocuments(UploadDocumentsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UploadDocuments operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUploadDocuments.</param> /// /// <returns>Returns a UploadDocumentsResult from CloudSearchDomain.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> UploadDocumentsResponse EndUploadDocuments(IAsyncResult asyncResult); #endregion } }
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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations; using Amazon.CloudSearchDomain.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudSearchDomain { /// <summary> /// Implementation for accessing CloudSearchDomain /// /// You use the AmazonCloudSearch2013 API to upload documents to a search domain and search /// those documents. /// /// /// <para> /// The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and /// <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, /// use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. /// The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch /// console. You submit suggest requests to the search endpoint. /// </para> /// /// <para> /// For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon /// CloudSearch Developer Guide</a>. /// </para> /// </summary> public partial class AmazonCloudSearchDomainClient : AmazonServiceClient, IAmazonCloudSearchDomain { private static IServiceMetadata serviceMetadata = new AmazonCloudSearchDomainMetadata(); #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.AddHandlerBefore<Amazon.Runtime.Internal.Marshaller>(new Amazon.CloudSearchDomain.Internal.ProcessRequestHandler()); pipeline.AddHandlerBefore<Amazon.Runtime.Internal.Unmarshaller>(new Amazon.CloudSearchDomain.Internal.ValidationResponseHandler()); pipeline.AddHandlerBefore<Amazon.Runtime.Internal.Unmarshaller>(new Amazon.CloudSearchDomain.Internal.ProcessExceptionHandler()); pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudSearchDomainEndpointResolver()); } /// <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 Search /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> public virtual SearchResponse Search(SearchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance; return Invoke<SearchResponse>(request, options); } /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> public virtual Task<SearchResponse> SearchAsync(SearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance; return InvokeAsync<SearchResponse>(request, options, cancellationToken); } #endregion #region Suggest /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> public virtual SuggestResponse Suggest(SuggestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SuggestRequestMarshaller.Instance; options.ResponseUnmarshaller = SuggestResponseUnmarshaller.Instance; return Invoke<SuggestResponse>(request, options); } /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> public virtual Task<SuggestResponse> SuggestAsync(SuggestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SuggestRequestMarshaller.Instance; options.ResponseUnmarshaller = SuggestResponseUnmarshaller.Instance; return InvokeAsync<SuggestResponse>(request, options, cancellationToken); } #endregion #region UploadDocuments /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> public virtual UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance; return Invoke<UploadDocumentsResponse>(request, options); } /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> public virtual Task<UploadDocumentsResponse> UploadDocumentsAsync(UploadDocumentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance; return InvokeAsync<UploadDocumentsResponse>(request, options, cancellationToken); } #endregion } }
386
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudSearchDomain.Model; namespace Amazon.CloudSearchDomain { /// <summary> /// Interface for accessing CloudSearchDomain /// /// You use the AmazonCloudSearch2013 API to upload documents to a search domain and search /// those documents. /// /// /// <para> /// The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and /// <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, /// use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. /// The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch /// console. You submit suggest requests to the search endpoint. /// </para> /// /// <para> /// For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon /// CloudSearch Developer Guide</a>. /// </para> /// </summary> public partial interface IAmazonCloudSearchDomain : IAmazonService, IDisposable { #region Search /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> SearchResponse Search(SearchRequest request); /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> Task<SearchResponse> SearchAsync(SearchRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region Suggest /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> SuggestResponse Suggest(SuggestRequest request); /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> Task<SuggestResponse> SuggestAsync(SuggestRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UploadDocuments /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request); /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> Task<UploadDocumentsResponse> UploadDocumentsAsync(UploadDocumentsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
293
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model; using Amazon.CloudSearchDomain.Model.Internal.MarshallTransformations; using Amazon.CloudSearchDomain.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudSearchDomain { /// <summary> /// Implementation for accessing CloudSearchDomain /// /// You use the AmazonCloudSearch2013 API to upload documents to a search domain and search /// those documents. /// /// /// <para> /// The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and /// <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, /// use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. /// The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch /// console. You submit suggest requests to the search endpoint. /// </para> /// /// <para> /// For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon /// CloudSearch Developer Guide</a>. /// </para> /// </summary> public partial class AmazonCloudSearchDomainClient : AmazonServiceClient, IAmazonCloudSearchDomain { private static IServiceMetadata serviceMetadata = new AmazonCloudSearchDomainMetadata(); #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.AddHandlerBefore<Amazon.Runtime.Internal.Marshaller>(new Amazon.CloudSearchDomain.Internal.ProcessRequestHandler()); pipeline.AddHandlerBefore<Amazon.Runtime.Internal.Unmarshaller>(new Amazon.CloudSearchDomain.Internal.ValidationResponseHandler()); pipeline.AddHandlerBefore<Amazon.Runtime.Internal.Unmarshaller>(new Amazon.CloudSearchDomain.Internal.ProcessExceptionHandler()); pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudSearchDomainEndpointResolver()); } /// <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 Search internal virtual SearchResponse Search(SearchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance; return Invoke<SearchResponse>(request, options); } /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> public virtual Task<SearchResponse> SearchAsync(SearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance; return InvokeAsync<SearchResponse>(request, options, cancellationToken); } #endregion #region Suggest internal virtual SuggestResponse Suggest(SuggestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SuggestRequestMarshaller.Instance; options.ResponseUnmarshaller = SuggestResponseUnmarshaller.Instance; return Invoke<SuggestResponse>(request, options); } /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> public virtual Task<SuggestResponse> SuggestAsync(SuggestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SuggestRequestMarshaller.Instance; options.ResponseUnmarshaller = SuggestResponseUnmarshaller.Instance; return InvokeAsync<SuggestResponse>(request, options, cancellationToken); } #endregion #region UploadDocuments internal virtual UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance; return Invoke<UploadDocumentsResponse>(request, options); } /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> public virtual Task<UploadDocumentsResponse> UploadDocumentsAsync(UploadDocumentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance; return InvokeAsync<UploadDocumentsResponse>(request, options, cancellationToken); } #endregion } }
290
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudsearchdomain-2013-01-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudSearchDomain.Model; namespace Amazon.CloudSearchDomain { /// <summary> /// Interface for accessing CloudSearchDomain /// /// You use the AmazonCloudSearch2013 API to upload documents to a search domain and search /// those documents. /// /// /// <para> /// The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and /// <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, /// use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. /// The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch /// console. You submit suggest requests to the search endpoint. /// </para> /// /// <para> /// For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon /// CloudSearch Developer Guide</a>. /// </para> /// </summary> public partial interface IAmazonCloudSearchDomain : IAmazonService, IDisposable { #region Search /// <summary> /// Retrieves a list of documents that match the specified search criteria. How you specify /// the search criteria depends on which query parser you use. Amazon CloudSearch supports /// four query parsers: /// /// <ul> <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> /// fields for the specified string. Search for phrases, individual terms, and prefixes. /// </li> <li><code>structured</code>: search specific fields, construct compound queries /// using Boolean operators, and use advanced features such as term boosting and proximity /// searching.</li> <li><code>lucene</code>: specify search criteria using the Apache /// Lucene query parser syntax.</li> <li><code>dismax</code>: specify search criteria /// using the simplified subset of the Apache Lucene query parser syntax defined by the /// DisMax query parser.</li> </ul> /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Search</code> requests is domain-specific. You submit /// search requests to a domain's search endpoint. To get the search endpoint for your /// domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Search service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Search service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Search">REST API Reference for Search Operation</seealso> Task<SearchResponse> SearchAsync(SearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region Suggest /// <summary> /// Retrieves autocomplete suggestions for a partial query string. You can use suggestions /// enable you to display likely matches before users finish typing. In Amazon CloudSearch, /// suggestions are based on the contents of a particular text field. When you request /// suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester /// field start with the specified query string. The beginning of the field must match /// the query string to be considered a match. /// /// /// <para> /// For more information about configuring suggesters and retrieving suggestions, see /// <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting /// Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// /// <para> /// The endpoint for submitting <code>Suggest</code> requests is domain-specific. You /// submit suggest requests to a domain's search endpoint. To get the search endpoint /// for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> /// action. A domain's endpoints are also displayed on the domain dashboard in the Amazon /// CloudSearch console. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the Suggest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the Suggest service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.SearchException"> /// Information about any problems encountered while processing a search request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Suggest">REST API Reference for Suggest Operation</seealso> Task<SuggestResponse> SuggestAsync(SuggestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UploadDocuments /// <summary> /// Posts a batch of documents to a search domain for indexing. A document batch is a /// collection of add and delete operations that represent the documents you want to add, /// update, or delete from your domain. Batches can be described in either JSON or XML. /// Each item that you want Amazon CloudSearch to return as a search result (such as a /// product) is represented as a document. Every document has a unique ID and one or more /// fields that contain the data that you want to search and return in results. Individual /// documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 /// MB. To get the best possible upload performance, group add and delete operations in /// batches that are close the 5 MB limit. Submitting a large volume of single-document /// batches can overload a domain's document service. /// /// /// <para> /// The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. /// To get the document endpoint for your domain, use the Amazon CloudSearch configuration /// service <code>DescribeDomains</code> action. A domain's endpoints are also displayed /// on the domain dashboard in the Amazon CloudSearch console. /// </para> /// /// <para> /// For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing /// Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. For more information /// about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading /// Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UploadDocuments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UploadDocuments service method, as returned by CloudSearchDomain.</returns> /// <exception cref="Amazon.CloudSearchDomain.Model.DocumentServiceException"> /// Information about any problems encountered while processing an upload request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/UploadDocuments">REST API Reference for UploadDocuments Operation</seealso> Task<UploadDocumentsResponse> UploadDocumentsAsync(UploadDocumentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
185
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.CloudSearchDomain")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudSearch Domain. Amazon CloudSearch Domain encapsulates a collection of data you want to search, the search instances that process your search requests, and a configuration that controls how your data is indexed and searched.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudSearch Domain. Amazon CloudSearch Domain encapsulates a collection of data you want to search, the search instances that process your search requests, and a configuration that controls how your data is indexed and searched.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudSearch Domain. Amazon CloudSearch Domain encapsulates a collection of data you want to search, the search instances that process your search requests, and a configuration that controls how your data is indexed and searched.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudSearch Domain. Amazon CloudSearch Domain encapsulates a collection of data you want to search, the search instances that process your search requests, and a configuration that controls how your data is indexed and searched.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.100.147")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System.Diagnostics.CodeAnalysis; // Suppressions for identifiers in base classes [module: SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", Scope = "type", Target = "Amazon.CloudTrail.Model.Event", MessageId = "Event")]
20
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudtrail-2013-11-01.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CloudTrail.Internal; namespace Amazon.CloudTrail { /// <summary> /// Configuration for accessing Amazon CloudTrail service /// </summary> [AWSSignerType("v4")] public partial class AmazonCloudTrailConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.107.2"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCloudTrailConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudTrailDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "cloudtrail"; this.EndpointProvider = new AmazonCloudTrailEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "cloudtrail"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2013-11-01"; } } /// <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 cloudtrail-2013-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CloudTrail { /// <summary> /// Configuration for accessing Amazon CloudTrail service /// </summary> public static class AmazonCloudTrailDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CloudTrail /// </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 cloudtrail-2013-11-01.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CloudTrail.Endpoints { /// <summary> /// Contains parameters used for resolving CloudTrail endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CloudTrailEndpointProvider and CloudTrailEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CloudTrailEndpointParameters : EndpointParameters { /// <summary> /// CloudTrailEndpointParameters constructor /// </summary> public CloudTrailEndpointParameters() { 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 cloudtrail-2013-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CloudTrail { ///<summary> /// Common exception for the CloudTrail service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCloudTrailException : AmazonServiceException { /// <summary> /// Construct instance of AmazonCloudTrailException /// </summary> /// <param name="message"></param> public AmazonCloudTrailException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCloudTrailException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCloudTrailException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCloudTrailException /// </summary> /// <param name="innerException"></param> public AmazonCloudTrailException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCloudTrailException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudTrailException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCloudTrailException /// </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 AmazonCloudTrailException(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 AmazonCloudTrailException 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 AmazonCloudTrailException(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 cloudtrail-2013-11-01.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CloudTrail { /// <summary> /// Constants used for properties of type DeliveryStatus. /// </summary> public class DeliveryStatus : ConstantClass { /// <summary> /// Constant ACCESS_DENIED for DeliveryStatus /// </summary> public static readonly DeliveryStatus ACCESS_DENIED = new DeliveryStatus("ACCESS_DENIED"); /// <summary> /// Constant ACCESS_DENIED_SIGNING_FILE for DeliveryStatus /// </summary> public static readonly DeliveryStatus ACCESS_DENIED_SIGNING_FILE = new DeliveryStatus("ACCESS_DENIED_SIGNING_FILE"); /// <summary> /// Constant CANCELLED for DeliveryStatus /// </summary> public static readonly DeliveryStatus CANCELLED = new DeliveryStatus("CANCELLED"); /// <summary> /// Constant FAILED for DeliveryStatus /// </summary> public static readonly DeliveryStatus FAILED = new DeliveryStatus("FAILED"); /// <summary> /// Constant FAILED_SIGNING_FILE for DeliveryStatus /// </summary> public static readonly DeliveryStatus FAILED_SIGNING_FILE = new DeliveryStatus("FAILED_SIGNING_FILE"); /// <summary> /// Constant PENDING for DeliveryStatus /// </summary> public static readonly DeliveryStatus PENDING = new DeliveryStatus("PENDING"); /// <summary> /// Constant RESOURCE_NOT_FOUND for DeliveryStatus /// </summary> public static readonly DeliveryStatus RESOURCE_NOT_FOUND = new DeliveryStatus("RESOURCE_NOT_FOUND"); /// <summary> /// Constant SUCCESS for DeliveryStatus /// </summary> public static readonly DeliveryStatus SUCCESS = new DeliveryStatus("SUCCESS"); /// <summary> /// Constant UNKNOWN for DeliveryStatus /// </summary> public static readonly DeliveryStatus UNKNOWN = new DeliveryStatus("UNKNOWN"); /// <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 DeliveryStatus(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 DeliveryStatus FindValue(string value) { return FindValue<DeliveryStatus>(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 DeliveryStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DestinationType. /// </summary> public class DestinationType : ConstantClass { /// <summary> /// Constant AWS_SERVICE for DestinationType /// </summary> public static readonly DestinationType AWS_SERVICE = new DestinationType("AWS_SERVICE"); /// <summary> /// Constant EVENT_DATA_STORE for DestinationType /// </summary> public static readonly DestinationType EVENT_DATA_STORE = new DestinationType("EVENT_DATA_STORE"); /// <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 DestinationType(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 DestinationType FindValue(string value) { return FindValue<DestinationType>(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 DestinationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventCategory. /// </summary> public class EventCategory : ConstantClass { /// <summary> /// Constant Insight for EventCategory /// </summary> public static readonly EventCategory Insight = new EventCategory("insight"); /// <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 EventCategory(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 EventCategory FindValue(string value) { return FindValue<EventCategory>(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 EventCategory(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventDataStoreStatus. /// </summary> public class EventDataStoreStatus : ConstantClass { /// <summary> /// Constant CREATED for EventDataStoreStatus /// </summary> public static readonly EventDataStoreStatus CREATED = new EventDataStoreStatus("CREATED"); /// <summary> /// Constant ENABLED for EventDataStoreStatus /// </summary> public static readonly EventDataStoreStatus ENABLED = new EventDataStoreStatus("ENABLED"); /// <summary> /// Constant PENDING_DELETION for EventDataStoreStatus /// </summary> public static readonly EventDataStoreStatus PENDING_DELETION = new EventDataStoreStatus("PENDING_DELETION"); /// <summary> /// Constant STARTING_INGESTION for EventDataStoreStatus /// </summary> public static readonly EventDataStoreStatus STARTING_INGESTION = new EventDataStoreStatus("STARTING_INGESTION"); /// <summary> /// Constant STOPPED_INGESTION for EventDataStoreStatus /// </summary> public static readonly EventDataStoreStatus STOPPED_INGESTION = new EventDataStoreStatus("STOPPED_INGESTION"); /// <summary> /// Constant STOPPING_INGESTION for EventDataStoreStatus /// </summary> public static readonly EventDataStoreStatus STOPPING_INGESTION = new EventDataStoreStatus("STOPPING_INGESTION"); /// <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 EventDataStoreStatus(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 EventDataStoreStatus FindValue(string value) { return FindValue<EventDataStoreStatus>(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 EventDataStoreStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ImportFailureStatus. /// </summary> public class ImportFailureStatus : ConstantClass { /// <summary> /// Constant FAILED for ImportFailureStatus /// </summary> public static readonly ImportFailureStatus FAILED = new ImportFailureStatus("FAILED"); /// <summary> /// Constant RETRY for ImportFailureStatus /// </summary> public static readonly ImportFailureStatus RETRY = new ImportFailureStatus("RETRY"); /// <summary> /// Constant SUCCEEDED for ImportFailureStatus /// </summary> public static readonly ImportFailureStatus SUCCEEDED = new ImportFailureStatus("SUCCEEDED"); /// <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 ImportFailureStatus(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 ImportFailureStatus FindValue(string value) { return FindValue<ImportFailureStatus>(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 ImportFailureStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ImportStatus. /// </summary> public class ImportStatus : ConstantClass { /// <summary> /// Constant COMPLETED for ImportStatus /// </summary> public static readonly ImportStatus COMPLETED = new ImportStatus("COMPLETED"); /// <summary> /// Constant FAILED for ImportStatus /// </summary> public static readonly ImportStatus FAILED = new ImportStatus("FAILED"); /// <summary> /// Constant IN_PROGRESS for ImportStatus /// </summary> public static readonly ImportStatus IN_PROGRESS = new ImportStatus("IN_PROGRESS"); /// <summary> /// Constant INITIALIZING for ImportStatus /// </summary> public static readonly ImportStatus INITIALIZING = new ImportStatus("INITIALIZING"); /// <summary> /// Constant STOPPED for ImportStatus /// </summary> public static readonly ImportStatus STOPPED = new ImportStatus("STOPPED"); /// <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 ImportStatus(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 ImportStatus FindValue(string value) { return FindValue<ImportStatus>(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 ImportStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type InsightType. /// </summary> public class InsightType : ConstantClass { /// <summary> /// Constant ApiCallRateInsight for InsightType /// </summary> public static readonly InsightType ApiCallRateInsight = new InsightType("ApiCallRateInsight"); /// <summary> /// Constant ApiErrorRateInsight for InsightType /// </summary> public static readonly InsightType ApiErrorRateInsight = new InsightType("ApiErrorRateInsight"); /// <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 InsightType(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 InsightType FindValue(string value) { return FindValue<InsightType>(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 InsightType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type LookupAttributeKey. /// </summary> public class LookupAttributeKey : ConstantClass { /// <summary> /// Constant AccessKeyId for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey AccessKeyId = new LookupAttributeKey("AccessKeyId"); /// <summary> /// Constant EventId for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey EventId = new LookupAttributeKey("EventId"); /// <summary> /// Constant EventName for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey EventName = new LookupAttributeKey("EventName"); /// <summary> /// Constant EventSource for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey EventSource = new LookupAttributeKey("EventSource"); /// <summary> /// Constant ReadOnly for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey ReadOnly = new LookupAttributeKey("ReadOnly"); /// <summary> /// Constant ResourceName for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey ResourceName = new LookupAttributeKey("ResourceName"); /// <summary> /// Constant ResourceType for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey ResourceType = new LookupAttributeKey("ResourceType"); /// <summary> /// Constant Username for LookupAttributeKey /// </summary> public static readonly LookupAttributeKey Username = new LookupAttributeKey("Username"); /// <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 LookupAttributeKey(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 LookupAttributeKey FindValue(string value) { return FindValue<LookupAttributeKey>(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 LookupAttributeKey(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type QueryStatus. /// </summary> public class QueryStatus : ConstantClass { /// <summary> /// Constant CANCELLED for QueryStatus /// </summary> public static readonly QueryStatus CANCELLED = new QueryStatus("CANCELLED"); /// <summary> /// Constant FAILED for QueryStatus /// </summary> public static readonly QueryStatus FAILED = new QueryStatus("FAILED"); /// <summary> /// Constant FINISHED for QueryStatus /// </summary> public static readonly QueryStatus FINISHED = new QueryStatus("FINISHED"); /// <summary> /// Constant QUEUED for QueryStatus /// </summary> public static readonly QueryStatus QUEUED = new QueryStatus("QUEUED"); /// <summary> /// Constant RUNNING for QueryStatus /// </summary> public static readonly QueryStatus RUNNING = new QueryStatus("RUNNING"); /// <summary> /// Constant TIMED_OUT for QueryStatus /// </summary> public static readonly QueryStatus TIMED_OUT = new QueryStatus("TIMED_OUT"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public QueryStatus(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 QueryStatus FindValue(string value) { return FindValue<QueryStatus>(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 QueryStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ReadWriteType. /// </summary> public class ReadWriteType : ConstantClass { /// <summary> /// Constant All for ReadWriteType /// </summary> public static readonly ReadWriteType All = new ReadWriteType("All"); /// <summary> /// Constant ReadOnly for ReadWriteType /// </summary> public static readonly ReadWriteType ReadOnly = new ReadWriteType("ReadOnly"); /// <summary> /// Constant WriteOnly for ReadWriteType /// </summary> public static readonly ReadWriteType WriteOnly = new ReadWriteType("WriteOnly"); /// <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 ReadWriteType(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 ReadWriteType FindValue(string value) { return FindValue<ReadWriteType>(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 ReadWriteType(string value) { return FindValue(value); } } }
626